Calender / Roster Help please

DDX

New Member
Joined
Sep 4, 2012
Messages
3
Hi All

Need some help please. We are working on 28 day roster. With some off days in between. Then the cycle starts again. It looks like this
ThFrSaSuMoTuWeThFrSaSuMoTuWeThFrSaSuMoTuWeThFrSaSuMoTuWe
TNNNXDDDXXXNNXXDDDDXNNXXXXXX

<tbody>
</tbody>

I would like to build a calendar with the date and roster. If I select a date in next year, I would like to see on what shift I would be.

But I have no idea how to do this.
Thanks for the help
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
The following formula is one solution for a "Shift Calculator":

=MID("TNNNXDDDXXXNNXXDDDDXNNXXXXXX",MOD(MyDate-DayOne,28)+1,1)

DayOne = Known date that starts the cycle
MyDate = Any date after DayOne

I'd suggest you use cells to enter these dates.

Here's how it works: The MOD part returns the reminder of number of days divided by 28. Possible values are always between 0 and 27. Since we're using this reminder to fetch the Nth value from our "ShiftList" we need to add 1 to it ( = can't get the 0th value from the list).
 
Upvote 0
Thanks a lot Misca

It helped a lot. Learned something new today.
Will go and try putting the two together.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top