VLookup getting rid of #N/A

4ank

New Member
Joined
Jun 25, 2003
Messages
18
Hi,
this is my first post so excuse me if it sounds like a newb question.

I used this tip to help me get rid of the #N/A I was getting.

http://www.mrexcel.com/td0110.html

However, now I do NOT want an exact match to my lookup value, is there a way to use this statement without having to find an exact match?

IF(COUNTIF($A$1:$A$10,"cat"),VLOOKUP("cat",$A$1:$C$10,3,0),"no match")
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I generally use the the isna() formula if there is nothing to look up and dont wont the error message returned, but a blank cell.

i.e. =if(isna(vlookup(x,x,x,false)),"",vlookup(x,x,x,false))
 
Upvote 0
Well, there are things to lookup, but I wanted to make this a template, and did not want #N/A's all over. Also, I am using it for an automatic download for a fellow employee.
 
Upvote 0
4ank said:
Hi,
this is my first post so excuse me if it sounds like a newb question.

I used this tip to help me get rid of the #N/A I was getting.

http://www.mrexcel.com/td0110.html

However, now I do NOT want an exact match to my lookup value, is there a way to use this statement without having to find an exact match?

IF(COUNTIF($A$1:$A$10,"cat"),VLOOKUP("cat",$A$1:$C$10,3,0),"no match")

The only way you can get #N/A with an approximate match VLOOKUP is to search for a value that is less than the 1st entry in the table_array. To alleviate this problem simply set the leftmost column of the 1st table_array record to ="" as shown below. Fix your table not the formula!!!
Book1
ABCDEFGH
1  
2cat
3dog
4mouse
5
6
7
8
Sheet1
 
Upvote 0
Thank you both for your replies. I got it working thanks to you. I appreciate the quick response. This forum seems like a very helpful and useful tool!

Thanks again, I am sure you will hear some more from me.
 
Upvote 0
The only way you can get #N/A with an approximate match VLOOKUP is to search for a value that is less than the 1st entry in the table_array. To alleviate this problem simply set the leftmost column of the 1st table_array record to ="" as shown below. Fix your table not the formula!!!


<CENTER></CENTER>
This is awesome! MUCH Simpler than any other way I have found.
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,019
Members
448,938
Latest member
Aaliya13

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top