Using an array formula to return multiple look up results from a different worksheet

stupope

New Member
Joined
Nov 1, 2018
Messages
2
I am somewhat familiar with Excel, but this one has me stumped. I am trying list in a column a set of results from a looked up value. The results are on a different worksheet than what I'm trying to display on. Here is the formula I"m using.

=INDEX($U$4:$V$8, SMALL(IF(($C$4=$U$4:$U$8), ROW($U$4:$U$8)-MIN(ROW($U$4:$U$8))+1, ""),ROWS($A$1:A1)), 2)

In this formula the table I'm pulling from U4 through V8 is on the same Worksheet. I need to pull from a different worksheet. If this has been tackled please direct me to it.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi,

If we assume your data is located in the Sheet Data ...

Code:
=IF(ROWS(B$2:B2)<=COUNTIF(Data!$A$2:$A$21,$B$1),INDEX(Data!$B$2:$B$21,SMALL(IF(Data!$A$2:$A$21=$B$1,ROW(Data!$A$2:$A$21)-ROW(Data!$A$2)+1),ROWS(B$2:B2))),"")

Hope this will help
 
Upvote 0
Hi,

If we assume your data is located in the Sheet Data ...

Code:
=IF(ROWS(B$2:B2)<=COUNTIF(Data!$A$2:$A$21,$B$1),INDEX(Data!$B$2:$B$21,SMALL(IF(Data!$A$2:$A$21=$B$1,ROW(Data!$A$2:$A$21)-ROW(Data!$A$2)+1),ROWS(B$2:B2))),"")

Hope this will help


James, I don't need a count of the cells, I need to return a list of matches. Or maybe i'm reading your formula wrong? Think of a Vlookup with multiple values. I want to return the all the possible matched values in a column. Is there a way to post an image on here? I can get my formula to work if my data is in the same sheet. I need to return it from a different sheet in the same workbook. Here is a link to the formula I'm using.

I used this guys formula for "Return multiple values vertically" but his formula does not allow me to select the data table on a different sheet. Thanks!

https://www.get-digital-help.com/2009/10/25/how-to-return-multiple-values-using-vlookup-in-excel/
 
Upvote 0
Just add the sheet name to the formula like
INDEX(Sheet1!$U$4:$V$8
 
Upvote 0
Feel free to be more precise ...

1. In which Sheet is your Formula located ...

2. In which Sheet is your Data located ...
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

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