Counting Words 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 and select Data & Text Mining, then Word Count.
- QI Macros Word Count Wizard will create two PivotTables. One for single words and one for two-word phrases.
- 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.
Note: Microsoft will not allow Word Count to PivotTable a workbook if there are square brackets in the name:
Excel Pivottable Error.
As a workaround, simply remove the square brackets from your file name and rerun the Word Count on your data set.
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
- Click anywhere in columns G or H and select PivotTable Tools/ Options/ Change Data Source and define the data source to include the column of data from the Words worksheet that you want to pivot.
- Next select PivotTable Tools/ Options/ Sort and sort the PivotTable in descending order by the count of the phrases in column H.
- Now you will 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.