scheduling sheet sufferage

byteblorg

New Member
Joined
Jun 28, 2015
Messages
5
hey guys

i have this scheduling sheet which i need to automate.
specifically, in sheet1, my HR planner inputs the dates which each employee is working, over 5 days.

in sheet 2, i need to have formula driven range A2:J10
row1 (the date forecast), updates in tandem with the current date.

as the date changes, the sheet picks up who is planned for that day(ie on 11/07/15 adam is scheduled twice) from sheet1.

sheet1:

PersonDay1Day2Day3Day4Day5
adam11/07/201512/07/201513/07/2015
shirley13/07/201514/07/2015
john09/11/201511/12/2015
adam10/07/201511/07/201512/07/201513/07/201514/07/2015
tiffany15/07/201516/07/201517/07/2015
shirley11/12/201512/12/201513/12/2015
john12/07/2015

<!--StartFragment--> <colgroup><col width="65" span="6" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>

sheet2

10/07/201511/07/201512/07/201513/07/201514/07/201515/07/201516/07/201517/07/201518/07/201519/07/2015
adamadamadamshirleytiffanytiffanytiffany
adamadamshirleytiffany
johnadam

<colgroup><col span="10"></colgroup><tbody>
</tbody>
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Here you go. I think you made a few mistakes in your manual table on sheet 2. Adam should also exist once for 10/07/2015 and tiffany doesn't belong on 14/07/2015, but adam does.

I trust my formula more, so I think I have it right. You can drag the array formula down and across from A2

Excel 2010
ABCDEF
1PersonDay1Day2Day3Day4Day5
2adam7/11/20157/12/20157/13/2015
3shirley7/13/20157/14/2015
4john11/9/201512/11/2015
5adam7/10/20157/11/20157/12/20157/13/20157/14/2015
6tiffany7/15/20157/16/20157/17/2015
7shirley12/11/201512/12/201512/13/2015
8john7/12/2015

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1




Excel 2010
ABCDEFGHIJ
17/10/20157/11/20157/12/20157/13/20157/14/20157/15/20157/16/20157/17/20157/18/20157/19/2015
2adamadamadamadamshirleytiffanytiffanytiffany
3adamadamshirleyadam
4johnadam

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
A1=TODAY()
B1=A1+1

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
A2{=IFERROR(INDEX(Sheet1!$A$2:$A$8,SMALL(IF(Sheet1!$B$2:$F$8=A$1,ROW(Sheet1!$A$2:$A$8)-1),ROW(Sheet1!1:1))),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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