Multi-Value Lookup Error

Sharly

New Member
Joined
Nov 10, 2016
Messages
12
Hi,

I have this formula that works just fine:

=IF(ISERROR(SMALL(IF(IF(ISERROR(SEARCH($A$9,$A$1:$A$7)),FALSE,TRUE),ROW($A$1:$A$7)),ROW($C$1:$C$7))),"",INDEX($A$1:$C$7,SMALL(IF(IF(ISERROR(SEARCH($A$9,$A$1:$A$7)),FALSE,TRUE),ROW($A$1:$A$7)),ROW($C$1:$C$7)),3))


My problem is now the search is being done in the same workbook but on a tab called Primary Account with a range of A1 - K3000. Everytime I try to change the lookup the formula gives me an error. It will only work if the information is on the same sheet.

In a nutshell I am looking up data in A5 and want it to lookup anything that has the results of A5 on the Primary Account sheet. A vlookup won't work as I'm looking up multi-values.

Any suggestions?

Thanks!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Crazy billy

New Member
Joined
Dec 5, 2016
Messages
7
try retyping your formula then use your mouse to click the data(source) on different worksheet. it will capture the name of the other sheet
 

Sharly

New Member
Joined
Nov 10, 2016
Messages
12
Thanks. I've done that multiple times but it gives me an error every single time. I thought perhaps I had a typo somewhere in my formula but when I leave it as is it's fine. It's just when I try to switch sheets that the formula just errors out.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,047
Messages
5,639,767
Members
417,110
Latest member
RayClarke

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
Top