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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
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
 

Forum statistics

Threads
1,136,616
Messages
5,676,831
Members
419,653
Latest member
analyticalchemist94

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
Top