Excel Vlookup Issue

SimonVOwen

New Member
Joined
Nov 15, 2017
Messages
26
Hello All,

I am searching for a value with a vlookup that can range from 0-999.
Occasionally the value will not exist so I am returning a value of 1.

=IFERROR(VLOOKUP("*"&M12&"*",EPN!$Y$14:$Z$40,2,FALSE),1)

The cells I am referencing are as below for the 2 fields.
However I am getting false results.
When searching for 50 that does not exist it is returning the value of 7 as there is a 250 there.
Is there anyway to code around this to make sure it does not reference incomplete numbers?
[TABLE="width: 225"]
<tbody>[TR]
[TD]&3&40&&&[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]&7&11&25&43&[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]&22&29&55&61&[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]&201&237&238&239&[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]&15&49&205&&[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]&33&64&&&[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]&250&254&&&[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]&&&&&[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]&&&&&[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]&1&&&&[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]&200&&&&[/TD]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD]&86&&&&[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]&80&&&&[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]&84&&&&[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]&100&110&150&160&[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]&102&112&152&162&[/TD]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD]&103&113&153&163&[/TD]
[TD="align: right"]17[/TD]
[/TR]
[TR]
[TD]&101&111&151&161&[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]&350&&&&[/TD]
[TD="align: right"]19[/TD]
[/TR]
[TR]
[TD]&905&912&913&&[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD]&&&&&[/TD]
[TD="align: right"]21[/TD]
[/TR]
[TR]
[TD]&901&&&&[/TD]
[TD="align: right"]22[/TD]
[/TR]
[TR]
[TD]&915&&&&[/TD]
[TD="align: right"]23[/TD]
[/TR]
[TR]
[TD]&902&&&&[/TD]
[TD="align: right"]24[/TD]
[/TR]
[TR]
[TD]&916&&&&[/TD]
[TD="align: right"]25[/TD]
[/TR]
[TR]
[TD]&903&&&&[/TD]
[TD="align: right"]26[/TD]
[/TR]
[TR]
[TD]&918&&&&[/TD]
[TD="align: right"]27[/TD]
[/TR]
</tbody><colgroup><col><col></colgroup>[/TABLE]
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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