Show fractions of seconds

scambigol

Board Regular
Joined
Feb 20, 2003
Messages
77
I have a formula which, for simplicity, says: =time(1,23,34.12)
How do I set the cell format so that the hundreths of seconds are shown? If I set mm:ss all I get is 23:34 but I miss out the .12 information
thanks in advance
scambigol
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
I get a similar result. If I enter 1:32:15.015 in a cell formated as "hh:mm:ss.000" it will display up to three decimal places in the seconds value (ie, thousandths of a second). If I enter =time(1,32,15.015) in the same cell, it displays "1:32:15.000" - it seems that the time function may return only integer seconds. When I add ten cells that contain the formula =time(1,1,1.15) the result of 10:10:10.000 indicates that the time values are indeed truncated to integer seconds.

Interestingly, while the original value entered displays as "1:32:15.015" - in the formula bar the value is truncated to "1:32:15 AM" - and the decimal seconds have to be re-entered if the cell is edited, and then they are displayed but again lost on the formula bar. When these are added, though, the fractional parts are retained - ten cells with 1:01:01.15 entered sum to 10:10:11.500...

Note - all on XL2003; I am not sure how other versions might handle this issue
 
Upvote 0
Scambigol

Sorry for the confusion - despite you having clearly stated in your first post you were using TIME() function, I didn't appreciate (or test in my given solution) that this would impact my suggested solution. Dean looks to be absolutely right re TIME truncating the seconds values passed to it. I think you may have to look for an alternative solution not involving TIME() if you want to display decimal fractions of seconds.
 
Upvote 0
alright, thanks a lot - guess it was rather unexpected that the TIME() function would create a problem :D
I've tried things like =TIME(1;1;1)/2 and that does work, so I guess that's the way I'll go about it
thanks a lot
scambigol
 
Upvote 0

Forum statistics

Threads
1,223,879
Messages
6,175,147
Members
452,615
Latest member
bogeys2birdies

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