count days from a one date to another date

C

confused!!

If in cell A1 i have a date 09/17/09 and date 10/30/08 in B1 i need to count
the number of days from A1 to B1

Please provide formula for doing so.
 
M

Marcelo

if you prefere something different from the Mike perfect anwer, you can use

=datedif(b1,a1,"D")


--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"confused!!" escreveu:
 
M

Marcelo

sorry for the typo error

anwer = answer
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Marcelo" escreveu:
 
M

Marcelo

no datedif runs as oldest date first so as A1 has 09/17/09 and b1 has
10/30/08 b1 came first on the formula

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"John" escreveu:
 
J

John

Hi Again
Now I notice it's not the same year, you're right, my apologies.
That proves to you, I'm human :)
Regards
John
 
M

Marcelo

cheers

;)
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"John" escreveu:
 
D

David Biddulph

No, John. The OP asked for "the number of days from A1 to B1", so your
answer of -262 was correct.
 

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