My Vlookup will not work

doug firr

Board Regular
Joined
Mar 28, 2011
Messages
140
Here's some data:

I have a vlookup like so:
=VLOOKUP(E4,$J$9:$K$12,2,FALSE)

But it returns N/A. Why? Have tried reformatting the data but nothing. E4 matches the top left cell int he example, I know because I checked it with ctrl-F.

What could it be?

<tbody>
</tbody>
https://www.example.com/?cid=300000123

<tbody>
</tbody>
10

<tbody>
</tbody>
https://www.example.com/?cid=300003339
https://www.example.com/?cid=3000004567
https://www.example.com/?cid=30000078911

<tbody>
</tbody>
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Doesn't look like your formula is wrong, but I can't see the data.

Two things you should look for... Does E4 exist in J9:J12? If the answer is yes, is E4 or J:J formatted as text and the other formatted as number?
 
Upvote 0
You will get that error message if you do not have a match.
Remember they must MATCH exactly, meaning no extra spaces in one (and not the other) and they must be the same data type (cannot match Text to Numbers).

If you think there is a match, but are still getting this error, there is an easy way to check.
Let's say that you think E4 should match J11, then enter this formula anywhere:
=E4=J11

If it returns FALSE, then regardless of what it may look like, they do NOT match exactly. Just lengths and datatypes.
 
Upvote 0
You will get that error message if you do not have a match.
Remember they must MATCH exactly, meaning no extra spaces in one (and not the other) and they must be the same data type (cannot match Text to Numbers).

If you think there is a match, but are still getting this error, there is an easy way to check.
Let's say that you think E4 should match J11, then enter this formula anywhere:
=E4=J11

If it returns FALSE, then regardless of what it may look like, they do NOT match exactly. Just lengths and datatypes.

Got it! It was one of those staring me in the face days. I was looking up Example Domain against Example Domain - Doh! (note the http)
 
Upvote 0

Forum statistics

Threads
1,217,364
Messages
6,136,117
Members
449,993
Latest member
Sphere2215

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