View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sebastian Sebastian is offline
external usenet poster
 
Posts: 16
Default 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