IF ISNA syntax - can't figure it out

rrmando

Board Regular
Joined
Dec 23, 2004
Messages
212
For the love of God please help me. I don't want the #N/A to show. This is the formula but I cannot get the ISNA syntax correct.

=IF(LEN(B9)=4,VLOOKUP("x",D37:F45,3,FALSE),VLOOKUP("x",D27:F35,3,FALSE))

What I came up with....I know I'm close but I'm going crazy.

=IF(isna(LEN(B9)=4,VLOOKUP("x",D37:F45,3,FALSE),VLOOKUP("x",D27:F35,3,FALSE)),"",(LEN(B9)=4,VLOOKUP("x",D37:F45,3,FALSE),VLOOKUP("x",D27:F35,3,FALSE)))

I've tried different variations but not getting it. Thanks.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
If an earlier version (I shortened your original formula):

=IF(ISNUMBER(MATCH("x",IF(LEN(B9)=4,D37:D45,D27:D45),0)),VLOOKUP("x",IF(LEN(B9)=4,D37:F45,D27:F45),3,FALSE),"")
 
Upvote 0
try this if 2003 or earlier

IF(ISNA(IF(LEN(B9)=4,VLOOKUP("x",D37:F45,3,FALSE),VLOOKUP("x",D27:F35,3,FALSE))),"",IF(LEN(B9)=4,VLOOKUP("x",D37:F45,3,FALSE),VLOOKUP("x",D27:F35,3,FALSE)))
 
Upvote 0
Thank you all!!! Sorry, haven't been on here in a while....still on Excel 2003 : ( Thanks again...really appreciate everyone's help.
 
Upvote 0
If on Excel 2007 or later...
Rich (BB code):
=IFERROR(VLOOKUP("x",IF(LEN(B9)=4,D37:F45,D27:F35),3,0),"")

On all versions, if a text result is expected...
Rich (BB code):
=LOOKUP(REPT("z",255),CHOOSE({1,2},"",
    VLOOKUP("x",IF(LEN(B9)=4,D37:F45,D27:F35),3,0)))

Otherwise, see, e.g., Hotpepper's suggestion.
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,136
Members
452,890
Latest member
Nikhil Ramesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top