Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Help with Vlookup Match and IF 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!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Help with Vlookup Match and IF statement

On the face of this:
... 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


Indicatively, it should look simply like this:
=IF(ISNA(VLOOKUP(...)),"NA",VLOOKUP(...))

--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with IF and VLookup Match Statement JessM Excel Worksheet Functions 1 February 10th 09 09:55 PM
vlookup retunrning a match, when not a match... Dave Peterson Excel Worksheet Functions 1 October 2nd 08 11:22 PM
vlookup retunrning a match, when not a match... mark Excel Worksheet Functions 4 October 2nd 08 10:39 PM
vlookup retunrning a match, when not a match... Niek Otten Excel Worksheet Functions 0 October 2nd 08 09:00 PM
index Match, or Vlookup Match.. news.transedge.com Excel Worksheet Functions 1 August 3rd 07 02:00 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"