Subtract Date Q

S

Sean

How do you subtract 2 dates within a formula?

eg =(28/01/08)-(25/01/08)

I know if A1= 28/01/08 and B1= 25/01/08 I could enter =A1-B1. But if I
wish just to hard code within a formula these values.

How does one do that?
 
F

Fred Smith

Either:

=date(2008,1,28)-date(2008,1,25)
or
="28/01/08"-"25/01/08"

Regards,
Fred
 

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