Converting time

Mr2017

Well-known Member
Joined
Nov 28, 2016
Messages
644
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
What's the best format to use to convert this time value to minutes and seconds in Excel?

I would then want to round up the time to the nearest minute, in a separate cell.

Does anyone know?

Please assume that this value is in cell A1:

02/01/1900 05:03:00
 
You would need to create a custom format & in the Type field type in [m]:ss
However why is it showing a date of 2nd Jan 1900? Not sure why it's showing a date. It's data that I inherited. But thank you for your suggested solution.
 
Upvote 0

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.
You would need to create a custom format & in the Type field type in [m]:ss
However why is it showing a date of 2nd Jan 1900?
Ok, thanks - I assume this particular custom format rounds the time to the nearest minute, as well, right?
 
Upvote 0
No, it just shows the total number of minutes & seconds. Why not try it & you'll see what you get.
 
Upvote 0
No, it just shows the total number of minutes & seconds. Why not try it & you'll see what you get.
I had tried it, but all the seconds were zero, so I assumed that it had rounded everything to the nearest minute.
 
Upvote 0
Maybe your time values do not include any seconds, like the example you posted

Maybe your time values do not include any seconds, like the example you posted.
Ok, I have two final questions:

1) I have used the custom format suggested ie [m]:ss

and this time 01:02:00 is converted to 62 mins (which makes sense ie 1 hour and 2 mins is 62 mins)

and this time 02/01/1900 05:03:00 is converted to 3183:00 ie 3,183 minutes, which seems odd?

2) The original raw format of the two times above come up as 0.0430555555555556 and 2.21041666666667, when pasted as values, from a CSV file.

If I then use this formula =TIME(0,MINUTE(B2)+(SECOND(B2)<>0),0) to round them up to the nearest minute (you may need to change the B2 cell reference), I get 02:00 and 03:00, which looks like 2 and 3 minutes, respectively (when the custom [m]:ss formatting is applied in those cells, as well. This seems very odd!

Do you know why 62 mins and 3,183 minutes would be rounded down to 2 and 3 mins, respectively?
 
Upvote 0
02/01/1900 05:03:00 is converted to 3183:00 ie 3,183 minutes, which seems odd?
Not at all, you have 2 days which are 1440 minutes per day which makes 2880 plus the 5:03:00 makes 3183
Do you know why 62 mins and 3,183 minutes would be rounded down to 2 and 3 mins, respectively?
They aren't, neither of those examples have any seconds.
 
Upvote 0
Not at all, you have 2 days which are 1440 minutes per day which makes 2880 plus the 5:03:00 makes 3183

They aren't, neither of those examples have any seconds.
How do you know this time is 2 days? I'm intrigued....

02/01/1900 05:03:00
 
Upvote 0
Because it's the 2nd of Jan 1900.
Time is just a fraction of a day so when you add times together, if they go over 24hrs, excel adds another day.
+Fluff 1.xlsm
A
1
200/01/1900 20:00
300/01/1900 22:00
401/01/1900 18:00
Master
Cell Formulas
RangeFormula
A4A4=SUM(A2:A3)
 
Upvote 0

Forum statistics

Threads
1,214,917
Messages
6,122,233
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