How to add seconds to a date and time?

Ed Harris

Board Regular
Joined
Dec 9, 2017
Messages
51
Office Version
  1. 2010
Platform
  1. Windows
I am trying to make a time correction due to computer clock running slow. For some reason the time correction in column AE of the table below won't update. It doesnt make any difference if I use ordinary date format or excel time code format as source. I have tried using the value in column AD as numeric value (ie not a product of a formula in the cell) as I have found that sometimes works but this time it failed (rows 4 to 6). As far as I know deviding by 86400 converts the seconds into excel second format so if you dont do that as in the last three rows it changes the date. Any help much appreciated.

Beam1 2021.xlsx
AAABACADAE
1DateDate clock correctedexcel format of datetime correction secondsCorrected date
2
305/01/2021 08:3304/11/2020 00:0044139.003.7905/01/2021 08:33
405/01/2021 13:483.8105/01/2021 13:48
507/01/2021 14:103.9307/01/2021 14:10
606/02/2021 09:245.7406/02/2021 09:24
716/02/2021 00:546.3316/02/2021 00:54
817/02/2021 06:066.4017/02/2021 06:06
921/02/2021 09:166.6528/02/2021 00:55
1025/02/2021 08:586.8904/03/2021 06:26
1126/02/2021 08:586.9605/03/2021 07:54
Sheet1
Cell Formulas
RangeFormula
AC3AC3=AB3
AD9:AD11,AD3:AD5AD3=(AA3-$AB$3)*9/148
AE3:AE8AE3=AA3+(AD3/86400)
AE9:AE11AE9=AA9+AD9
 

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.
The data you are showing is only formatted to show hours & minutes. If you change the format to show seconds as well you will see that it does work.
+Fluff 1.xlsm
AAABACADAE
1DateDate clock correctedexcel format of datetime correction secondsCorrected date
2
305/01/2021 08:33:4144139441393.79196305/01/2021 08:33:45
405/01/2021 13:48:243.80525305/01/2021 13:48:28
507/01/2021 14:10:253.92780507/01/2021 14:10:29
606/02/2021 09:24:225.74004906/02/2021 09:24:28
716/02/2021 00:54:316.32662716/02/2021 00:54:38
817/02/2021 06:06:246.40060817/02/2021 06:06:30
921/02/2021 09:16:516.65189421/02/2021 09:16:58
1025/02/2021 08:58:386.89436825/02/2021 08:58:44
1126/02/2021 08:58:386.95517826/02/2021 08:58:44
Primary
Cell Formulas
RangeFormula
AC3AC3=AB3
AD3:AD5,AD9:AD11AD3=(AA3-$AB$3)*9/148
AE3:AE11AE3=AA3+(AD3/86400)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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