ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   When Using VLOOKUP With MATCH How Do I Handle #NA OnData Retrieval (https://www.excelbanter.com/excel-worksheet-functions/175153-when-using-vlookup-match-how-do-i-handle-na-ondata-retrieval.html)

Katlyn Jones

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

Don Guillett

When Using VLOOKUP With MATCH How Do I Handle #NA On Data Retrieval
 
Patience is a virtue. Quit sending the same question every few minutes.

"Katlyn Jones" wrote in message
.. .
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



Sebastian

When Using VLOOKUP With MATCH How Do I Handle #NA On Data Retrieva
 
Here you go:

=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))
- This one leaves the cell blank.

=IF(ISNA(VLOOKUP($A$32,Data!$A$4:$M$18,MATCH($B$3, Data!$B$4:$M$4,0)+1,0)),0,VLOOKUP($A$32,Data!$A$4: $M$18,MATCH($B$3,Data!$B$4:$M$4,0)+1,0))
- This one places a 0 in the cell.

Sebastian

"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 Me
http://www.awomantoldme.com



All times are GMT +1. The time now is 09:56 AM.

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