convert H:MM to Minutes?

afs24

Board Regular
Joined
Sep 26, 2002
Messages
237
How do I convert a H:MM format I.E. 4:30 into minutes? When I use the formula =convert(cell,"hr","mn") it gives me 11.25? I don't think it allows the colon? Any ideas how I can convert this? Thank you
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Excel stores time as fractions of a day, so 4:30 is stored as 0.19 days.

=CONVERT(A1,"hr","mn") converts 0.19 hrs to minutes, giving you 11.25.

You'd first have to convert 0.19 days to the correct number of hours.

Try:

=CONVERT(A1*24,"hr","mn")

or just =A1*24*60, formatted as a number.
 
Upvote 0
Sorry to be a thread intruder, but I would just like to say "Thanks" for the complete randomness of "CONVERT"

I didn’t know that function existed and I think will come in VERY handy on a new project I’m working on that was having me thinking about ways to convert some data, problem solved before it existed I guess!

:)
 
Upvote 0
although be aware that CONVERT is an Analysis ToolPak add-in function.

For the above I prefer

=A1*1440

but you could also use

=CONVERT(A1,"day","mn")

or even

=A1 and format as [m]

Note: if you use the last of these the underlying cell value will be different to that generated by the first 2
 
Upvote 0
And, thanks for the heads up Oaktree - I shall be careful :)
 
Upvote 0

Forum statistics

Threads
1,214,428
Messages
6,119,420
Members
448,895
Latest member
omarahmed1

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