Daily roster from calendar

marjen96

New Member
Joined
Jan 17, 2018
Messages
1
I am trying to make a spreadsheet with two sheets. One sheet will be a yearly calendar with the date at the top row and employee names along the left column. Each date column will list locations where that each employee will be working. There will be duplicates in this column as sometimes more than one employee will be assigned at the same location. The other sheet will be a daily list of assignments. The daily will be look like a form that will be printed and will have the locations listed on the left column, and blank cells where I need the formula to be. So I need a formula that will check the date in a cell at the top of the daily sheet, look for that date at the top of the calendar, then search down that column and look for an instance of a location and return the name in the left name column. All without getting duplicates.

I have this formula, which works, but it does not meet all my needs.

{=IF(ISERROR(INDEX(Sheet1!$B$1:$B$29,SMALL(IF($L$7=Sheet1!$D$5:$D$14,ROW(Sheet1!$D$5:$D$14)),ROW(Sheet1!1:1)),1)
),"",INDEX(Sheet1!$B$1:$B$29,SMALL(IF($L$7=Sheet1!$D$5:$D$14,ROW(Sheet1!$D$5:$D$14)),ROW(Sheet1!1:1)),1))}

This one looks for the instance of a work location (reference cell outside the print area) and does not return duplicates (2:2, 3:3, etc), but it only searches down the specified column. I need it to look down the column that I type into the date cell on the daily sheet. Thereby only needing to change the date to generate any given daily lineup from the calendar. I hope that makes sense, and thank you for your help in advance.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,215,063
Messages
6,122,928
Members
449,094
Latest member
teemeren

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