Excel formula to dynamically reference a range using values from a horizontally and vertically spilled ranges

cadams1979

New Member
Joined
Nov 20, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have 2 dynamic arrays; one for the first column of data (vertical) and a second for a header row (horizontal) which together make up a grid view.

I need a formula that will spill dynamically when there are changes to either the horizontal or vertical ranges. I want to use the combination of the values from each array (horizontal & vertical) to FILTER another range and show the cells found with a TEXTJOIN for a comma delimited string.

I can perform a COUNTIF relatively easily with verticalarray#&horizontalarray# and that works nicely but every time I attempt with FILTER I get an error

Anyone out there have any smart ideas in how they can help?

Here's quick dump of the data examples

1700497044960.png
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I believe I've solved it...
C1C2C3
R1R1C1
R2R2C1
R3R3C1
R1C2
R2C2
R3C3
R1C1
R2C1
R3C1
R1C2

=SCAN("",$A$2#&$B$1#,LAMBDA(a,b,IFERROR(TEXTJOIN(",",TRUE,FILTER($E$2:$E$10,b=$E$2:$E$10)),"")))

R1C1,R1C1R1C2
R2C1,R2C1R2C2
R3C1,R3C1R3C3
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,629
Members
452,661
Latest member
Nonhle

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