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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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