Need help with formula when number string starts with zero

becca326

New Member
Joined
Jan 23, 2018
Messages
2
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]591611001234[/TD]
[TD]FET[/TD]
[TD]Store Depot - 461611013826 - FISH SPINNER 3.5" HEX 35007 (UOM = ea)[/TD]
[TD]3.48[/TD]
[TD]Cell with forumula. Should return "NON"[/TD]
[/TR]
[TR]
[TD]461611013826[/TD]
[TD]NON[/TD]
[TD]Store Depot - 084268105687 - FISH SPINNER 3.5" HEX 35007 (UOM = ea)[/TD]
[TD]3.48[/TD]
[TD]Cell with formula. Should return "NON"[/TD]
[/TR]
[TR]
[TD]082468105687[/TD]
[TD]NON[/TD]
[TD]Another Store Depot - 084268105687 - Different Description[/TD]
[TD]2.50[/TD]
[TD]Cell with formula. Should return "NON?[/TD]
[/TR]
</tbody>[/TABLE]

Here's the formula:

=LOOKUP(9.99999999999999E+307,SEARCH(" "&$A$1:$A$3&" "," "&C1&" "),$B$1:$B$3)

I need to be able to have excel recognize the 12-digit number in the middle of a text string in column c and match it to a value in column A and then return the column b text.

The formula works most of the time, except when the number string starts with 0. What am I doing wrong?
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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