Basically I'm trying to create a formula that works out from the time in a cell if a driver should be paid out of hours or not. OOH runs from 1800 to 0759, so if the cell shows a time equal or in between these times the cell containing the formula should read "Yes", and viceversa in the other circumstance.
This is where I'm at right now:
=SUM(IF(I8>TIME(8,0,0),"No"),IF(I8<=TIME(17,59,0),"No"),IF(I8>=TIME(18,0,0),"Yes"),IF(I8<=TIME(7,59,0),"Yes"))
Unfortunately I get the #value! error, I thought this meant there's text and numbers mixed up.. however I cannot for the life of me get this formula to work. Any ideas?
Also, this formula is the basis for my end goal, I also want to include weekends and bank holidays in this. How can I go about achieving this? Would I need to incorporate the next few years calender including bank holidays on a separate sheet and what would the complete formula look like?
It's a big ask I know, but if i can at least get the Yes/No to work on the time I can then work on the days of the week.
I look forward to your replies.
This is where I'm at right now:
=SUM(IF(I8>TIME(8,0,0),"No"),IF(I8<=TIME(17,59,0),"No"),IF(I8>=TIME(18,0,0),"Yes"),IF(I8<=TIME(7,59,0),"Yes"))
Unfortunately I get the #value! error, I thought this meant there's text and numbers mixed up.. however I cannot for the life of me get this formula to work. Any ideas?
Also, this formula is the basis for my end goal, I also want to include weekends and bank holidays in this. How can I go about achieving this? Would I need to incorporate the next few years calender including bank holidays on a separate sheet and what would the complete formula look like?
It's a big ask I know, but if i can at least get the Yes/No to work on the time I can then work on the days of the week.
I look forward to your replies.