Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find value in array | Excel Worksheet Functions | |||
excel formula calculations are wrong | Excel Worksheet Functions | |||
Formula correct, answer wrong | Excel Discussion (Misc queries) | |||
Formula retrieves wrong data | Excel Discussion (Misc queries) | |||
Paste is is copying in formula, but display is wrong. | Excel Discussion (Misc queries) |