Date and time plus xxx seconds

West Man

Well-known Member
Joined
Mar 27, 2006
Messages
1,175
In A1 I have a start date mm/dd/yy, A2 has a start time hh:mm:ss (24 hr format). In A3 I have a field of seconds formatted as number. I wish to add these seconds to the starting date and time to get a 2 cell ending date/time, 1 with the ending date and 1 with the ending time. Suggestions?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Assuming your seconds is a whole number:

=A1+A2+(A3/86400)

Format cells in the time and date format you want.
Book4
ABCD
11/1/20061/1/200601:00:23
21:00:00
323
Sheet1
 
Upvote 0
Hi West Man

If you the 2 values separated

End Date:
=INT(A1+A2+A3/86400)

End Time:
=MOD(A1+A2+A3/86400,1)

HTH
PGC
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,462
Members
449,085
Latest member
ExcelError

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