View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default Help with Vlookup Match and IF statement

Hi,

The general way to handle this is
IF(ISNA(VLOOKUP(A1,Table,3,0)),"NA",VLOOKUP(A1,Tab le,3,0))

You can adjust this for your formula.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"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!