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

Lookup and Reference Examples

  • Convert text string to valid reference in Excel using Indirect function
  • Count rows that contain specific values in Excel
  • How to use Excel LOOKUP Function
  • Offset in Excel
  • How to get relative column numbers in a range in Excel

Data Analysis Examples

  • Excel Bar Chart
  • What-If Analysis: Scenarios and Goal Seek in Excel
  • Data Series in Excel
  • How to Create Thermometer Chart in Excel
  • Excel Pie Chart

Data Validation Examples

  • Excel Data validation specific characters only
  • Prevent invalid data entering in specific cells
  • Excel Data validation date in specific year
  • Excel Data validation no punctuation
  • Excel Data validation only dates between

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:   How to pad text to match equal length in Excel

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:   How to Remove Leading Spaces 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.

Worked Example:   Convert text date dd/mm/yy to mm/dd/yy in Excel

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
  • How to check if cell contains one of many things in Excel
  • How to Separate Text Strings in Excel
  • SEARCH, SEARCHB functions: Description, Usage, Syntax, Examples and Explanation
  • Convert text to numbers using VALUE function in Excel
  • How to convert numbers to text using TEXT function in Excel
  • Get first day of month in Excel
  • Basic timesheet formula with breaks in Excel
  • Calculate number of hours between two times in Excel
  • HOUR function: Description, Usage, Syntax, Examples and Explanation
  • Get day name from date in Excel
  • EFFECT function: Description, Usage, Syntax, Examples and Explanation
  • TBILLPRICE function: Description, Usage, Syntax, Examples and Explanation
  • Calculate original loan amount in Excel
  • AMORLINC function: Description, Usage, Syntax, Examples and Explanation
  • Calculate interest for given period in Excel
Acronyms, Abbreviations, Initialism & What They Stand For
© 2021 xlsoffice. All Rights Reserved | Teal Smiles