Return Multiple Rows of Data without Arrays

Tarver

Board Regular
Joined
Nov 15, 2012
Messages
74
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:

Some videos you may like

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Akuini

Well-known Member
Joined
Feb 1, 2016
Messages
2,575
Office Version
  1. 365
Platform
  1. Windows
How about vba, are you ok to use vba?
 

Tarver

Board Regular
Joined
Nov 15, 2012
Messages
74
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.
 

Tarver

Board Regular
Joined
Nov 15, 2012
Messages
74
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!
 

Watch MrExcel Video

Forum statistics

Threads
1,109,048
Messages
5,526,472
Members
409,701
Latest member
nitmani

This Week's Hot Topics

Top