Kirstym1918
New Member
- Joined
- Dec 17, 2017
- Messages
- 45
Hi everyone,
A little help is required if anyone is willing
I have this formula below which pulls staff hours from each weekly tab as the hours are input daily which is in the first two VLOOKUP formulas, if no hours are found for that particular person then it reverts to the INDEX MATCH formula which pulls the data from their rota i.e Holiday, Rest day, Overtime (This then compiles the below which by the end of the week is filled with hours worked). It works great except, I would like it to look at the rota first and if the data match in the rota equals "overtime", I want it to use this rather than pull their hours through from the VLOOKUP formula. Can anyone offer any help of how I should do that at the beginning of the formula?
=IF($C44<>"",IFERROR(VLOOKUP('HB Overtime'!$C44,Sun!$C$6:$F$501,4,FALSE),IFERROR(VLOOKUP($C44,Sun!$H$6:$K$501,4,FALSE),IFERROR(INDEX(HB_Rota'!$D$4:$NE$500,MATCH($C44,HB_Rota'!$C$4:$C$500,0),MATCH(D$2,HB_Rota'!$D$1:$NE$1,0)),""))),"")
A little help is required if anyone is willing
I have this formula below which pulls staff hours from each weekly tab as the hours are input daily which is in the first two VLOOKUP formulas, if no hours are found for that particular person then it reverts to the INDEX MATCH formula which pulls the data from their rota i.e Holiday, Rest day, Overtime (This then compiles the below which by the end of the week is filled with hours worked). It works great except, I would like it to look at the rota first and if the data match in the rota equals "overtime", I want it to use this rather than pull their hours through from the VLOOKUP formula. Can anyone offer any help of how I should do that at the beginning of the formula?
=IF($C44<>"",IFERROR(VLOOKUP('HB Overtime'!$C44,Sun!$C$6:$F$501,4,FALSE),IFERROR(VLOOKUP($C44,Sun!$H$6:$K$501,4,FALSE),IFERROR(INDEX(HB_Rota'!$D$4:$NE$500,MATCH($C44,HB_Rota'!$C$4:$C$500,0),MATCH(D$2,HB_Rota'!$D$1:$NE$1,0)),""))),"")