ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Greater than less than arguement returning value when text inputte (https://www.excelbanter.com/excel-discussion-misc-queries/162144-greater-than-less-than-arguement-returning-value-when-text-inputte.html)

Jbaisinger2000

Greater than less than arguement returning value when text inputte
 
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?

Peo Sjoblom

Greater than less than arguement returning value when text inputte
 
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



"Jbaisinger2000" wrote in message
...
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?




JE McGimpsey

Greater than less than arguement returning value when text inputte
 
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")



In article ,
Jbaisinger2000 wrote:

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.



All times are GMT +1. The time now is 02:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com