How to use date for calculating values in other cells

B

Bamboozled

I want to include the date in the "If" statement for calculating values in
other cells.
Example: If the start date is after 1/1/1999, then A-B.
 
D

dan dungan

I want to include the date in the "If" statement for calculating values in
other cells.
Example:  If the start date is after 1/1/1999, then A-B.  

If the start date is in c1, would this work?

=if(c1>1/1/1999,a1-b1,"")
 
S

Spiky

I want to include the date in the "If" statement for calculating values in
other cells.
Example:  If the start date is after 1/1/1999, then A-B.  

A date in Excel is just a number formatted to look like a date. So if
you know the number, you can use greater than or less than just like
any other number. 1/1/1999 is actually 36161. Or you can put your
control date in another cell (B1 below) and just reference it.
Something like:
=IF(A1>36161,A2-B2)
=IF(A1>B1,A2-B2)
 

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