Rank the Most Common Values in an Excel List
Question details
Count each unique business specialty in an Excel list and rank the specialties by frequency.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user wants to summarize a long list of business specialties without counting each value manually.
- Observed behavior
- The desired result is a list of specialties and their counts, sorted from most common to least common.
Check that the specialty data has a column header and that each specialty is consistently spelled. If specialties are spread across columns or combined in one cell, prepare to unpivot or split those values before counting.
Count and sort specialties with Excel Power Query
Use Power Query to clean and reshape the data, count each specialty, and load a ranked list into Excel.
Select a cell in the list and choose Data > From Table/Range. Confirm that the table has headers, then select OK.
In Power Query, select the specialty column and choose Transform > Format > Trim to remove extra spaces. If specialties are in separate columns, select those columns and choose Transform > Unpivot Columns; if several are in one cell, use Split Column > By Delimiter and select the option to split into rows.
Open the filter on the specialty value column, clear the blank or null entries, and select OK.
Select the specialty value column, then choose Home > Group By. Group by that column, name the new column Count, and choose Count Rows as the operation.
Open the Count column filter and select Sort Descending. Choose Home > Close & Load to place the ranked list in Excel.

Rank specialties with an Excel PivotTable
Use a PivotTable when each specialty already appears in a single column.
Count and rank list values with a WPS PivotTable
Open your Excel list in WPS Spreadsheet and use a PivotTable to count each specialty and sort the results by frequency.
- 1. Open the workbook: In WPS Spreadsheet, choose Open and select the workbook containing your specialty list.
- 2. Insert a PivotTable: Select the list and its header, then choose Insert > PivotTable and confirm the data range and destination.
- 3. Count the specialties: In the PivotTable field list, drag the specialty field to Rows and Values. If necessary, open the value field settings and select Count.
- 4. Sort the counts: Right-click a count in the PivotTable and choose the option to sort from largest to smallest.

Frequently Asked Questions
How do I update the counts after adding new specialties?
For a Power Query result, choose Data > Refresh All. For a PivotTable, right-click it and select Refresh; make sure the source range includes the new rows.
How can I count specialties stored in several columns?
In Power Query, select the specialty columns and choose Transform > Unpivot Columns. Group the resulting value column using Home > Group By and the Count Rows operation.
What if one cell contains multiple specialties?
In Power Query, select the column and choose Split Column > By Delimiter. Select the delimiter used in the cells and the option to split into rows before grouping and counting.
Why are similar specialties listed separately?
Differences in spelling or extra spaces can create separate groups. In Power Query, use Transform > Format > Trim and correct inconsistent names before grouping the values.




