On call schedule

txlawdog

New Member
Joined
Jan 12, 2022
Messages
6
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
  3. Mobile
I am trying to create a formula that checks one cell for the day of the week and another cell to determine if the week of the year is an even number or and odd number. It would then need to select a number from a key that has been set up on another sheet. I have attached a screen shot of the calendar and weekday rotation for reference. The on call schedule is set up so that an investigator is on call on a weekday every other week and Sat and Sun every nine weeks. This has stumped me thus far. I am not a expert at Excel, yet my supervisor thinks I am and asked me to create the calendar.
Annotation 2022-01-12 084821.jpg
Annotation 2022-01-12 090000.jpg
 
Sorry for the late reply. I had to create couple of Helper cells that will do what your needing.

1st Helper
Workbookx.xlsm
AW
22WEEKEND ONCALL
2312
244
255
266
277
288
299
3010
3111
Sheet4


2nd Helper does the custom Week Number.
Workbookx.xlsm
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAH
5WEEK # 23232323232424242424242425252525252525262626262626262727272727
Sheet4
Cell Formulas
RangeFormula
D5:AH5D5=IF(TEXT(D3,"DDD")="SUN",WEEKNUM(D3)-1,WEEKNUM(D3))


3rd Helper: does the Week conversions:
Workbookx.xlsm
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAH
2WEEK CONVERTION5555566666667777777888888899999
Sheet4
Cell Formulas
RangeFormula
D2:AH2D2=IF(INT(D5/9)=D5/9,9,IF(D5>9,D5-(9*(ROUNDDOWN(D5/9,0))),D5))


Then the ON CALL Formula Becomes:
Workbookx.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAH
33ON CALL INVESTIGATOR4711771269100885847119912691001010584711
Sheet4
Cell Formulas
RangeFormula
D33:AH33D33=IF(OR(TEXT(D3,"DDD")="SAT",TEXT(D3,"DDD")="SUN"),INDEX($AW$23:$AW$31,D2),IF(ISEVEN(WEEKNUM(D3)),INDEX($AM$24:$AQ$24,,MATCH(TEXT(D3,"DDDD"),$AM$23:$AQ$23,0)),INDEX($AR$24:$AV$24,,MATCH(TEXT(D3,"DDDD"),$AR$23:$AV$23,0))))



you can place the Helper cells to any cells you choose. I just used those cells. To make it Invisible to make it less information appear to users you can hide those rows or use the Custom Format option using the link HERE

Let me know if this helps
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,216,545
Messages
6,131,282
Members
449,641
Latest member
paulabrink78

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