A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

what formula to get how longer from date



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2009, 03:11 AM posted to microsoft.public.excel.misc
ykn
external usenet poster
 
Posts: 1
Default what formula to get how longer from date

if (B2 is 01 April 2006) and (B3 is 31/05/2009), what formula can i use to
get how long in between this two date?
  #2  
Old June 4th, 2009, 03:17 AM posted to microsoft.public.excel.misc
Dave Peterson
external usenet poster
 
Posts: 19,791
Default what formula to get how longer from date

If those values are really dates, then you can use:

=b3-b2
(and format as General)
to get the number of days between the dates.

If you want years, months, days, then look at Chip Pearson's site:
http://www.cpearson.com/excel/datedif.aspx

ykn wrote:

if (B2 is 01 April 2006) and (B3 is 31/05/2009), what formula can i use to
get how long in between this two date?


--

Dave Peterson
  #3  
Old June 4th, 2009, 04:48 AM posted to microsoft.public.excel.misc
FARAZ QURESHI
external usenet poster
 
Posts: 694
Default what formula to get how longer from date

Use
=Datedif(Beginning Date,Ending Date,"D")
for calculating difference in days,
=Datedif(Beginning Date,Ending Date,"M")
for calculating difference in months,
=Datedif(Beginning Date,Ending Date,"Y")
for calculating difference in years.


"ykn" wrote:

if (B2 is 01 April 2006) and (B3 is 31/05/2009), what formula can i use to
get how long in between this two date?

  #4  
Old June 4th, 2009, 06:28 AM posted to microsoft.public.excel.misc
Shane Devenshire[_3_]
external usenet poster
 
Posts: 3,333
Default what formula to get how longer from date

Hi,

the main problem with DATEDIF is Microsoft doesn't document it (except in
version 2000).

But in your case Dave's solution is shorter.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"FARAZ QURESHI" wrote:

Use
=Datedif(Beginning Date,Ending Date,"D")
for calculating difference in days,
=Datedif(Beginning Date,Ending Date,"M")
for calculating difference in months,
=Datedif(Beginning Date,Ending Date,"Y")
for calculating difference in years.


"ykn" wrote:

if (B2 is 01 April 2006) and (B3 is 31/05/2009), what formula can i use to
get how long in between this two date?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:29 AM.


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