Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to use Excel COLUMN Function
  • How to use Excel FORMULATEXT function
  • Left Lookup in Excel
  • Offset in Excel
  • Two-column Lookup in Excel

Data Analysis Examples

  • Conditional Formatting New Rule with Formulas in Excel
  • Understanding Anova in Excel
  • Subtotal function in Excel
  • Excel Frequency Function Example
  • Conflicting Multiple Conditional Formatting Rules in Excel

Data Validation Examples

  • Excel Data validation require unique number
  • Excel Data validation whole percentage only
  • Excel Data validation no punctuation
  • Excel Data validation allow uppercase only
  • Excel Data validation exists in list

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.

Worked Example:   Split dimensions into two parts in Excel Worksheet

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.

Worked Example:   Convert column number to letter in Excel

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:

Conditional Formatting Color Scales Examples in Excel

Next Post:

Split Cell Content Using Text to Columns 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
  • Remove first character in a cell in Excel
  • How to check if cell contains all of many things in Excel
  • How to get last line in cell in Excel
  • UNICHAR function: Description, Usage, Syntax, Examples and Explanation
  • How to count specific words in a cell in Excel
  • How to calculate Day of the Year in Excel
  • How to calculate project start date based on end date in Excel
  • Get days, months, and years between dates in Excel
  • Get days, hours, and minutes between dates in Excel
  • Add decimal minutes to time in Excel
  • PRICEMAT function: Description, Usage, Syntax, Examples and Explanation
  • PV function: Description, Usage, Syntax, Examples and Explanation
  • INTRATE function: Description, Usage, Syntax, Examples and Explanation
  • Calculate interest rate for loan in Excel
  • EFFECT function: Description, Usage, Syntax, Examples and Explanation
© 2022 xlsoffice . All Right Reserved. | Teal Smiles