How do I add add decimal seconds to time

investorwize

New Member
Joined
Oct 22, 2015
Messages
6
Working on another real estate application and one of my employees are trying to add decimal seconds to time.

So my column looks like this where column 2 is the amount of seconds passed and is a decimal type

COLUMN1 COLUMN2 COLUMN3
12:32:07 66.22 = COLUMN1 + TIME(0,0,COLUMN2)

This is what I am trying but I believe the calculation comes out incorrect because seconds is a decimal.

Let me know how I can do this.


Geoffrey
 
Last edited by a moderator:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Row\Col
A​
B​
C​
D​
1​
12:32:07​
66.22​
12:33:13.22​
C1: =A1+B1/86400
2​
Format of C1: hh:mm:ss.00
 
Upvote 0
It Worked. You are absolutely amazing. Now one more thing. Is there a way to round the time to the nearest millisecond.

Geoffrey
 
Last edited by a moderator:
Upvote 0
COLUMN1 COLUMN2 COLUMN3
12:32:07 66.22 = COLUMN1 + TIME(0,0,COLUMN2)

This is what I am trying but I believe the calculation comes out incorrect because seconds is a decimal.

There is nothing wrong with your original formula.

Non-integer seconds are truncated (rounded down). So if "column2" is 66.9999, the result is the same as adding 66, namely 12:33:13.000.

Perhaps your only problem is: be sure to format the value in "column3" as Custom [h]:mm:ss.

Caveat: "column2" is limited to about 32767.999 (9h 6m 7s).

Sorry I meant round the time to the nearest second.

If "column1" is A1 and "column2" is B1, write:

=A1+TIME(0,0,ROUND(B1,0))

But in that case, "column2" is limited to about 32767.499.

PS.... Why would someone working on a "real estate application" need to add time in seconds? Just curious.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,829
Messages
6,127,130
Members
449,361
Latest member
VBquery757

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