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:

  1. Click and drag over your data to select it (omit the header row).

    counting words and phrases in Excel

  2. Click on QI Macros menu and select Data & Text Mining, then Word Count.
    word count wizard on QIMacros menu

  3. QI Macros Word Count Wizard will create two PivotTables. One for single words and one for two-word phrases.

  4. 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

  1. Click on the worksheet tab labeled "Words" and click on cell C2 to view the formula.
    word count formula
  2. 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.
  3. Next copy the formula in row 2 down to all of the subsequent rows populated in columns A and B.

Summarize with a PivotTable

  1. Go back to the Word Count worksheet and copy and paste columns D and E into columns G and H.
  2. Change the heading in G1
  3. 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.
    change data source
    change data range
  4. Next select PivotTable Tools/ Options/ Sort and sort the PivotTable in descending order by the count of the phrases in column H.
    sort PivotTable
  5. Now you will have your new PivotTable.

  6. word count three or more words

Note: Due to limitations within Microsoft Office, if you add 4 or more PivotTables to a single spreadsheet, Excel will crash.

To analyze words and phrases in text data, purchase QI Macros SPC Software for Excel through our secure shopping cart or try a free, QI Macros 30-day trial!