Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default When Using VLOOKUP With MATCH How Do I Handle #NA OnData Retrieval?

I am using =VLOOKUP($A$32,Data!$A$4:$M$18,MATCH($B$3,Data!$B$ 4:$M$4,0)+1,0) in order to search for two dimensions in a table. I am a very green user so do not know much in the way of Excel.

The problem is when there is no matching field I receive a #NA. How do I just get a blank or 0 if there is no matching data?

Thank you in advance for your help.


A Womand Told Me
http://www.awomantoldme.com
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 897
Default When Using VLOOKUP With MATCH How Do I Handle #NA On DataRetrieval?

Hate to do this, but....wrap your formula in an IF function that uses
ISNA. If ISNA evaluates to TRUE, it will display nothing.

=IF(ISNA(VLOOKUP($A$32,Data!$A$4:$M$18,MATCH($B$3, Data!$B$4:$M
$4,0)+1,0)),"",VLOOKUP($A$32,Data!$A$4:$M$18,MATCH ($B$3,Data!$B$4:$M
$4,0)+1,0))


HTH,
JP

On Jan 31, 1:11*pm, Katlyn Jones wrote:
I am using =VLOOKUP($A$32,Data!$A$4:$M$18,MATCH($B$3,Data!$B$ 4:$M$4,0)+1,0) *in order to search for two dimensions in a table. *I am a very green user so do not know much in the way of Excel.

The problem is when there is no matching field I receive a #NA. *How do I just get a blank or 0 if there is no matching data?

Thank you in advance for your help.

A Womand Told Mehttp://www.awomantoldme.com


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default When Using VLOOKUP With MATCH How Do I Handle #NA On DataRetrieval?

JP wrote...
Hate to do this, but....wrap your formula in an IF function that
uses ISNA. If ISNA evaluates to TRUE, it will display nothing.

=IF(ISNA(VLOOKUP($A$32,Data!$A$4:$M$18,
MATCH($B$3,Data!$B$4:$M$4,0)+1,0)),"",
VLOOKUP($A$32,Data!$A$4:$M$18,MATCH($B$3,Data!$B$ 4:$M$4,0)+1,0))

....

There are 3 ways the VLOOKUP call could return #N/A: A32 doesn't occur
in A4:A18 (or is #N/A itself), B3 doesn't occur in B4:M4 (or is #N/A
itself), or the cell corresponding to A32 and B3 happens to evaluate
to #N/A. The last should propagate in most situations. It's possible
to handle the first two with

=IF(COUNT(MATCH($A$32,Data!$A$4:$A$18,0),
MATCH($B$3,Data!$B$4:$M$4,0))=2,
VLOOKUP($A$32,Data!$A$4:$M$18,MATCH($B$3,Data!$B$4 :$M$4,0)+1,0),"")
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
Can the Match function handle more than 7 variables? Zakynthos Excel Worksheet Functions 3 August 9th 07 10:52 AM
index Match, or Vlookup Match.. news.transedge.com Excel Worksheet Functions 1 August 3rd 07 02:00 AM
Fill handle turned into a move handle Northwoods Excel Discussion (Misc queries) 1 March 2nd 07 03:40 PM
MAC Retrieval sparx Excel Discussion (Misc queries) 0 March 19th 06 08:51 PM
Appl need that VLOOKUP will not handle Wayne G. Dengel Excel Worksheet Functions 6 November 7th 04 08:02 AM


All times are GMT +1. The time now is 05:01 PM.

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

About Us

"It's about Microsoft Excel"