Soldato
- Joined
- 13 Jan 2004
- Posts
- 12,773
- Location
- Leicestershire
hi, i'm really stumped on this one....
i'm trying to work out how many hours on a spreadsheet are worked at premium (unsociable hours) and how to work it out...
e.g.
working 00:00-08:00.... unsociable hours are 18:00-06:00.
how can i get it to work out that 00:00-06:00 will be at a premium but the last 2 hours wont be.
i've tried IF/AND statments to work it out, but i'm having trouble getting them to work because of the crossover of time at 00:00 which means that i cannot just say it in the easier format.
i don't have the formula to hand what i was trying to use, but i could get it to work in a fashion but i need to be able to put in any start or end time and have it work out the premium from that. there are workarounds that could be employed but it's something that's been niggling me and no one i know knows how to do it!
if anyone could point me in the right direction it would help. cheers.
i'm trying to work out how many hours on a spreadsheet are worked at premium (unsociable hours) and how to work it out...
e.g.
working 00:00-08:00.... unsociable hours are 18:00-06:00.
how can i get it to work out that 00:00-06:00 will be at a premium but the last 2 hours wont be.
i've tried IF/AND statments to work it out, but i'm having trouble getting them to work because of the crossover of time at 00:00 which means that i cannot just say it in the easier format.
i don't have the formula to hand what i was trying to use, but i could get it to work in a fashion but i need to be able to put in any start or end time and have it work out the premium from that. there are workarounds that could be employed but it's something that's been niggling me and no one i know knows how to do it!
if anyone could point me in the right direction it would help. cheers.
