Counting names in columns to produce an auto-updating report of their frequencies?
Hi there,
So i'm trying to count the number of names in a given column that would then print to another place in the sheet/workbook. I won't know the names in advance, and i would like the printed list to update as i add names. Then, next to those values, i'd like to count how many times they appear in the column. So as an example, this column:
Atlanta Falcons
Jaylon Smith
Reggie Ragland
Emmanuel Ogbah
Reggie Ragland
Emmanuel Ogbah
Darron Lee
Jaylon Smith
Jack Conklin
Braxton Miller
Jaylon Smith
Reggie Ragland
Vonn Bell
Jaylon Smith
Jayron Kearse
Would become:
Atlanta Falcons
Jaylon Smith 4
Reggie Ragland 3
Emmanuel Ogbah 2
Darron Lee 1
Jack Conklin 1
Braxton Miller 1
Vonn Bell 1
Jayron Kearse 1
Then, as i add more names to the initial list, that list of frequencies would change, add on the new names, and update. Anyone got any ideas about how to do this? I'm on Excel 2013 for Mac. Thanks in advance for your help!
Posted Feb 9, 2016, 5:11 PM UTC
You can easily use a Pivot Table for this.
Select your Range, format as Table
Insert>Pivot Table, from Table1 (or whatever your table is named)
Put the Names field in the Rows, it will only show unique.
Put the Names field in the Values, it will now show you a count
The nice thing about this, is as you add Table rows in your data range, the Pivot Table can be updated by just clicking Refresh. No VBA or formulas required.
Except you'd need dynamic named ranges or to change data source every time ;)
But yes, probably the better approach.
Possibly. Formatted tables can often resolve the dynamic range issue. For fun, create a table. Delete all rows (except the header...) then paste in new data. Most times, it'll keep all the new data in the table. New rows are often included if they're added immediately below the table (but, admittedly, not always...)