Add seconds to time - Excel

Asked

Viewed 1,350 times

4

I have a column with the following values:

945
224
554
487

That would be the seconds I need to add to another column with time, minutes and seconds

12:09:37
23:54:45
10:40:44
11:20:10

I’m doing it this way

I take a second value and add 00:00: at the front, example: 00:00:945 and excel returns me 0,0109375 (What account is he making here?) then I take this value and convert it to time and the result is 00:03:57, up there no problem, I just add with the column that contains the hour.

The problem is that it doesn’t work for more than 9999 minutes, it just doesn’t convert 00:00:11000 and and do not know what account Excel does to convert "manually"? Or do another way? Another point is that I have to manually type the 00:00: if I use a Concatenate this is as text.

  • Just one explanation: Excel, and many other software, treat the date as the Julian day (the number of days elapsed from a given date) and the instant of the day as the fractional part. Thus an integer represents a date and a timestamp is represented by a real number where the date is an integer part and the instant of the day the fractional part. This type of representation presents numerous advantages in operations involving dates and for display just choose the format most suitable to the local standard where it is being used.

2 answers

6


You can do it this way:

1) Convert seconds to an Excel time value (yes, that’s the term):

Segundos / 86400

2) Then, in formatting convert it to a time field.

inserir a descrição da imagem aqui

Below is an example of how it would look:

inserir a descrição da imagem aqui

  • 1

    That’s right there, I had discovered that Excel did for 86400 which is the seconds of 24h. Very interesting that.

3

All you have to do is divide the number of seconds you want to add by the total number of seconds that corresponds to a day, which is 86400 seconds (24 hours * 60 minutes * 60 seconds). You’ll get a fraction, so just add to the hour.

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.