View Single Post
  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Tue, 11 Oct 2005 08:46:34 -0700, Emily8
wrote:

I am trying to use a function to evaluate when a course is due. In column D
there may or may not be a date listed. I'm using this formula in to evaluate
if the course is due to be renewed.

=IF(DATE(YEAR(D3)+3,MONTH(D3),DAY(D3))<=TODAY()," due"," ")

The problem arises when D3 is blank. It is still evaluating the blank cell
as a date, 01/01/1907 and returning "due" because it is less than today.

If D3 is blank I need the formula to return an empty string, which I thought
the above did.


You could do something like:

=IF(ISNUMBER(D3),IF(DATE(YEAR(D3)+3,MONTH(D3),DAY( D3))<=TODAY(),"due",""),"")

By the way, I would advise returning NULL strings rather than, as in your
formula, a <space character.


--ron