INDEX/MATCH with (a) Duplicates (b) based on criteria of another cell being a number

SleightOfHand

New Member
Joined
Jun 19, 2020
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hi, I've been trying do this for a while but I'm a bit stuck.

Book1.xlsx
EFH
1CodeNameNumber
2
31A91Area 195
41A91Area 295
51A91Area 3
61A91Area 4
71A91Area 5
81A92Area 1
91A92Area 2
101A92Area 391
111A92Area 492
121A92Area 5
13
Sheet1


There feels like it should be a much simpler way to do this but I cannot seem to look logically at this.

As you can see, column A has a list of multiple codes that may correspond to a certain area. What I want to do is, separately, be able to extract which area(s) correspond to the codes, which I filtered out in another column. But in order to filter these out, they must correspond to a the number column. So if there is a column with whatever code, I can list out all the areas that correspond to the code, that have a number.


Book1.xlsx
ABCD
151A91Area 1Area 2
161A92Area 3Area 4
Sheet1


So in another column, I used the UNIQUE command just to filter out all the duplicates within the first column, and I'd like to be able to use XLOOKUP or INDEX/MATCH to be able to extract out all these areas which have a number corresponding to the code.


I've tried an INDEX/SMALL/ROW function, which works to filter out all the areas that have a number, but not how it would correspond to the lookup 'code'. So it would great to have it like the way it's formatted just above.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
How about
+Fluff New.xlsm
EFGHIJK
1CodeNameNumber
21A91Area 1Area 2
31A91Area 1951A92Area 3Area 4
41A91Area 295
51A91Area 3
61A91Area 4
71A91Area 5
81A92Area 1
91A92Area 2
101A92Area 391
111A92Area 492
121A92Area 5
Master
Cell Formulas
RangeFormula
J2:K3J2=TRANSPOSE(FILTER($F$3:$F$12,($E$3:$E$12=I2)*($G$3:$G$12<>"")))
Dynamic array formulas.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,686
Messages
6,126,202
Members
449,298
Latest member
Jest

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