How to Find the Most Common Phrase in an Excel Cell Range
Question details
The user needs to identify the most frequently occurring text phrase (such as recreational site names) within a large range of over 30,000 cells containing noisy text data.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Analyzing a large dataset of text entries to find the most common occurrence while dealing with inconsistent phrasing, punctuation, and stop words.
- Observed behavior
- The raw data contains noise like punctuation, extra spaces, numbers, and inconsistent wording (e.g., "The"), making direct frequency counting inaccurate without prior data cleaning.
Before calculating phrase frequencies, ensure you make a copy of your original dataset to preserve the raw data during the extensive text cleaning process.
Clean Data with Power Query and Count Using a PivotTable
This is the most robust method for handling large datasets (like 30,000+ rows) that require text normalization before counting.
When dealing with messy text data, raw frequency counts will treat 'Alien Wall' and ' alien wall.' as two different phrases. Power Query allows you to systematically remove this noise before analyzing the data.
Select your range of data and go to the Data tab, then click 'From Table/Range' to open the Power Query Editor.
Select your text column, go to the Transform tab, click 'Format', and choose 'Lowercase' to make everything case-insensitive. Then click 'Format' again and choose 'Trim' to remove extra leading or trailing spaces.
Still in the Transform tab, use the 'Replace Values' feature. Enter punctuation marks (like periods or commas) or stop words (like 'the ' or 'and ') in the 'Value To Find' box, leave 'Replace With' blank, and click OK.
Click 'Close & Load' on the Home tab to bring the cleaned data back into a new Excel worksheet.
Select the new cleaned table, go to Insert > PivotTable. Drag your text column into both the 'Rows' area and the 'Values' area (it should default to 'Count of...'). Right-click any number in the Values column and select Sort > Sort Largest to Smallest to reveal the most common phrase.
Use Array Formulas to Find the Most Frequent Text
Best for smaller ranges or situations where the data is already relatively clean and you just need a quick formula-based answer.
Easily Clean and Analyze Text Data with WPS Spreadsheet
WPS Spreadsheet provides powerful text functions and PivotTable capabilities to help you quickly normalize messy data and identify the most common phrases in massive datasets without lag.
- 1. Open and prepare your dataset: Launch WPS Spreadsheet and open your dataset. Insert a helper column next to your raw text.
- 2. Clean the text data: Use the formula =TRIM(LOWER(SUBSTITUTE(A2, ".", ""))) in the helper column to standardize casing, remove spaces, and strip specific punctuation.
- 3. Insert a PivotTable: Select your newly cleaned helper column, go to the Insert tab, and click PivotTable.
- 4. Count the occurrences: Drag the cleaned column header into both the 'Row Labels' and 'Values' sections of the PivotTable Field List. Sort the Values column descending to instantly see the top phrase.

Frequently Asked Questions
Why doesn't the MODE function work for text in Excel?
The standard MODE function in Excel is designed to evaluate numerical data only. To find the most frequent text phrase, you must either use a PivotTable (which counts occurrences of any data type) or a formula combination like INDEX, MATCH, and MODE.
How do I remove punctuation from multiple cells at once?
You can use the Find and Replace tool (Ctrl+H) to find specific punctuation marks (like commas) and replace them with nothing. Alternatively, use the SUBSTITUTE function in a helper column to dynamically remove unwanted characters.
Can I ignore stop words like 'the' or 'and' in my frequency count?
Yes. Before running your frequency count, use Power Query's 'Replace Values' feature or Excel's SUBSTITUTE formula to replace specific stop words (along with their trailing space, e.g., 'the ') with blank strings.




