Whats wrong with this OR formula?

M

Mark

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
 
P

Pete_UK

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
 
M

Mark

This one worked beautifully. Thanks much!

Mark

Pete_UK said:
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
 
Top