Using MATCH within OFFSET without a defined range size

tps49

New Member
Joined
Oct 7, 2014
Messages
26
Hi there,

I'm working on a spreadsheet that has two columns:

- The first column is the name of a particular building (i.e. 132 Wacker Drive, formatted as text)

- The second column is some designation of random letters that denotes specific qualities about the building. These letters are in groups of three and can only be A, B, or C, and can repeat (i.e. AAA is a group, AAB is a group, and so on and so forth).

What I'd like to do is use a reference cell where I can put in the name of a group (like AAA or AAB) and have it return a list of the buildings that have that group designation. My issue is that not all of the group designations have the same amount of buildings (i.e. AAA might have three buildings, AAB might have seven, etc.).

I'm thinking that the solution has to be a match function nested in an offset, but I can't think of how to make the defined range within the match dynamic...any thoughts?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
And Gsistek, still not working...it's just returning blank cells when I calculate the array.
 
Upvote 0
Marcelo, I've now got an array working but it just returns the first property name in however many spaces the array has (regardless of the count for the set, so, it'll give a name back 11 times even if the set has 4, 6, 8, or however many members)

Could you provide a small data sample where my formula doesn't work?

It worked perfectly for me.

BTW to confirm an array formula correctly
select the cell
paste (or type) the formula
with the cursor inside the formula bar in the middle of the formula:
hold down both Ctrl and Shift keys
hit Enter

check if Excel wrapped the formula with curly-braces {=....}

M.
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,845
Members
449,471
Latest member
lachbee

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