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
 
Top