EXCEL =(SECOND(I13)) rounding up milliseconds

melley

New Member
Joined
Jul 10, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Thank you for your help with this. I'm not a developer - just a techie :)

I have a situation where I'm splitting a time formatted cell for calculating seconds and including milliseconds
My formula looks like this and it generally works
=(MINUTE(I15)*60)+(SECOND(I15)+(RIGHT(TEXT(I15,"mm:ss.000"),3)/1000))

And my data (time) looks like this
I15 = 01:49.833
And this field is a custom format mm:ss.000

this calculates the seconds to be
result = 110.833

but the correct answer should be
result should be = 109.833

testing has shown that it is rounding the seconds up based on the millseconds immediately following
ie 01:49.833 incorrectly becomes 110.833
while 01:49.433 correctly becomes 109.433

please help - what can I do to correct this
And the simpler the fix the better please

Cheers
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
You're welcome, remember time is stored as a fraction of a day, which Excel displays in time format.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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