LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default subtract date and time between columns

Hi,
How can I create a macro that would calculate the difference in date and
time between 2 columns? I have column H and F with the cell format
"yyyy-mm-dd h:mm:ss". I like to have column F subtract column H to get the
date/time difference in the format "dd,h:mm:ss" and put the answer in column K

the macro keep on doing that until it reaches a blank line..

Thanks very much.
 
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
Subtract 12 hours from date/time Cindy Excel Discussion (Misc queries) 8 April 26th 23 07:46 PM
how do I subtract time from a date to get an earlier date? Sunny_Dreams Excel Discussion (Misc queries) 5 February 11th 09 05:58 PM
How do I subtract 8 business hours from a date/time value? drew Excel Discussion (Misc queries) 5 July 7th 08 02:33 PM
Time/Date subtract 24 hours ET902 Excel Discussion (Misc queries) 4 September 12th 06 02:47 PM
how can i subtract time from two different date? Manoo Excel Worksheet Functions 1 March 8th 05 04:00 AM


All times are GMT +1. The time now is 06:15 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"