How do to convert minutes to nearest hour

kilosub

Board Regular
Joined
Jan 7, 2009
Messages
116
Hi All,

I not able to come close to resolve this problem. How do you do convert 30minutes to numeric 0.5 ( to add up for total)


I'm using "=TEXT(D19-C19,"h:M")"

Raw Input: 10.00 AM 4.30PM
Desire Output: 6.5 hours


Thanks and Cheers!!

Kilosub
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hi All,

I not able to come close to resolve this problem. How do you do convert 30minutes to numeric 0.5 ( to add up for total)


I'm using "=TEXT(D19-C19,"h:M")"

Raw Input: 10.00 AM 4.30PM
Desire Output: 6.5 hours


Thanks and Cheers!!

Kilosub
Try this...
  • A1 = 10:00 AM
  • B1 = 4:30 PM
=(B1-A1)*24

Format as General or Number

Result = 6.5
 
Upvote 0
Hi T. Valko,

Problem solve. Thanks a lot....

I was trying to hard to it and apparently it's the very basic formula to tackle the problem.... lol :eeek:

Cheers!!

Kilosub
 
Upvote 0
Hi All,

I've overlook something over here. What happen if:-

A1: 10:00 AM (05-29-2011)
B1: 05:00 AM (05-30-2011)

How do I go around with the formula?


Thanks.


Cheers!!

Kilosub
 
Upvote 0
Hi All,

I've overlook something over here. What happen if:-

A1: 10:00 AM (05-29-2011)
B1: 05:00 AM (05-30-2011)

How do I go around with the formula?


Thanks.


Cheers!!

Kilosub
Try this...

=MOD(B1-A1,1)*24

Format as General or Number
 
Upvote 0
Yup, it works great!!

Thanks again T. Valko. Sorry that I've overlook on this matter.


Cheers,

Kilosub
.
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,463
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top