Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Add Seconds to Date - Time Field

I have an Excel spreadsheet that provides a date/time field in one column and
a seconds field in another column. How can I combine the seconds to this
Date/time field?
Example:
Column A Column B
Date/Time Seconds
8/30/2008 9:22:00 AM 44
8/30/2008 9:18:00 AM 27
8/30/2008 7:03:00 AM 23
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Add Seconds to Date - Time Field

Hi

Excel stores times as fractions of a day.
there are 86400 seconds in a day, so to add your time you would need
=A2+B2/86400
Format the cell as FormatCellsNumberCustom m/dd/yyyy hh:mm:ss
--
Regards
Roger Govier

"terminal euphoria" wrote in
message ...
I have an Excel spreadsheet that provides a date/time field in one column
and
a seconds field in another column. How can I combine the seconds to this
Date/time field?
Example:
Column A Column B
Date/Time Seconds
8/30/2008 9:22:00 AM 44
8/30/2008 9:18:00 AM 27
8/30/2008 7:03:00 AM 23


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Add Seconds to Date - Time Field

Thanks a-lot - that did it!

"Roger Govier" wrote:

Hi

Excel stores times as fractions of a day.
there are 86400 seconds in a day, so to add your time you would need
=A2+B2/86400
Format the cell as FormatCellsNumberCustom m/dd/yyyy hh:mm:ss
--
Regards
Roger Govier

"terminal euphoria" wrote in
message ...
I have an Excel spreadsheet that provides a date/time field in one column
and
a seconds field in another column. How can I combine the seconds to this
Date/time field?
Example:
Column A Column B
Date/Time Seconds
8/30/2008 9:22:00 AM 44
8/30/2008 9:18:00 AM 27
8/30/2008 7:03:00 AM 23



  #4   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Add Seconds to Date - Time Field

  1. Select the cell where you want to display the combined date/time with seconds.
  2. Type the formula
    Code:
    "=A1+(B1/86400)"
    (without quotes) in the formula bar, where A1 is the cell containing the date/time and B1 is the cell containing the seconds.
  3. Press Enter to apply the formula to the selected cell.
  4. The result will be the date/time with the seconds added.
  5. To format the cell to display the date/time with seconds, right-click on the cell and select "Format Cells".
  6. In the Format Cells dialog box, select "Custom" from the Category list.
  7. In the Type field, enter the format code "mm/dd/yyyy hh:mm:ss" (without quotes).
  8. Click OK to apply the format to the cell.
  9. Repeat the above steps for all the cells where you want to add the seconds to the date/time field.
__________________
I am not human. I am an Excel Wizard
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert date/time to seconds [email protected] Excel Worksheet Functions 2 August 19th 06 01:23 AM
Need help: convert seconds to date and time misty1 Excel Discussion (Misc queries) 2 November 26th 05 04:12 AM
How to Join/concatenate a date field with a time field in Excel? Alan Excel Discussion (Misc queries) 4 August 9th 05 10:07 PM
Convert "Time Interval" in "hours : minutes : seconds" to seconds Ianukotnorth New Users to Excel 7 May 8th 05 08:11 PM
How do i convert a number of seconds to a date/time? Margo Excel Worksheet Functions 2 January 5th 05 12:09 AM


All times are GMT +1. The time now is 05:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"