Rebecca said:
That worked but now because there is no information in
the cells I get a #Value! error...How do I get rid of this?
Take you pick, depending on what you want....
The following requires values in both cells:
=if(count(A1,B1)=2, max(0, A1*B1), "")
The following requires a value in at least one cell:
=if(count(A1,B1), max(0, N(A1)*N(B1)), "")
The following returns zero if there are no values:
=max(0, N(A1)*N(B1))
Caveat: Note that N(A1) returns zero even if A1 is the __text__, not
number, "123". However, if A1 contains text that appears to be a number,
A1*B1 will properly interpret the number. For example, if B1 is 2, A1*B1 is
the __number__ 246. If this behavior of N(A1) is problemmatic, post a
follow-up for alternative solutions, if the first one above does not satisfy
your needs.
----- original message -----