Formula Question h:mm

mayoung

Active Member
Joined
Mar 26, 2014
Messages
257
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Please Help:
In cell C8 is the number 385 which is total minutes per day. I am trying to convert 385 to total hours and minutes in C9 which should come out to
6 hours and 42 minutes. I am using the formula =convert(C8,”mn”,”hr”).
I have cell C9 Custom formatted as h:mm.
The answer in C9 comes up as 0:06

What am I doing wrong? I want to show hours and minutes?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
So nothing in will come up with the 6.42 then? Using the 385 as minutes?
fhqwgads has given you the way to get 6.42 but I just wanted to remind you that you did not appear to be asking for that. You indicated you wanted hours and minutes... that would be 6 hours and 25 minutes. The 6.42 you now seem to be asking for is not hours and minutes... it is hours and fraction of an hour and rightly written as 6.42 hours.
 
Upvote 0
GoodDay mayoung and All

Greetings Mr: Rick Rothstein


I think the formlua to be:
VBA Code:
 =SUBSTITUTE(ROUND(CONVERT(C8,"mn","hr"),2),".",":")

Book1
C
8385
96:42
Sheet1
Cell Formulas
RangeFormula
C9C9=SUBSTITUTE(ROUND(CONVERT(C8,"mn","hr"),2),".",":")
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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