INDEX MATCH with multiple matches

Pickle1989

New Member
Joined
Jun 2, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I've been working on this for a while now without any luck, so I thought it might be time I asked the experts.

I have 2 workbooks:
Workbook 1: Raw postcode data only in column A
Screenshot 2021-06-02 170345.jpg

Workbook 2 (Index): Postcodes (column A) with all localities affiliated with those postcodes (Column B). Note that some postcodes are used for multiple localities.
Screenshot 2021-06-02 170055.jpg

I have created the Index & Match formula for column B to bring over the localities of postcodes in workbook 2 to workbook 1, but it will only bring over one locality (see below)
Screenshot 2021-06-02 170302.jpg

=INDEX([AUpostcodesJune2021.csv]VIC!$A$1:$C$3532,MATCH(A2,[AUpostcodesJune2021.csv]VIC!$A$1:$A$3532,0),MATCH($B$1,[AUpostcodesJune2021.csv]VIC!$A$1:$C$1,0))

What should I be adding to my formula to get the multiple localities for a postcode brought over from my Index and have them separated by comma, ie: 3011 - Footscray, Seddon, Seddon West

Any help would be greatly appreciated :)
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Welcome to the MrExcel board!

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

See if you can adapt from this single-sheet example.

Pickle 1989.xlsm
ABCDEF
1postcodelocalitypostcodelocality
23008Loc 13008Loc 1
33010Loc 33009Loc 2
43011Loc 53010Loc 3
53011Loc 63010Loc 4
63012Loc 93011Loc 5
73015Loc 143011Loc 6
83012Loc 103011Loc 7
93011Loc 8
103012Loc 9
113012Loc 10
123012Loc 11
133013Loc 12
143014Loc 13
153015Loc 14
Sheet1
Cell Formulas
RangeFormula
B2:B8B2=INDEX(FILTER(F$2:F$15,E$2:E$15=A2),COUNTIF(A$2:A2,A2))
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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