Greater than less than arguement returning value when text inputte

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following formula "=IF(M14>$G14,+$G14-$E14,0)".
Yet when I put "actual" or some text in m14, I receive the TRUE arguement
(+$G14-$E14) and gives me a value...I was hoping for #VALUE instead. Any
ideas when the arugement is recognizes the text as a numeric value.

If I insert the word "actual" in for M14 in the formula it will err, ie
"=IF(actual>$G14,+$G14-$E14,0) .. any ideas?
 
Text is always greater than numericals according to Excel, you can fix that
by using this instead

=IF(AND(ISNUMBER(M14),M14>$G14),$G14-$E14,0)


note that there is no need of the plus sign in front of G14 in your formula


--


Regards,


Peo Sjoblom
 
One way:

=IF(ISNUMBER(M14),IF(M14>$G14,$G14-$E14,0),"#VALUE!")

or, if you want an actual #VALUE! error:

=IF(ISNUMBER(M14),IF(M14>$G14,$G14-$E14,0),1+"A")
 
Back
Top