ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If Function (https://www.excelbanter.com/excel-worksheet-functions/233173-if-function.html)

bushy

If Function
 
I keep getting the wrong result when I use =IF(G20<=+-H20,"OK","PROBLEM"). I
know the result should be "Problem" due to G20 being less than H20
--
Bushy

jaf

If Function
 
Hi,
Delete the "+-"
If you need h20 to be a negative value wrap it in ().

John

"Bushy" wrote in message ...
I keep getting the wrong result when I use =IF(G20<=+-H20,"OK","PROBLEM"). I
know the result should be "Problem" due to G20 being less than H20
--
Bushy


Jacob Skaria

If Function
 
Try

=IF(G20<=ABS(H20),"OK","PROBLEM")

If this post helps click Yes
---------------
Jacob Skaria


"Bushy" wrote:

I keep getting the wrong result when I use =IF(G20<=+-H20,"OK","PROBLEM"). I
know the result should be "Problem" due to G20 being less than H20
--
Bushy


Dave Peterson

If Function
 
What's in G20 and what's in H20? And what should be returned with those two
values?

Maybe:

=IF(G20<=-H20,"OK","PROBLEM")
or
=IF(G20<=-abs(H20),"OK","PROBLEM")
or
=IF(G20<=H20,"OK","PROBLEM")




Bushy wrote:

I keep getting the wrong result when I use =IF(G20<=+-H20,"OK","PROBLEM"). I
know the result should be "Problem" due to G20 being less than H20
--
Bushy


--

Dave Peterson


All times are GMT +1. The time now is 02:12 AM.

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