Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 211
Default add/subtracting date:time in Excel 2000

Looking for a way to add/subtract dates/time values. i.e. date/time
1=6/30/05 08:46:00 and date/time 2 is 6/25/05 14:53:00. Time 2 is different
from time 1 by N-Days; N-hours, N-minutes. value can be either positive or
negetive depending on dates. Once thatrvalue is calculated I want to add it
to another value. Any ideas would be appreciated
Gordon
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default add/subtracting date:time in Excel 2000

Have you looked at

http://www.cpearson.com/excel/datetime.htm#AddingDates

Hope this helps
Rowan

"Gordon" wrote:

Looking for a way to add/subtract dates/time values. i.e. date/time
1=6/30/05 08:46:00 and date/time 2 is 6/25/05 14:53:00. Time 2 is different
from time 1 by N-Days; N-hours, N-minutes. value can be either positive or
negetive depending on dates. Once thatrvalue is calculated I want to add it
to another value. Any ideas would be appreciated
Gordon

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default add/subtracting date:time in Excel 2000

dates are saved in Excel internally as 'Long' - with the value being the
number of days from 30/12/1899 to the date used. Time is saved internally as
the decimal part of a day..thus Date/ime is 'Double' This means that 12 noon
os 0.5, 9pm is 0.75

The net of it is that to get the difference in days/time, all one has to do
is subtract on date from another and format it correctly.

A1 31/5/2005 4:00
A2 17/9/2003 17:00
A3 = A1 - A2
621.458333 format to "0 ?/24" this becomes 621 11/24

change A2 to 17/9/2005 17:00
then A3 shows -109 13/24


HTH
"Gordon" wrote:

Looking for a way to add/subtract dates/time values. i.e. date/time
1=6/30/05 08:46:00 and date/time 2 is 6/25/05 14:53:00. Time 2 is different
from time 1 by N-Days; N-hours, N-minutes. value can be either positive or
negetive depending on dates. Once thatrvalue is calculated I want to add it
to another value. Any ideas would be appreciated
Gordon

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 211
Default add/subtracting date:time in Excel 2000

Thanks a BILLION.... this was really helpful. Hit the mark dead on. Special
thanks to the people at Pearson consulting for taking the time to spell this
out in such detail.

Gordon

"Rowan" wrote:

Have you looked at

http://www.cpearson.com/excel/datetime.htm#AddingDates

Hope this helps
Rowan

"Gordon" wrote:

Looking for a way to add/subtract dates/time values. i.e. date/time
1=6/30/05 08:46:00 and date/time 2 is 6/25/05 14:53:00. Time 2 is different
from time 1 by N-Days; N-hours, N-minutes. value can be either positive or
negetive depending on dates. Once thatrvalue is calculated I want to add it
to another value. Any ideas would be appreciated
Gordon

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
subtracting date/time Nathan Excel Worksheet Functions 8 January 29th 09 03:29 AM
Subtracting Date/Time Sapphyre Excel Discussion (Misc queries) 4 August 21st 07 01:42 AM
add/subtracting date:time in Excel 2000 Gordon[_2_] Excel Programming 1 July 21st 05 03:01 AM
Subtracting time in date format Collcat Excel Worksheet Functions 0 November 11th 04 04:44 PM
Subtracting time in date format Collcat Excel Worksheet Functions 1 November 11th 04 04:02 PM


All times are GMT +1. The time now is 01:51 AM.

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

About Us

"It's about Microsoft Excel"