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?
&3&40&&&1
&7&11&25&43&2
&22&29&55&61&3
&201&237&238&239&4
&15&49&205&&5
&33&64&&&6
&250&254&&&7
&&&&&8
&&&&&9
&1&&&&10
&200&&&&11
&86&&&&12
&80&&&&13
&84&&&&14
&100&110&150&160&15
&102&112&152&162&16
&103&113&153&163&17
&101&111&151&161&18
&350&&&&19
&905&912&913&&20
&&&&&21
&901&&&&22
&915&&&&23
&902&&&&24
&916&&&&25
&903&&&&26
&918&&&&27

<tbody>
</tbody><colgroup><col><col></colgroup>
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,216,102
Messages
6,128,852
Members
449,471
Latest member
lachbee

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