#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 361
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default 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.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default 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.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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.







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modify Excel Formula sharonm Excel Worksheet Functions 2 June 7th 06 02:46 AM
Modify A formula carl Excel Worksheet Functions 1 March 14th 06 05:46 PM
Modify a formula Eintsein_mc2 Excel Discussion (Misc queries) 3 September 18th 05 05:43 AM
Modify A Formula To Include AND carl Excel Worksheet Functions 2 August 21st 05 03:41 PM
Modify A SumProduct Formula carl Excel Worksheet Functions 2 June 15th 05 06:22 PM


All times are GMT +1. The time now is 04:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"