Help with If and Vlookup Statement

J

JessM

I am trying to write a formula that returns a V-Lookup Match Value if there
is data and returns a NA if there is not data. So when I get an error from
the formula #N/A I want it to be replaced with a NA.

My formula is not working - see below:


=IF(VLOOKUP(X$5,Meeting_Planner_Towers_Final.xls!$C:$ED,MATCH($B10,Meeting_Planner_Towers_Final.xls!$C$1:$ED$1,0),FALSE))=(ISERROR(X10)),"NA",(VLOOKUP(X$5,Meeting_Planner_Towers_Final.xls!$C:$ED,MATCH($B10,Meeting_Planner_Towers_Final.xls!$C$1:$ED$1,0),FALSE).

Any help is greatly appreciated!
 
G

Glenn

JessM said:
I am trying to write a formula that returns a V-Lookup Match Value if there
is data and returns a NA if there is not data. So when I get an error from
the formula #N/A I want it to be replaced with a NA.

My formula is not working - see below:


=IF(VLOOKUP(X$5,Meeting_Planner_Towers_Final.xls!$C:$ED,MATCH($B10,Meeting_Planner_Towers_Final.xls!$C$1:$ED$1,0),FALSE))=(ISERROR(X10)),"NA",(VLOOKUP(X$5,Meeting_Planner_Towers_Final.xls!$C:$ED,MATCH($B10,Meeting_Planner_Towers_Final.xls!$C$1:$ED$1,0),FALSE).

Any help is greatly appreciated!

Try this arrangement:

=IF(ISERROR(VLOOKUP(...)),"NA",VLOOKUP(...))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top