ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Help with If and Vlookup Statement (https://www.excelbanter.com/excel-worksheet-functions/220225-help-if-vlookup-statement.html)

JessM

Help with If and Vlookup Statement
 
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!

Glenn

Help with If and Vlookup Statement
 
JessM wrote:
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(...))


All times are GMT +1. The time now is 10:50 PM.

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