Create list of occurrences

Bevilready

New Member
Joined
Mar 2, 2022
Messages
15
Office Version
  1. 2016
Platform
  1. Windows
Hello,
I have two columns of data, column A displays a list of areas and column B displays a list of codes. I would like to summarise the data to show which areas the codes exist in.
Would someone be able to suggest a formula that would work please?
Thanks.

1661335698759.png
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hello,
I have two columns of data, column A displays a list of areas and column B displays a list of codes. I would like to summarise the data to show which areas the codes exist in.
Would someone be able to suggest a formula that would work please?
Thanks.

View attachment 72374
Is it what you need?


Book1
ABCD
1AreasCodesUnique codesJoined areas
21T1T11,2
32T1T33,11
43T3T44,13,14
54T4T55,6
65T5T77,15
76T5T88
87T7T99,18
98T8T1010
109T9T1212
1110T10T1616
1211T3T1717
1312T12  
1413T4  
1514T4  
1615T7  
1716T16  
1817T17  
1918T9  
Sheet1
Cell Formulas
RangeFormula
C2:C19C2=IFERROR(INDEX($B$2:$B$19,MATCH(0,INDEX(COUNTIF($C$1:C1,$B$2:$B$19),0,0),0)),"")
D2:D19D2=TEXTJOIN(",",TRUE,IF($B$2:$B$19=C2,$A$2:$A$19,""))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,215,890
Messages
6,127,595
Members
449,386
Latest member
owais87

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