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
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
just round or roundup or rounddown ???
Map1
ABCD
12/01/1900 5:03:3105:03:31
205:04:001440
Blad2
Cell Formulas
RangeFormula
C1C1=A1-TRUNC(A1)
C2C2=MROUND(C1,1/1440)
D2D2=24*60
 
Upvote 0
ignore
answered as i went to put an xl2bb
is this showing as text
change format to General do you get 2.2104
if so , just change the format to TIME
if its TEXT
then in a new cell
=TIMEVALUE(RIGHT(A1,8))
 
Upvote 0
If the value is a proper date time, then just format the cell to [m]:ss
 
Upvote 0
also with fluff's solution, but i didn't see you wanted to get ride of the hours ?
Map1
ABCD
12/01/1900 5:03:3105:03:31
205:04:001440
3
4fluff00:03:31
500:04:00
6
7other method00:03:31
800:04:00
Blad2
Cell Formulas
RangeFormula
C1C1=A1-TRUNC(A1)
C2,C5C2=CEILING.MATH(C1,1/1440)
D2D2=24*60
C4C4=TIMEVALUE(TEXT(A1,"\0\0:mm:ss"))
C7C7=TIME(0,MINUTE(A1),SECOND(A1))
C8C8=TIME(0,MINUTE(A1)+(SECOND(A1)<>0),0)
 
Upvote 0
My take on this.
+Fluff 1.xlsm
ABCD
102/01/1900 05:03:313183:313184:00
Data
Cell Formulas
RangeFormula
C1C1=TEXT(A1,"[m]:ss")
D1D1=CEILING.MATH(A1+0,1/1440)
 
Upvote 0
If the value is a proper date time, then just format the cell to [m]:ss
It's a proper date and time and but is a log of how long a call was ie 5 hours and 3 mins. But when I format it to Custom: mm:ss ([m]:ss wasn't available?) it displays it as 03:00 ie 3 mins and 00 seconds.

Do you know why that is? I thought it would be 303 mins? ie 5 * 60 + 3....
 
Upvote 0
Map1
AB
12/01/1901 5:0305:03:31
205:04:00
Blad1
Cell Formulas
RangeFormula
B1B1=TIMEVALUE(TEXT(A1,"uu:mm:ss"))
B2B2=CEILING.MATH(B1,1/1440)


error in the translation "uu:mm:ss" (dutch) ----> "hh:mm:ss" (english)
 
Upvote 0
But when I format it to Custom: mm:ss ([m]:ss wasn't available?)
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?
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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