---
title: "Count the words in a cell | PracticeExcel"
description: "Practice LEN and SUBSTITUTE in a live spreadsheet: count the words in a headline by counting its spaces."
canonical_url: "https://practiceexcelonline.com/practice/find-search/count-words-in-cell"
locale: en
meta:
  "og:description": "Practice LEN and SUBSTITUTE in a live spreadsheet: count the words in a headline by counting its spaces."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Count%2Bthe%2Bwords%2Bin%2Ba%2Bcell%2Cdescription_~UHJhY3RpY2UgTEVOIGFuZCBTVUJTVElUVVRFIGluIGEgbGl2ZSBzcHJlYWRzaGVldDogY291bnQgdGhlIHdvcmRzIGluIGEgaGVhZGxpbmUgYnkgY291bnRpbmcgaXRzIHNwYWNlcy4%2Ceyebrow_FIND%2Band%2BSEARCH%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiSGVhZGxpbmUiLCJXb3JkcyJdfSx7Im4iOjIsImNlbGxzIjpbIkZhc3QgZnJlZSBzaGlwcGluZyBvbiBldmVyeSBvcmRlciIsIiJdfV0sInRhcmdldCI6WzEsMV19fQ%2Cp_Ii9wcmFjdGljZS9maW5kLXNlYXJjaC9jb3VudC13b3Jkcy1pbi1jZWxsIg%2Cs_Df4fY6jfv6BXgVBY.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Count the words in a cell | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Count%2Bthe%2Bwords%2Bin%2Ba%2Bcell%2Cdescription_~UHJhY3RpY2UgTEVOIGFuZCBTVUJTVElUVVRFIGluIGEgbGl2ZSBzcHJlYWRzaGVldDogY291bnQgdGhlIHdvcmRzIGluIGEgaGVhZGxpbmUgYnkgY291bnRpbmcgaXRzIHNwYWNlcy4%2Ceyebrow_FIND%2Band%2BSEARCH%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiSGVhZGxpbmUiLCJXb3JkcyJdfSx7Im4iOjIsImNlbGxzIjpbIkZhc3QgZnJlZSBzaGlwcGluZyBvbiBldmVyeSBvcmRlciIsIiJdfV0sInRhcmdldCI6WzEsMV19fQ%2Cp_Ii9wcmFjdGljZS9maW5kLXNlYXJjaC9jb3VudC13b3Jkcy1pbi1jZWxsIg%2Cs_Df4fY6jfv6BXgVBY.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **Count the words in a cell**

**Premium**

In B2, count the words in A2. There is one more word than there are spaces, and LEN(A2) minus the length without spaces, LEN(SUBSTITUTE(A2," ","")), is the number of spaces.

B2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Headline | Words |  |  |  | |
| 2 | Fast free shipping on every order |  |  |  |  | |
| 3 |  |  |  |  |  | |
| 4 |  |  |  |  |  | |
| 5 |  |  |  |  |  | |
| 6 |  |  |  |  |  | |
| 7 |  |  |  |  |  | |
| 8 |  |  |  |  |  | |

**Premium lesson**

## **Unlock FIND and SEARCH and every other lesson**

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:**Joining text with & and TEXTJOIN****SUBSTITUTE, TEXTBEFORE and TEXTAFTER**

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/practice/find-search/count-words-in-cell)

Need help?

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/practice/find-search/count-words-in-cell#webpage","description":"Practice LEN and SUBSTITUTE in a live spreadsheet: count the words in a headline by counting its spaces.","name":"Count the words in a cell","url":"https://practiceexcelonline.com/practice/find-search/count-words-in-cell","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/find-search/count-words-in-cell#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/find-search/count-words-in-cell#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/find-search/count-words-in-cell"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/find-search/count-words-in-cell#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel practice exercises","item":"https://practiceexcelonline.com/practice","position":2},{"@type":"ListItem","name":"FIND and SEARCH","item":"https://practiceexcelonline.com/practice/find-search","position":3},{"@type":"ListItem","name":"Count the words in a cell","position":4}]},{"@id":"https://practiceexcelonline.com/practice/find-search/count-words-in-cell#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I count words in a cell in Excel?","acceptedAnswer":{"@type":"Answer","text":"Count the spaces and add 1, =LEN(A2)-LEN(SUBSTITUTE(A2,\" \",\"\"))+1. Wrap A2 in TRIM if the text may have extra spaces."}},{"@id":"https://practiceexcelonline.com/practice/find-search/count-words-in-cell#/schema/learning-resource/1","@type":"LearningResource","description":"Practice LEN and SUBSTITUTE in a live spreadsheet: count the words in a headline by counting its spaces.","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"Count the words in a cell","teaches":"FIND and SEARCH"},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
