Rotating Work Schedule - wutzke

30-Mar-08 05:22:44
I have put
Monday	   Tuesday	  Wednesday	Thursday	  Friday
Saturday	        Sunday
3/24/2008	   3/25/2008	  3/26/2008	3/27/2008	  3/28/2008
3/29/2008	        3/30/2008
8am - 5pm	   8am - 5pm	OFF	        OFF	          11am - 8pm	11am - 8pm
10am - 6pm
in cells C60 thru I62

cell C60  contains  =TEXT(C61, "dddd") to reurn the Day Name. This is
repeated thru I60

cells C62 thru I62 represent work shifts. Note Sunday's shift is
always 10-6

The next week the OFF day move forward 1 day so that

Monday	   Tuesday	        Wednesday	Thursday	  Friday
Saturday	        Sunday
3/31/2008	   4/01/2008       4/02/2008	       4/03/2008	   4/04/2008
4/05/2008	         4/06/2008
10am - 7pm  8am - 5pm	   8am - 5pm	  OFF	          OFF       11am -
8pm	11am - 8pm

Note the addition of 10-7 shift, thus 04/08/2008 becomes 10-7

To rotate this I used
=OFFSET(C62,1,-1)
in cells K62 thru Q62

except Monday has to reference differently, so
=OFFSET(C62,0,6)

To make sure that Sunday is always 10-6 until OFF, the formula changes
to

=IF(AND(TEXT(Q61, "dddd")="Sunday",
(OFFSET(I62,0,-1)<>"OFF"))=TRUE,"10am - 6pm",OFFSET(I62,0,-1))

this works for all cells Tuedays thru Sunday, Monday now must be
=IF(AND(TEXT(K61, "dddd")="Sunday",
(OFFSET(C62,0,6)<>"OFF"))=TRUE,"10am - 6pm",OFFSET(C62,0,6))

I can Copy and Paste this group of formulas across a new group of
cells representing weeks and the day off rotate continues.


NOW that being said...
I want to add another row representing a new series of shifts for
another worker

Monday	      Tuesday	Wednesday	Thursday	  Friday	        Saturday
Sunday
3/24/2008	      3/25/2008	3/26/2008	        3/27/2008	  3/28/2008
3/29/2008	    3/30/2008
8am - 5pm	      8am - 5pm	OFF	                OFF	          11am - 8pm
11am - 8pm  10am - 6pm
[empty]	      [empty]	[empty]	        [empty]	   [empty]
[empty]         [empty]
11am - 8pm    10am - 7pm	8am - 5pm	        8am - 5pm	   OFF
OFF	           11am - 8pm
[empty]	      [empty]	[empty]	        [empty]	   [empty]
[empty]         [empty]

Now the direct reference to the Date cell (K61 thru Q61) won't work.
Do I create yet another offset reference or is there a difference way?
reply
 
 

Rotating Work Schedule - wutzke

30-Mar-08 05:22:45
sorry the cut and paste messed up the formating
reply
 

Rotating Work Schedule - Herbert Seidenberg

02-Apr-08 12:05:58
With monster formula:
http://www.freefilehosting.net/download/3ee29
reply
 

Rotating Work Schedule - wutzke

02-Apr-08 12:06:17
On Mar 31, 10:39=A0am, Herbert Seidenberg <herbds7-ms...@yahoo.com>

thanks
http://clip2net.com/clip/m6196/1207058189-clip-35kb.png
reply
 

Rotating Work Schedule - wutzke

02-Apr-08 12:06:18
On Mar 31, 10:39=A0am, Herbert Seidenberg <herbds7-ms...@yahoo.com>


thanks
but I'm getting an error

http://clip2net.com/clip/m6196/1207058189-clip-35kb.png
reply
 

Rotating Work Schedule - Herbert Seidenberg

02-Apr-08 12:06:30
Could not duplicate error.
Tried Excel 2002, 2003, 2007, Windows 2000, ME, XP.
Maybe you can verify that the names
in the formula are defined correctly by going to
Insert > Name > Define
Or troubleshoot the formula by substituting 1s or 0s
for different arguments, like
=if(AND(1,1),1,0)
until error disappears.
Tools > Formula Auditing > Evaluate Formula
gives #Name? in Excel 2003 but works for Excel 2007.
reply
 

Rotating Work Schedule - Herbert Seidenberg

21-Apr-08 01:44:43
Make sure that
Tools > Add-Ins > Analysis ToolPak
is checked.
That will enable Weeknum()
reply
 

Rotating Work Schedule - Herbert Seidenberg

14-May-08 01:17:45
Alternate download site:
http://www.savefile.com/files/1555341
reply
 
sumup blank cell to blank cell
promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   

"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class