I Have a spread sheet i am stuck on. I have copied a sample of what i am trying to do.
I have a shift roster and am trying to select the shift on shift based on date and what shift is worked. ( Morning or night.) They way i have the formula works but i would like it to select the column it must look at automatically. for example on 1 November it must look for the shift working morning shift and return that shift name. Here is the example
I would like for it to select the column based on date and then find the shift working morning or night. i can help it by selecting the column to use based on date but i would rather have it do it's own look up. for example on the following formula the bold section is what i want to automate instead of selecting each range and entering it manually. copying does not work as some of the dates are possible on a different column/row.
=INDEX($A$2:$K$5;MATCH($A13;
B$2:B$5
;0);1)
I have a shift roster and am trying to select the shift on shift based on date and what shift is worked. ( Morning or night.) They way i have the formula works but i would like it to select the column it must look at automatically. for example on 1 November it must look for the shift working morning shift and return that shift name. Here is the example
17 oct to 16 november overtime.xlsx | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | date | 01-Nov | 02-Nov | 03-Nov | 04-Nov | 05-Nov | 06-Nov | 07-Nov | 08-Nov | 09-Nov | 10-Nov | ||
2 | shift 1 | m | m | m | n | n | n | do | do | do | do | ||
3 | shift 2 | do | do | do | m | m | m | n | n | n | do | ||
4 | shift 3 | do | do | do | do | do | do | m | m | m | n | ||
5 | Shift 4 | n | n | n | n | do | do | do | do | do | m | ||
6 | |||||||||||||
7 | |||||||||||||
8 | |||||||||||||
9 | |||||||||||||
10 | |||||||||||||
11 | |||||||||||||
12 | date | 01-Nov | 02-Nov | 03-Nov | 04-Nov | 05-Nov | 06-Nov | 07-Nov | 08-Nov | 09-Nov | 10-Nov | ||
13 | m | shift 1 | shift 1 | shift 1 | shift 2 | shift 2 | shift 2 | shift 3 | shift 3 | shift 3 | Shift 4 | ||
14 | N | ||||||||||||
Sheet5 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C1:K1 | C1 | =B1+1 |
B13:K13 | B13 | =INDEX($A$2:$K$5,MATCH($A13,B$2:B$5,0),1) |