Counting Words, Text or Phrases in Excel
Struggling With How to Analyze Text Data in Excel?
QI Macros Word Count Wizard Counts Unique Words, Two Word Phrases and More
Most data tracking systems contain note or comment fields for customer service reps, healthcare workers and even customers to input into. These fields contain interesting and valuable data, but it is often hard to analyze.
What are your options? You can spend hours reading through these comments and attempting to tally them. That can be grueling and fatigue will quickly set in. Or you can use a tool like QI Macros Word Count Wizard.
QI Macros Word count function parses the words out of sentences and paragraphs and uses PivotTables to count the occurrences of individual words and two word phrases. Then it displays the totals in a descending order for analysis and creating charts.
Here's how the QI Macros Word Count Wizard Works:
- Click and drag over your data to select it (omit the header row).
- Click on QI Macros menu > Data & Text Mining > Word Count Wizard or Word/Number Count Wizard.
- QI Macros Word Count Wizard will create two PivotTables. One for single words and one for two-word phrases.
Word Count Results
Only counts and displays text
Word/Number Count Results
Counts instances of text and numbers
- From here you can get a much better sense of what the data says and you can even use QI Macros to draw a Pareto Chart directly from the pivottable.
To Expand the Wizard to Three, Four or More Word Phrases Follow These Steps:
Create the Data
- Click on the worksheet tab labeled "Words" and click on cell C2 to view the formula.
- Formulas for three and four word phrases are written for you in cells C2 and D2. If you want to count longer phrases then extend the formula to the number of words you want to include. For each word add: & " " & A5 then & " " & A6 then & " " & A7 etc.
- Next copy the formula in row 2 down to all of the subsequent rows populated in columns A and B.
Summarize with a PivotTable
- Go back to the Word Count worksheet and copy and paste columns D and E into columns G and H.
- Change the heading in G1 to "Count of Three-Word Phrases"
- Click anywhere in columns G or H and select PivotTable Tools/ Options/ or PivotTable Analyze (depending on your version of Excel.
Change the Data Source to include the column of data (i.e. column C) from the Words worksheet that you want to pivot.
Excel 2016 - Office 365
- Next use PivotTable Tools/ Options/ or PivotTable Analyze to sort the PivotTable in descending order by the count of the phrases in column H.
- Now you have your new PivotTable.
Note: Due to limitations within Microsoft Office, if you add 4 or more PivotTables to a single spreadsheet, Excel will crash.