pleasehelpSP
New Member
- Joined
- Sep 22, 2010
- Messages
- 12
Hi all,
I need to convert a time into a decimal, but also add a specific rounding function. For example, A1 shows the hours and minutes worked in the form of 8:39 (meaning 8 hours, 39 minutes). I want to convert this to a decimal in B1 and also round to the nearest quarter hour.
Where:
Minutes 0-7 = 0
Minutes 8-22 = .25
Minutes 23-37 = .50
Minutes 38-52 = .75
Minutes 53-0 = would round up to the next hour, with minutes at 0
So for the example of 8:39, B1 would need to read 8.75.
I also have a few instances when hours worked will be something like 14:04 - still meaning 14 hours and 4 minutes - I'm having trouble with Excel reading this as military time and only attributing 2 hours and 4 minutes. Anyway to overcome that?
- SP
I need to convert a time into a decimal, but also add a specific rounding function. For example, A1 shows the hours and minutes worked in the form of 8:39 (meaning 8 hours, 39 minutes). I want to convert this to a decimal in B1 and also round to the nearest quarter hour.
Where:
Minutes 0-7 = 0
Minutes 8-22 = .25
Minutes 23-37 = .50
Minutes 38-52 = .75
Minutes 53-0 = would round up to the next hour, with minutes at 0
So for the example of 8:39, B1 would need to read 8.75.
I also have a few instances when hours worked will be something like 14:04 - still meaning 14 hours and 4 minutes - I'm having trouble with Excel reading this as military time and only attributing 2 hours and 4 minutes. Anyway to overcome that?
- SP