Return Multiple Rows of Data without Arrays

Tarver

Board Regular
Joined
Nov 15, 2012
Messages
109
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I've got a large table of values, 5000+ rows long, and about 20 columns wide.

In that table are multiple items with the same partner name. I need to pull all of the entries out of that table for a specific partner. There may be anywhere from 1 to 20 occurrences of that partner name in the table.

I'm trying to do this WITHOUT array formulas. (Because of the large amount of memory used by arrays, Excel keeps crashing on me.) My data looks like this:

ABCD
1PartnerPromoStart DateEnd Date
2Subway$5 Footlong01/01/201901/31/2019
3Long John SilversSave $201/15/201901/30/2019
4SubwayFree Cookie02/02/201902/13/2019
5Coca ColaBuy one get one02/02/201903/15/2019
6Coca ColaAwareness02/02/201903/01/2019
7SubwayChips and a Drink03/15/201903/27/2019

<tbody>
</tbody>

On another tab, in cell AK10, I need to be able to select Subway from my list of partners and get the three matches for Subway in the above table in rows 2, 4, and 7 to show starting in cells AK11, AK12, and AK13. Or I need to be able to select Long John Silvers and get the one result that's here in row 3 displayed in cell AK11.

I hope I'm explaining that clearly.

With arrays, this should be a fairly easy task. However, is there a sensible way to do this using only formulas, no arrays?

Thanks in advance for your ideas!
 
Last edited:

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
How about vba, are you ok to use vba?
 
Upvote 0
Akuini, yes, I'm okay to use VBA. My problem is that I'm not a VBA expert. I can record a macro and edit a little, but not much beyond that.
 
Upvote 0
https://www.mrexcel.com/forum/redir...13/parameters-in-excel-external-data-queries/
Don't know if it suits your situation: there is a simple (when familar) way without formulas - a parameterised query.

Suggest you google. Such as http://dailydoseofexcel.com/archives...-data-queries/
https://www.mrexcel.com/forum/redir...13/parameters-in-excel-external-data-queries/

Wow!

This was NOT easy to do. I ended up having to edit the query in SQL to get my parameters to work, however, this was a BRILLIANT SOLUTION to the problem, and I'm very grateful for your help!
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

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