Counting number of occurrences and returning text

hnt007

Board Regular
Joined
Dec 18, 2021
Messages
98
Office Version
  1. 365
Platform
  1. MacOS
Hi and thanks for helping me out!

I have track titles in column A, and I would like a formula or formulas that will let me know what track titles are present in this column and the number of their occurrences.

Example:
A1: Track Titles
A2: Cool
A3: Here We Go
A4: That Title
A5: Cool
A6: Nice
A7: That Title

So I'd like a formula or formulas that would tell me:
Cool (2)
That Title (2)
Here We Go (1)
Nice (1)

Of course, I won't know the track titles in advance...So I can't say 'search for this specific text' etc...
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
as you are using 365
you could use a UNIQUE() and then countif()

Book1
ABCDE
1 Track Titles
2 Cool Cool2
3 Here We Go Here We Go1
4 That Title That Title2
5 Cool Nice1
6 Nice
7 That Title
Sheet1
Cell Formulas
RangeFormula
D2:D5D2=UNIQUE(A2:A7)
E2:E5E2=COUNTIF($A$2:$A$19,D2)
Dynamic array formulas.


or just a countif() in B

Book1
ABCDE
1 Track Titles
2 Cool2 Cool2
3 Here We Go1 Here We Go1
4 That Title2 That Title2
5 Cool2 Nice1
6 Nice1
7 That Title2
Sheet1
Cell Formulas
RangeFormula
D2:D5D2=UNIQUE(A2:A7)
E2:E5E2=COUNTIF($A$2:$A$19,D2)
B2:B7B2=COUNTIF($A$2:$A$10,A2)
Dynamic array formulas.


If you want to modify the title itself and add () with the count, then I think you will need VBA , not my area
 
Upvote 0
i have answered your 2nd question using a LET function
which extracts the unique titles and sorts them in frequency order
so that may , if you accept the layout - do both for you

 
Upvote 0
Solution
i have answered your 2nd question using a LET function
which extracts the unique titles and sorts them in frequency order
so that may , if you accept the layout - do both for you

Thank you so much!!
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,690
Members
449,117
Latest member
Aaagu

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