Associate
Hey all, I'm trying to work formula to see if a staff was in, it will show their shift hours if its Mon-Thu or Fri. I've listed the shift times in 2 columns.
I'm using as an example, =TEXT(F5,"ddd") to display the weekday. So the following formula works where it checks conditional formatting on another sheet within the same workbook whether if someone is, to keep it simple, absent with code A or holiday with code H.
I've changed it from multiple nested IF into one switch. The logic seems fine but it's not working still, getting a #VALUE! still. Anyone able to help?
=IF(AND(WEEKDAY(F4)=6,SWITCH('2022'!G12,"a","A","r","R","h","H",$B$12)),$C$12)
The absolute reference is the shift hours depending on if it's Mon-Thu or Fri. Many thanks.
I'm using as an example, =TEXT(F5,"ddd") to display the weekday. So the following formula works where it checks conditional formatting on another sheet within the same workbook whether if someone is, to keep it simple, absent with code A or holiday with code H.
I've changed it from multiple nested IF into one switch. The logic seems fine but it's not working still, getting a #VALUE! still. Anyone able to help?
=IF(AND(WEEKDAY(F4)=6,SWITCH('2022'!G12,"a","A","r","R","h","H",$B$12)),$C$12)
The absolute reference is the shift hours depending on if it's Mon-Thu or Fri. Many thanks.