This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /MS Excel

How to Count the Words in Microsoft Excel

Updated on:
May 12, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to count words in an Excel worksheet using formulas.

Quick summary

To count words in Microsoft Excel, you can use a combination of the LEN, TRIM, and SUBSTITUTE functions in a single formula. This approach accurately calculates the word count in any cell by measuring the difference in character length before and after removing spaces.


Steps

  1. In your Microsoft Excel worksheet, select the cell where you want to display the result, then type an equals (=) sign to begin the formula.
  2. Type LEN and select it from the suggested results to start building the formula.
  3. Add the TRIM function by typing TRIM and choosing it from the suggested results.
  4. Select the cell containing the text you want to count.
  5. Close the first part of the formula with two closing parentheses.
  6. Type a minus (-) sign to continue building the formula.
  7. Enter a second LEN function by typing LEN and selecting it from the suggested results.
  8. Add the SUBSTITUTE function by typing SUBSTITUTE and selecting it from the suggested results.
  9. Select the cell with the text again, then type a comma (,).
  10. Add two quotation marks with one space between them (" ") to represent a single space, then type another comma (,).
  11. Add two empty quotation marks ("") to exclude spaces from the count, close with two closing parentheses, and append +1 at the end of the formula.
  12. Click anywhere in the worksheet to run the formula and display the word count result.
  13. The word count from the selected cell will now be calculated and displayed.

📌 Why this matters

Counting words in Microsoft Excel is a common need for analysts, writers, and data managers who work with text-heavy spreadsheets. Excel does not have a built-in word count function, so knowing how to combine LEN, TRIM, and SUBSTITUTE into a single formula is an essential skill that saves time and reduces manual effort. This technique works across any version of Excel and can be applied to entire datasets, making it ideal for content auditing, survey analysis, and text processing tasks. Mastering this formula gives users greater control over text data directly within their existing Excel workflow.
Your product deserves an interactive demo
Start free
Similar Articles
MS Excel

How to Organize Dates by Week in Excel

Madhav Bhandari
Director of Marketing @ Storylane
MS Excel

How to Make Cells Fit Text Microsoft Excel

Madhav Bhandari
Director of Marketing @ Storylane
MS Excel

How to Make a Bar Graph in Microsoft Excel

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Buyer Hub
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it