what formula to get how longer from date

Y

ykn

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?
 
F

FARAZ QURESHI

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.
 
S

Shane Devenshire

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.
 
Top