ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Whats wrong with this OR formula? (https://www.excelbanter.com/excel-worksheet-functions/115664-whats-wrong-formula.html)

Mark

Whats wrong with this OR formula?
 
Greetings. I am trying to get this formula containing an OR command that
looks like this:

=IF(OR(F15=" ",F15=0,ISERROR(F15)),"N/A","Approval Needed")

When #N/A appears in cell F15 because of an invalid lookup value, I still
get #N/A instead of N/A like I have in quotes above. Why won't this formula
work?

Thanks



Dave F

Whats wrong with this OR formula?
 
Replace ISERROR with ISNA.

Dave
--
Brevity is the soul of wit.


"Mark" wrote:

Greetings. I am trying to get this formula containing an OR command that
looks like this:

=IF(OR(F15=" ",F15=0,ISERROR(F15)),"N/A","Approval Needed")

When #N/A appears in cell F15 because of an invalid lookup value, I still
get #N/A instead of N/A like I have in quotes above. Why won't this formula
work?

Thanks




Pete_UK

Whats wrong with this OR formula?
 
You could trap the error from the VLOOKUP in F15 using this:

=IF(ISNA(VLOOKUP( ... )," ",VLOOKUP( ... ))

so that you won't get #N/A in that cell - you can change " " to "" or 0
whichever suits.

Then your formula could become:

=IF(OR(F15=" ",F15=0),"N/A","Approval Needed")

Hope this helps.

Pete

Mark wrote:
Greetings. I am trying to get this formula containing an OR command that
looks like this:

=IF(OR(F15=" ",F15=0,ISERROR(F15)),"N/A","Approval Needed")

When #N/A appears in cell F15 because of an invalid lookup value, I still
get #N/A instead of N/A like I have in quotes above. Why won't this formula
work?

Thanks



Mark

Whats wrong with this OR formula?
 
This one worked beautifully. Thanks much!

Mark

"Pete_UK" wrote in message
ups.com...
You could trap the error from the VLOOKUP in F15 using this:

=IF(ISNA(VLOOKUP( ... )," ",VLOOKUP( ... ))

so that you won't get #N/A in that cell - you can change " " to "" or 0
whichever suits.

Then your formula could become:

=IF(OR(F15=" ",F15=0),"N/A","Approval Needed")

Hope this helps.

Pete

Mark wrote:
Greetings. I am trying to get this formula containing an OR command that
looks like this:

=IF(OR(F15=" ",F15=0,ISERROR(F15)),"N/A","Approval Needed")

When #N/A appears in cell F15 because of an invalid lookup value, I still
get #N/A instead of N/A like I have in quotes above. Why won't this
formula
work?

Thanks





Pete_UK

Whats wrong with this OR formula?
 
Thanks for feeding back, Mark.

Pete

Mark wrote:
This one worked beautifully. Thanks much!

Mark

"Pete_UK" wrote in message
ups.com...
You could trap the error from the VLOOKUP in F15 using this:

=IF(ISNA(VLOOKUP( ... )," ",VLOOKUP( ... ))

so that you won't get #N/A in that cell - you can change " " to "" or 0
whichever suits.

Then your formula could become:

=IF(OR(F15=" ",F15=0),"N/A","Approval Needed")

Hope this helps.

Pete

Mark wrote:
Greetings. I am trying to get this formula containing an OR command that
looks like this:

=IF(OR(F15=" ",F15=0,ISERROR(F15)),"N/A","Approval Needed")

When #N/A appears in cell F15 because of an invalid lookup value, I still
get #N/A instead of N/A like I have in quotes above. Why won't this
formula
work?

Thanks





All times are GMT +1. The time now is 11:54 PM.

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