Events
Free Community Day (14 March)Conference 2026 (19-20 May)Global Excel Awards 2026
Speakers
Agenda
Conference AgendaMasterclassesCorporate Training
About
About usParticipating CompaniesEvent PartnersVisitor info
Resources
BlogEbooksFAQs
ContactGet Tickets
0

Your Cart

  • :
Remove
Subtotal:
Pay with browser.
Continue to Checkout
No items found.
Product is not available in this quantity.
Andrew Moss
Technical Writer
Resources
February 16, 2024

Count the characters and words in text strings

Counting the number of characters or words in a string is useful for various reasons. You might be conducting text-based analysis, language processing tasks, or planning social media posts.

In the example, a table houses a list of hotel reviews in A2:A18. How do we find the character and word count of each one?

Character Count

The LEN function returns the number of characters in a text string, so it's a straightforward task of referencing the reviews range inside.

=𝙻𝙴𝙽(π™°πŸΈ:π™°πŸ·πŸΎ)

Word Count

The formula required is best understood broken down. Let's use the review in A2 for the example: "The room was clean and comfortable."

1.

In E2, use TRIM to remove any excess spaces from the string (there aren't any in this case).

=πšƒπšπ™Έπ™Ό(π™°πŸΈ)
The room was clean and comfortable.

2️.

In F2, use SUBSTITUTE to swap each space for an empty string, therefore removing all spaces.

=πš‚πš„π™±πš‚πšƒπ™Έπšƒπš„πšƒπ™΄(π™°πŸΈ," ","")
Theroomwascleanandcomfortable.

3️.

In G2, subtract the character length of the string 𝘸π˜ͺ𝘡𝘩𝘰𝘢𝘡 spaces from the string 𝘸π˜ͺ𝘡𝘩 spaces.

=𝙻𝙴𝙽(π™΄πŸΈ)-𝙻𝙴𝙽(π™΅πŸΈ)
35 – 30 = 5

4️.

Add 1 to include the word after the final space.

=𝙻𝙴𝙽(π™΄πŸΈ)-𝙻𝙴𝙽(π™΅πŸΈ)+𝟷
6

Put together, this is the final formula for retrieving the word count of each review:

=𝙻𝙴𝙽(πšƒπšπ™Έπ™Ό(π™°πŸΈ:π™°πŸ·πŸΎ))
-
𝙻𝙴𝙽(πš‚πš„π™±πš‚πšƒπ™Έπšƒπš„πšƒπ™΄(π™°πŸΈ:π™°πŸ·πŸΎ," ",""))
+𝟷

For more Excel tips and tricks like this, check out our Video Tutorials page.

Latest articles
GES and MEWC Partner to Create Europe’s Premier Excel Week
ICAEW Confirms Continued Partnership with the Global Excel Summit
Sheetcast - A Natural Evolution for People Who Love Excel
Categories
News
Resources
Andrew Moss
Technical Writer
Share:

Latest Articles

Resources
Dec 22nd, 2025

Sheetcast - A Natural Evolution for People Who Love Excel

Excel becomes the backend, Sheetcast becomes the interface, and users get an app instead of a fragile file.
Read Article β†’
Resources
Nov 24th, 2025

How to Build Your First AI Agent in Excel

Rather than positioning AI as something that replaces Excel, George Mount demonstrates how Excel becomes more powerful when paired with modern AI.
Read Article β†’
Resources
Nov 10th, 2025

Leap into Excel’s AI revolution with COPILOTALT by Sheetcast

This groundbreaking new function lets you experience the future of Excel… today!
Read Article β†’
19-23 May 2026

One week, two premier events

Join the European Excel Week - from learning and mastering new skills at Global Excel Summit to elite performance at the Excel Esports European Open.

Grab Your Pass
Pages
Home
20212022202320242025
About UsFAQsOnline CoursesBlogContact
LEGALS
Privacy PolicyTerms of Service
Subscribe to our newsletter!
The Global Excel Summit is a premium global conference bringing together thebrightest minds from the world of Excel.
Β© 2026 The Global Excel Summit is organised and managed by DATEL Productions Limited, a company incorporatedin England and Wales (no. 10106893) and registered at Suite 407, 95 Wilton Road, London SW1V 1BZ, UK.