How to count words in Excel, in cells, rows, and columns.

This detailed guide shows you how to count words in Excel, applying it to cells, columns, and rows using built-in formulas and functions. It helps you work quickly and accurately, optimizing your workflow and improving productivity.

Excel doesn't have a specific formula for counting words, but you can use the LEN function to count characters, including spaces. Since each space separates two words, you can count the number of spaces and then add one to get the total number of words.

 

HOW TO COUNT WORDS IN EXCEL, IN CELLS, ROWS, AND COLUMNS

First, let's understand the function of each function:

- LEN function : Counts the number of characters in a string, including spaces.

Syntax :LEN(ô)

Example : Count the number of characters in cell B5.

Images 1 of How to count words in Excel, in cells, rows, and columns.

- SUBSTITUTE function : Replaces the old character with the new character.

Syntax : SUBSTITUTE(text or cell, old character, new character)

Example : Replace the space in cell B6 with an empty character.

Images 2 of How to count words in Excel, in cells, rows, and columns.

- TRIM function : Removes excess whitespace in a cell, including leading, trailing, and between words.

Syntax : TRIM(cell)

Example : Remove leading spaces and extra spaces between "free" and "fee" in cell B7.

Images 3 of How to count words in Excel, in cells, rows, and columns.

Count the number of words in a cell.

Combine the three functions to count the number of spaces, then add one to get the number of words:

Formula: =LEN(TRIM(B5)) - LEN(SUBSTITUTE(B5, " ", "")) + 1

The results are shown in the image below.

Images 4 of How to count words in Excel, in cells, rows, and columns.

Formula analysis

- LEN(TRIM(B5)) : Counts the number of characters in cell B5 after removing extra spaces using TRIM.

- LEN(SUBSTITUTE(B5, " ", "")) : Counts the number of characters in cell B5, but excludes spaces thanks to SUBSTITUTE.

- The difference between the two functions above : Given the number of spaces in the cell. Add 1 to get the word count.

Applying the formula to cell B7, even with extra spaces, the result is still accurate.

Images 5 of How to count words in Excel, in cells, rows, and columns.

Count the number of words in a data range.

To count the number of words in a data range, we use a sum function such as SUMPRODUCT or SUM. The sum of the word counts from the cells in the data range is the sum of the results.

Formula: =SUMPRODUCT(LEN(TRIM(data range)) - LEN(SUBSTITUTE(data range, " ", "")) + 1)

or

=SUM(LEN(TRIM(data range)) - LEN(SUBSTITUTE(data range, " ", "")) + 1)

Example: Count the numbers from cell B5 to cell B7.

- SUMPRODUCT function.

Images 6 of How to count words in Excel, in cells, rows, and columns.

- SUM function: For the SUM function , you need to press Ctrl + Shift + Enter instead of just Enter for the function to calculate the array.


Images 7 of How to count words in Excel, in cells, rows, and columns.

The above is a guide on how to count the number of words in a cell and data range in Excel. Hopefully, this article helps you use  the counting function  in Excel easily. If you encounter any difficulties, please leave a question, and the TipsMake technical team will assist you.

Additionally, you can also find instructions on how  to count words in Word  2016, 2013, and 2010 here.

If you want to learn about  the DATEDIF function , please refer to the previous article for a better understanding and effective use of this function.

Close
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup