#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Subtracting Dates

Hi,

how do I subtract the dates? I have a date in one cell and a date in
another. i wish to know the difference with respect to the number of days
between the two dates. wt formula shud b used in the next cell? Simply
applying the formula =A1-A2 gives me an absurd date in A3? i need the no of
days.
thx for help.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Subtracting Dates

Format result as general not date

--

Regards,

Peo Sjoblom




"Malik" wrote in message
...
Hi,

how do I subtract the dates? I have a date in one cell and a date in
another. i wish to know the difference with respect to the number of days
between the two dates. wt formula shud b used in the next cell? Simply
applying the formula =A1-A2 gives me an absurd date in A3? i need the no
of
days.
thx for help.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 114
Default Subtracting Dates

You can try this:

A1 : 01 Oct 07
A2 : 31 Dec 08

A3 : =DATEDIF(A1,A2,"YD"), 91 DAYS
or
A3 : =DATEDIF(A1,A2,"D"), 457 DAYS

If you want more details, check out this thread.

David Biddulph & Claude Jerry gave a long explanation on DateDIF function.

http://www.microsoft.com/office/comm...2fsettings.xml





"Malik" wrote:

Hi,

how do I subtract the dates? I have a date in one cell and a date in
another. i wish to know the difference with respect to the number of days
between the two dates. wt formula shud b used in the next cell? Simply
applying the formula =A1-A2 gives me an absurd date in A3? i need the no of
days.
thx for help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Subtracting Dates

Yes, but you don't need DATEDIF if you just want a number of days. =A2-A1
is fine, but the answer needs to be formatted as Number or General, not as a
date.
--
David Biddulph

" wrote in
message ...
You can try this:

A1 : 01 Oct 07
A2 : 31 Dec 08

A3 : =DATEDIF(A1,A2,"YD"), 91 DAYS
or
A3 : =DATEDIF(A1,A2,"D"), 457 DAYS

If you want more details, check out this thread.

David Biddulph & Claude Jerry gave a long explanation on DateDIF function.

http://www.microsoft.com/office/comm...2fsettings.xml





"Malik" wrote:

Hi,

how do I subtract the dates? I have a date in one cell and a date in
another. i wish to know the difference with respect to the number of days
between the two dates. wt formula shud b used in the next cell? Simply
applying the formula =A1-A2 gives me an absurd date in A3? i need the no
of
days.
thx for help.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Subtracting Dates

thnx everyone

"David Biddulph" wrote:

Yes, but you don't need DATEDIF if you just want a number of days. =A2-A1
is fine, but the answer needs to be formatted as Number or General, not as a
date.
--
David Biddulph

" wrote in
message ...
You can try this:

A1 : 01 Oct 07
A2 : 31 Dec 08

A3 : =DATEDIF(A1,A2,"YD"), 91 DAYS
or
A3 : =DATEDIF(A1,A2,"D"), 457 DAYS

If you want more details, check out this thread.

David Biddulph & Claude Jerry gave a long explanation on DateDIF function.

http://www.microsoft.com/office/comm...2fsettings.xml





"Malik" wrote:

Hi,

how do I subtract the dates? I have a date in one cell and a date in
another. i wish to know the difference with respect to the number of days
between the two dates. wt formula shud b used in the next cell? Simply
applying the formula =A1-A2 gives me an absurd date in A3? i need the no
of
days.
thx for help.




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 Dates jaxstraww Excel Discussion (Misc queries) 0 March 28th 07 01:58 AM
Subtracting Dates jaxstraww Excel Discussion (Misc queries) 0 March 28th 07 01:56 AM
Subtracting dates toot033 Excel Discussion (Misc queries) 3 July 17th 06 09:03 PM
subtracting dates Brian Excel Discussion (Misc queries) 3 October 27th 05 07:54 PM
Subtracting dates? Bill R Excel Worksheet Functions 1 August 15th 05 05:37 AM


All times are GMT +1. The time now is 03:44 PM.

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"