mark hansen
Well-known Member
- Joined
- Mar 6, 2006
- Messages
- 534
- Office Version
- 2016
- Platform
- 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
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