Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2007

Tip: Looking for answers? Try searching our database.

Scheduling Workbook

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Corey - 01 Dec 2007 00:04 GMT
Kind of an awkward situation really.  My boss has asked me to set up a
worksheet that allows him to "color in" the cells corresponding to the
shifts that workers request/will work.  I did so by giving him a
legend to copy from that has text in each item that matches its
designated color.  In any case, what I'm hoping to accomplish, is to
some how translate these 'x' cells into an actual read out of the time
that they will work.  In other words, if someone works 12 am - 8 am,
he would use place the "color" in those 8 cells, essentially giving
just those 8 cells a non-blank value.  I want to find a way to show
this series of filled in cells in terms of the times those cells
correspond to.  Sorry about the abstract phrasing of this, but it's
really hard to understand without seeing it.

Also as a side note, suppose someone works 2 different shifts in one
day, is there anyway to skip the gap in time and basically show both
different slots of time.  This may be more than can be accomplished,
but any help/insight into this regard would be greatly appreciated.
Thanks so much!
Gary''s Student - 01 Dec 2007 13:20 GMT
This may be useful.  Let's say that background colors have benn entered into
cells A1 thru A100.  Green for 9:00 to 5:00; yellow for 5:00 to midnight; red
for midnight to 9:00.  Enter this UDF:

Function shift(r As Range) As String
Application.Volatile
shift = ""
n = r.Interior.ColorIndex
If n = 10 Then shift = "9:00 - 5:00"
If n = 6 Then shift = "5:00 - midnight"
If n = 3 Then shift = "midnight to 9:00"
End Function

Then in B1 enter =shift(A1) and copy down

This will display the shifts as text
Signature

Gary''s Student - gsnu2007a

> Kind of an awkward situation really.  My boss has asked me to set up a
> worksheet that allows him to "color in" the cells corresponding to the
[quoted text clipped - 14 lines]
> but any help/insight into this regard would be greatly appreciated.
> Thanks so much!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.