Having issues with LOOKUP

joetogo

New Member
Joined
Apr 16, 2017
Messages
12
Hi team,

I'm having random issues with lookup, hopefully I'm doing it right, but for some reason I'm getting an "N" value for a lookup that
should be returning "Network". It works for most of the other cells bar a few.

Basically i have a ref table on Sheet2 with Keywords (services) and Definitions (categorizations) and Sheet1 under categorizations
goes the lookup formula:

=LOOKUP(E1+100,SEARCH(Sheet2!$A$2:$A$69,Sheet2!A2),Sheet2!$B$2:$B$69)

I get the first desired result, as does the next, but then there's a random N in there as well. I cannot figure out why, can somebody
please assist?

I've attached an example for potential ref.

Thank you team :)
 

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.
The formula should be:

=LOOKUP(9.99999999999999E+307,SEARCH(Sheet2!$A$2:$A$69,$C3),Sheet2!$B$2:$B$69)

But it looks like

=VLOOKUP(C2&"*",Sheet2!A:B,2,0)

would suffice.

The problem these formulas might get into is that you have duplicates in Sheet2, that is, some keywords are listed twice while associated with a different category. For example:

[TABLE="class: grid, width: 356"]
<tbody>[TR]
[TD]WAN Service Foundation@SILVER[/TD]
[TD]Network[/TD]
[/TR]
[TR]
[TD]WAN Service Foundation@SILVER[/TD]
[TD]N[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
The formula should be:

=LOOKUP(9.99999999999999E+307,SEARCH(Sheet2!$A$2:$A$69,$C3),Sheet2!$B$2:$B$69)

But it looks like

=VLOOKUP(C2&"*",Sheet2!A:B,2,0)

would suffice.

The problem these formulas might get into is that you have duplicates in Sheet2, that is, some keywords are listed twice while associated with a different category. For example:

[TABLE="class: grid, width: 356"]
<tbody>[TR]
[TD]WAN Service Foundation@SILVER[/TD]
[TD]Network[/TD]
[/TR]
[TR]
[TD]WAN Service Foundation@SILVER[/TD]
[TD]N[/TD]
[/TR]
</tbody>[/TABLE]

Ah i see! I get it now, so i converted the references into table, removed the dupes, and then end result is fixed. Thank you very much for your help!
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

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