Hours and Minutes to minutes

mark hansen

Well-known Member
Joined
Mar 6, 2006
Messages
534
Office Version
  1. 2016
Platform
  1. Windows
I have a column (M) that is a result of subtracting two date /time to get the elapsed time. The column (M) is formatted to [h]:mm and seems to displaying the correct Hours and minutes. When I sort of that column it goes from 0 hours 21 minutes to 3497 hours and 46 Minutes.

I want to convert the hours/minutes to a number that represents only minutes. I'm using the formula =(HOUR(M182)*60)+MINUTE(M182). It works until I get to 24 hours zero minutes. Instead of displaying 1440 (24 hours times 60), it displays zero. Even the formula =Hour(M182) where M182 is 24:00 displays 0.

How can I get the formula to work when the hours is 24 or above?

Thanks for any help,
Mark
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Some additional information...

When the hours go up to 25 hours 7 minutes (for example) it displays 67 minues, completely disregarding the first 24 hours or 1440 minutes.
 
Upvote 0
Two ways:

[Table="width:, class:grid"][tr][td]Row\Col[/td][td]
M​
[/td][td]
N​
[/td][td]
O​
[/td][td]
P​
[/td][/tr]
[tr][td]
1​
[/td][td]
0:21​
[/td][td]
3497:46​
[/td][td][/td][td]Format of M1: [h]:mm[/td][/tr]

[tr][td]
2​
[/td][td]
21​
[/td][td]
209866​
[/td][td]M2: =M1[/td][td]Format of M2: [m][/td][/tr]

[tr][td]
3​
[/td][td]
21​
[/td][td]
209866​
[/td][td]M3: =M1*1440[/td][td]Format of M3: General[/td][/tr]
[/table]
 
Upvote 0
Thanks shg,

I used #2 I didn't think just formationg the out as [m].

I appreciate the help!
Mark
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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