EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Excel Tips Excel Word Count
Secondary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Basic Excel Formulas
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Excel Drop Down List
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup and Reference Functions in Excel (35+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course

Excel Word Count

By Madhuri ThakurMadhuri Thakur

Count Words in Excel

Excel Word Count (Table of Contents)

  • Introduction to Count Words in Excel
  • How to Count Words in Excel by using formulas?

Introduction to Count Words in Excel

In this topic will learn how to count a specific or total number of words in a cell or a cell range in excel by using formulas.

Unlike the MS office, where we can easily count the number of words, MS Excel doesn’t have a built-in function. However, we can count words in Excel by combining various functions to make a formula for the same.

We will use excel functions like TRIM, LEN, and SUBSTITUTE to make a formula that will yield words.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

Let me give you the overview of these functions one by one –

All in One Excel VBA Bundle(120+ Courses, 30+ Projects)
Basic ExcelAdvanced ExcelVBA & MacrosExcel Dashboards
Pivot TablesStatistical FunctionsFinancial FunctionsCharts & Graphs
Price
View Courses
120+ Online Courses | 30+ Projects | 500+ Hours | Verifiable Certificates | Lifetime Access
4.9 (64,725 ratings)
  • Trim: This function removes duplicate or extra spaces from a cell or a cell range. The spaces could even be found before or after the word in a cell.
  • Len: This function returns the length of a string in a cell or a cell range. It includes spaces as well.
  • Substitute: This function replaces anything in a cell by any text, number etc., of our choice. In our case, this function will replace spaces with blanks.

We will now look into different scenarios of word count with examples in excel. We will also learn how to write syntax by combining the above three functions to get the word count in excel.

How to Count Words in Excel by using formulas?

Count words in excel are very simple and easy. Let’s understand the working of count words in excel using formulas with its examples.

You can download this Count Word Excel Template here – Count Word Excel Template

Example #1 – Count Total words in a cell

To get the count of words in a cell, we will use the below syntax:

=LEN(TRIM(cell))-LEN(SUBSTITUTE(cell,” “,””))+1

There is a text string in cell A2, and we want to count the total number of words. So it will be shown in cell B2.

Excel Data Example 1-1

We will first use the function Trim as below:

Count Word Example 1-2

Press Enter.

Count Word Example 1-3

Now, we get the text without any extra spaces. Sometimes a worksheet could have a duplicate or more than one space between words or spaces at the start or end of the text. The trim function removes all those extra spaces. It is good to use this function as a caution to get the correct result.

We will calculate the length of the string now, as shown below:

Count Word Example 1-4

Press Enter to get the length of the string without any space.

Count Word Example 1-5

Now, we will use a SUBSTITUTE function to replace the old text with the new in the string. Here we will replace the spaces “ “ with blanks. “

Count Word Example 1-6

Press Enter, and now we see the string without any spaces.

Count Word Example 1-7

Now to get the length of the string without spaces, we will use the LEN function as shown below:

Count Word Example 1-8

Press Enter to get the length of the string without spaces.

Count Word Example 1-9

Finally, to get the count of words in the string, we will subtract the length of the string with spaces (40) with the length of the string without spaces (35) and by adding 1 to it. Adding 1 will give us the total number of words, as spaces are one less than words.

Count Word Example 1-10

Press Enter, and you will see the exact count of words in the string in cell A2.

Count Word Example 1-11

This is how we will use the formula to count the total number of words in excel. In case we have multiple strings for word count in excel, as shown below.

Count Word Example 1-12

We just need to drag the cell B2 downwards, and the formula will be applied for all the strings.

Count Word Example 1-13

In case any of the above cells in the range A2:A5 has no text or is blank, the formula would then return the word count as 1 instead of 0 for that specific cell. This scenario is shown below:

Count Word Example 1-14

We can modify our formula by adding the IF function to avoid any such incorrect results, making it conditional. For example, we will use IF to give a condition to the cell that if it is blank, it should return the word count as 0.

The modified formula will be like this:

=IF(cell = ““,0,LEN(TRIM(cell))-LEN(SUBSTITUTE(cell,” “,””))+1)

On the above data, it will be applied in the below manner.

Count Word Example 1-15

Drag the cell B2 downwards, and the formula will be applied for all the strings.

Count Word Example 1-16

Example #2 – Count Total words in a cell

We have a long sentence to count the numbers of words in it.

Excel Data Example 2-1

First, we will get the length of cell A2, which has no extra space. Then we will substitute the spaces in the sentence with the blanks and get its length. Finally, we will subtract the total length of the sentence with the length of the sentence without spaces. Also, we will add 1 to get the final word count. This is because, in a cell, a number of words will be a number of space +1.

Count Word Example 2-2

Press Enter to see the result.

Count Word Example 2-3

I hope you have now understood the formula and will be able to write. It is a bit tricky but writing this 2 or 3 times will give you more clarity.

Example #3 – Count Specific words in a cell

How can we count as to how many times a specific name or a text has appeared in a string? We can do it by the below formula:

=(LEN(Cell)-LEN(SUBSTITUTE(CELL,word,””)))/LEN(word)

There a text string in cell A2, and we want to count the specific words in a cell. It will be shown in cell B2.

Excel Data Example 3-1

Let’s say we want to know how many times the word “home” has occurred in the above sentence. We can know this by the below formula:

Count Word Example 3-2

Press Enter to see the result.

Result of Specific words in a cell 

We will first calculate the length of the original text (A2). Now the SUBSTITUTE function will completely replace the word “home” in the sentence with blanks. With the LEN function, we will get the length of text A2 with the original word that is “home”. After that, we will subtract the length of this new text string from the length of the original text string. We will subtract 102-90, and that will give us 12.

And lastly, we will divide the above number with the length of the word “home”,4. This will give us the result 3. The word “home” has occurred 3 times in the above string.

Also, we can use a cell reference to the word in place, “home”.

Example #4 – Count total number of words in a Range

In case we want to the total number of words in a range, we can do so as below:

Excel Data Example 4-1

To calculate the total number of words, we will include a Sum function. For the Sum function, to calculate the array, we will press Ctrl+Shift+Enter instead of normal Enter.

Total Number of Words in a Range

Example #5 – Count the total number of a specific word in a Range

If we want to know the total number of occurrence of a specific word in a range, we can do it with the below formula:

In this example, we want to know the total number of times the word “London” occurred in the below range A2:A4. 

Excel Data Example 5-1

We can know this with the below formula:

Total Number of Specific Word in a Range

Once we have written the formula, we will press CTRL+SHIFT+Enter to get the result as the Sum function will calculate the array. Once we press the above keys, we will get the below result.

Count Word Example 5-3

In cell range A2:A4, the word “London” has occurred 3 times. Also, you can use a cell reference in place of the word “London”.

Things to Remember About Count Word in Excel

  • As a practice, use the TRIM function in writing the formula as it will eliminate the chances of error if the cell or range has extra spaces.
  • Whenever you want to know the count of a specific text in a cell or range, always write that word in double-quotes in the formula like “word”.
  • SUBSTITUTE is case sensitive, so be careful in writing the word that you want to substitute. It should be in the same case as it is in the original text, else it won’t be substituted.
  • Always press Ctrl+Shift+Enter to calculate the array SUM formula.

Recommended Articles

This has been a guide to Count Word in Excel. Here we discuss how to count words in Excel by using formulas along with excel examples and a downloadable excel template. You may also look at these suggested articles –

  1. Count Unique Values in Excel
  2. COUNTIF Excel Function
  3. Excel Count Function
  4. Count Characters in Excel
Popular Course in this category
Excel Training (23 Courses, 9+ Projects)
  23 Online Courses |  9 Hands-on Projects |  110+ Hours |  Verifiable Certificate of Completion
4.9
Price

View Course

Related Courses

Excel Data Analysis Training (17 Courses, 8+ Projects)4.9
Excel for Finance Training (18 Courses, 7+ Projects)4.8
0 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download Count Word Excel Template

EDUCBA

Download Count Word Excel Template

EDUCBA

डाउनलोड Count Word Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more