Shift Schedule
Hi Oscar, I have a cross reference table we use for shift scheduling. The x-axis is comprised of dates and the y is names. The table values indiciate whether or not the employee is scheduled to work (i.e., filled or not). Is there anyway to pull a list of names in a canned daily report based on the date and whether the cell is filled? In other words, I want to lookup the y-axis headers as opposed to the cross reference value.
Thanks, Geoff
Answer
Formula in cell B16:
Array formula in cell B19:
How to create an array formula
How to copy array formula
- Select cell B19
- Copy (Ctrl + c)
- Select cell range B20:B25
- Paste (Ctrl + v)
Download excel *.xlsx file
Shift schedule - Conditional formatting
Conditional formatting - Cell range B2:AF14
- Select cell range B2:AF14
- Go to tab "Home"
- Click "Conditional formatting" button
- Click "New Rule.."
- Click "Use a formula to determine which cells to format"
- Enter this formula:=B$1=$B$16
- Click "Format.." button
- Go to tab "Fill"
- Pick a color
- Click OK
- Click OK
Conditional formatting - Cell range A2:A14
- Select cell range A2:A14
- Go to tab "Home"
- Click "Conditional formatting" button
- Click "New Rule.."
- Click "Use a formula to determine which cells to format"
- Enter this formula:=INDEX($B$2:$AF$14, ROW(A2)-1, MATCH($B$16, $B$1:$AF$1, 0))="x"
- Click "Format.." button
- Go to tab "Fill"
- Pick a color
- Click OK
- Click OK
Recommended blog posts
Quickly highlight records in a list using multiple criteria in excel
Quickly highlight records in a list in excel (AND logic)
Quickly highlight records containing text strings in excel (AND Logic)
Related posts:
Highlight specific time ranges in a weekly schedule in excel
Excel 2007: Color cells that meet criteria using conditional formatting
Highlight the second or more duplicates in two lists using conditional formatting in excel
Visualize date ranges in a calendar in excel
Highlight unique values and unique distinct values in a range using conditional formatting in excel





















Oscar you are genius! Thank you!
Geoff,
I am happy you like it!
This was tremendously helpful to me, but is there a way to then reference what other days in the month the resulting names are also scheduled?
Keeping with our example, if Robert, James, and Brian are all scheduled on the 14th, is there a formula to also tell me that at least one of these three will be working on all of the following dates: 1, 3, 4, 7, 8, 9, etc.?
Corrine,
great question!
See attached file:
Shift-scheduling-Corrine.xlsx
[...] Shift Schedule [...]