count days

  • Thread starter Thread starter Larry
  • Start date Start date
L

Larry

I need a formula to count days between two dates
(in cells) that would include leap years

any help ??

Thanks Larry
 
Hi Larry you could use the function DATADIFF as

=DATADIF(initial_date,final_date,"type_of_differene")

type of difference could be:
"Y" - # of completed years between dates
"M" - # of completed months bt dates
"D" - # of completed days bt dates
"MD" - Months and Years are ignorated
"YD" - Days and Years are ignorated

hope it helps

regards from Brazil
Marcelo



"Larry" escreveu:
 
sorry the correct function is DATEDIF....

I type it on Portuguese sorry



"Marcelo" escreveu:
 
If you just want the answer in days, then you only need to subtract one
from the other and format the cell as Number with zero decimal places,
i.e.:

=B1 - A1

if B1 contains the later date and A1 the earlier date.

Hope this helps.

Pete
 

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

Similar Threads

Excel Date Count 2
Excel DateDif - why does 2007 seem different? 3
Excel Formula - Count Dates from another Sheet 8
Excluding leap days in a formula 7
Days between 2 dates 6
CountIF date problem 0
Countif 3
Count Dates & Return as % 2

Back
Top