C
chocoearl
How do I make an If-Then formula to add the value of two cells only if
another cell contains a date entry?
Earl
another cell contains a date entry?
Earl
How would I incorporate that in to this formula?You can't specifically test for a date very easily, as this is just a
number to Excel, but you could do something like this:
=IF(AND(ISNUMBER(D1),D1>35000),A1+B1,"")
where A1 and B1 are the cells you want to add and D1 is the cell that
may have a date in it. The value 35000 elates to 28th October 1995, so
the date would need to be later than that.
Hope this helps.
What if I needed it to look at the date in two columns and add theExcel stores dates and times as a number representing the number of days
since 1900-Jan-0, plus a fractional portion of a 24 hour day: ddddd.tttttt
[seehttp://www.cpearson.com/excel/datetime.htm#SerialDatesfor details]
Today's date is stored as 39862
As a result any cell containing a number will pass the test of containinga
date. If you know the possible date range then you can test for the numbers
in that range..