Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How To Load Analysis ToolPak in Excel
  • How to Sort by Color in Excel
  • Number and Text Filters Examples in Excel
  • How to calculate average last N values in a table in Excel
  • Error Bars in Excel

References

  • To count total rows in a range in Excel
  • Perform case-sensitive Lookup in Excel
  • How to create dynamic named range with OFFSET in Excel
  • How to use Excel ROWS Function
  • How to use Excel MATCH Function

Data Validations

  • Prevent invalid data entering in specific cells
  • Excel Data validation must begin with
  • Excel Data validation number multiple 100
  • Excel Data validation require unique number
  • Excel Data validation must contain specific text

Count Number of Words in Excel

by

This chapter shows how to count the number of words in a cell.

1a. The TRIM function returns a string with leading spaces, extra spaces and trailing spaces removed.

1b. To get the length of the string with normal spaces, we combine the LEN and TRIM function.

2a. The SUBSTITUTE function replaces existing text with new text in a text string. We use the SUBSTITUTE function to get the string without spaces.

2b. To get the length of the string without spaces, we combine the LEN and SUBSTITUTE function.

3. Now comes the simple trick. To get the number of words, we subtract the length of the string without spaces (10) from the length of the string with normal spaces (12) and add 1.

Post navigation

Previous Post:

MDETERM function: Description, Usage, Syntax, Examples and Explanation

Next Post:

Sales Calculator in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IF function: Description, Usage, Syntax, Examples and Explanation
  • Not Equal To ‘<>‘ operator in Excel
  • Return blank if in Excel
  • How to use Excel OR Function
  • OR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to calculate working days left in month in Excel
  • Display Date is workday in Excel
  • YEAR function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate project start date based on end date in Excel
  • Convert Excel time to decimal seconds

Grouping

  • Map inputs to arbitrary values in Excel
  • Group arbitrary text values in Excel
  • If cell contains one of many things in Excel
  • Group times into 3 hour buckets in Excel
  • How to randomly assign data to groups in Excel

General

  • Check if range contains a value not in another range in Excel
  • 44 Practical Excel IF function Examples
  • How to count total number of cells in a rectangular range in Excel
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • Check if multiple cells have same value in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning