D
Dave WL
Here's a challenge for anyone who thinks they're good enough. It's give
me an extreme headache. I have two columns of time data (Start an
End). From this I needed to calculate first time difference as
decimal - done - no problem. Now what I need to do is split tha
decimal.
I need to set it up so that the time is split into Basic and Premiu
time. If the hours are after 7pm and before 7am they are "premium
hours - if before "7pm" they are basic. I managed to get it so that i
would come back with the right hours with this formula:
=IF(HOUR($D54)>=19,(((HOUR($D54)-19)+(MINUTE($D54)/60))*(E54+F54)),IF(HOUR($D54)<7,(((HOUR($D54)+5)+(MINUTE($D54)/60))*(E54+F54)),0))
Column D being the end time (column C would the the start time). Bu
this only works if the start time if before 7pm. If both the start an
end time are in the "Premium" time then it doesn't. And then if the en
time is after midnight it works ok (again presuming that start time i
before 7pm) but if the end time IS midnight then I of course get a hug
negative premium time. I managed to get some of the way to fixing thi
but only with about 15 "IF"s strung together. There MUST be an easie
way.
PLEASE HELP!!!!!!
I'm only 23 and this has already given me grey hairs
me an extreme headache. I have two columns of time data (Start an
End). From this I needed to calculate first time difference as
decimal - done - no problem. Now what I need to do is split tha
decimal.
I need to set it up so that the time is split into Basic and Premiu
time. If the hours are after 7pm and before 7am they are "premium
hours - if before "7pm" they are basic. I managed to get it so that i
would come back with the right hours with this formula:
=IF(HOUR($D54)>=19,(((HOUR($D54)-19)+(MINUTE($D54)/60))*(E54+F54)),IF(HOUR($D54)<7,(((HOUR($D54)+5)+(MINUTE($D54)/60))*(E54+F54)),0))
Column D being the end time (column C would the the start time). Bu
this only works if the start time if before 7pm. If both the start an
end time are in the "Premium" time then it doesn't. And then if the en
time is after midnight it works ok (again presuming that start time i
before 7pm) but if the end time IS midnight then I of course get a hug
negative premium time. I managed to get some of the way to fixing thi
but only with about 15 "IF"s strung together. There MUST be an easie
way.
PLEASE HELP!!!!!!
I'm only 23 and this has already given me grey hairs