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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,217,681
Messages
6,137,952
Members
450,100
Latest member
mscetr

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