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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top