count day's

M

moshe

when i enter a date in A1 and another date in B1, i want that in C1 should
calculate the days,
EX: if the dates are from 02/10/09 - 02/20/09, it should be written 1 week
and 3 days, (not 10 days)
 
P

Pecoflyer

moshe;223756 said:
when i enter a date in A1 and another date in B1, i want that in C1
should
calculate the days,
EX: if the dates are from 02/10/09 - 02/20/09, it should be written 1
week
and 3 days, (not 10 days)

Try =int((finishdate-startdate)/7)&" weeks
"&mod((finishdate-startdate),7)&" days"


--
Pecoflyer

Cheers -
*'Membership is free' (http://www.thecodecage.com)* & allows file
upload ->faster and better answers

*Adding your XL version* to your post helps finding solution faster
 
D

David Biddulph

And note also that if you are counting days, you don't need DATEDIF.

DATEDIF(A1,B1,"d")
is the same as
B1-A1
 

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