ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Modify A Formula (https://www.excelbanter.com/excel-worksheet-functions/181031-modify-formula.html)

Carl

Modify A Formula
 
I would like this formula to work only if the value in O188 is a number. If
it is not a number, return 0 (zero).

=IF(O188=$E188;1;0)

Thank you in advance.

Mike H

Modify A Formula
 
Maybe,

=IF(ISNUMBER(O188),IF(O188=$E188,1,0),0)

Mike

"carl" wrote:

I would like this formula to work only if the value in O188 is a number. If
it is not a number, return 0 (zero).

=IF(O188=$E188;1;0)

Thank you in advance.


Tyro[_2_]

Modify A Formula
 
=IF(ISNUMBER(O188),IF(O188=$E188,1,0),0)

Note that arguments are separated by commas, not semicolons.

Tyro

"carl" wrote in message
...
I would like this formula to work only if the value in O188 is a number. If
it is not a number, return 0 (zero).

=IF(O188=$E188;1;0)

Thank you in advance.




Jarek Kujawa[_2_]

Modify A Formula
 
=IF(AND(ISNUMBER(O188);O188=$E188);O188;0)

On 23 Mar, 20:20, carl wrote:
I would like this formula to work only if the value in O188 is a number. If
it is not a number, return 0 (zero).

=IF(O188=$E188;1;0)

Thank you in advance.



T. Valko

Modify A Formula
 
Note that arguments are separated by commas, not semicolons

Depends on where you live and what your regional settings are.


--
Biff
Microsoft Excel MVP


"Tyro" wrote in message
...
=IF(ISNUMBER(O188),IF(O188=$E188,1,0),0)

Note that arguments are separated by commas, not semicolons.

Tyro

"carl" wrote in message
...
I would like this formula to work only if the value in O188 is a number.
If
it is not a number, return 0 (zero).

=IF(O188=$E188;1;0)

Thank you in advance.






T. Valko

Modify A Formula
 
Another one:

=COUNT(O188)*(O188=E188)

You also might want to test E188 as well:

=(COUNT(E188,O188)=2)*(O188=E188)


--
Biff
Microsoft Excel MVP


"carl" wrote in message
...
I would like this formula to work only if the value in O188 is a number. If
it is not a number, return 0 (zero).

=IF(O188=$E188;1;0)

Thank you in advance.





All times are GMT +1. The time now is 03:58 PM.

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