Smiling Carcass
New Member
- Joined
- Mar 13, 2012
- Messages
- 6
I have developed the following formula-
=IF(F3="","",IF(E3>="*06",ROUND(F3*96,0)/96-1/96,ROUND(F3*96,0)/96))
Which is designed to take a time in from D2, a time out from E3 and return the time difference, rounding down to the nearest ¼ hour if it is six or less minutes past the hour, and rounding up if it is seven minutes or more past the hour; it works perfectly well from 01 to 06 minutes past the hour, rounding down as it should. It works perfectly well from 08 minutes past the hour, rounding up as it should. However, for 07 minutes past the hour it is supposed to round up, but instead rounds down. Can anybody see my mistake?
=IF(F3="","",IF(E3>="*06",ROUND(F3*96,0)/96-1/96,ROUND(F3*96,0)/96))
Which is designed to take a time in from D2, a time out from E3 and return the time difference, rounding down to the nearest ¼ hour if it is six or less minutes past the hour, and rounding up if it is seven minutes or more past the hour; it works perfectly well from 01 to 06 minutes past the hour, rounding down as it should. It works perfectly well from 08 minutes past the hour, rounding up as it should. However, for 07 minutes past the hour it is supposed to round up, but instead rounds down. Can anybody see my mistake?