Count characters in cells with Excel for Mac (2024)

Excel for Microsoft 365 for Mac Excel 2021 for Mac Excel 2019 for Mac More...Less

When you need to count the characters in cells, use the LEN function. The function counts letters, numbers, characters, and all spaces. For example, the length of "It's 98 degrees today, so I'll go swimming" (excluding the quotes) is 42 characters—31 letters, 2 numbers, 8 spaces, a comma, and 2 apostrophes.

  • To use the function, enter =LEN(cell) in the formula bar and press Enter. In these examples, cell is the cell you want to count, such as B1.

  • To count the characters in more than one cell, enter the formula, and then copy and paste the formula to other cells.

  • To count a total number of characters in several cells, use the SUM functions along with LEN. For example, =SUM((LEN(cell1),LEN(cell2),(LEN(cell3)))). In this example, the LEN function counts the characters in each cell and the SUM function adds the counts.

  • To count certain, specific characters within cells, use the LEN function with the SUBSTITUTE function. For example, if you wanted to know how many lower case Zs were within a cell you'd use this formula: =LEN(cell1)-LEN(SUBSTITUTE(cell1,"z",""))

Give it a try

Type the following data into a new Excel worksheet. Start in cell A1.

Text Strings

Formulas

The quick brown fox

The quick brown fox jumped

The quick brown fox jumped over the lazy dog

Count characters in one cell

  1. Click cell B2.

  2. In the cell, enter =LEN(A2) and press Enter.

The formula counts of the characters in cell A2, and that number is 19, including all spaces. If you have spaces after the final period, the formula also counts them.

Count characters in multiple cells

  1. Press CONTROL + C to copy cell B2.

  2. Press CONTROL + V to paste its formula into cells B3:B4

This copies the formula to cells B3 and B4, and the function counts the characters in each cell (26, and 44).

Count a total number of characters

  1. Click cell B6.

  2. In the cell, enter =SUM(LEN(A2),LEN(A3),LEN(A4)) and press Enter.

This counts the characters in each of the three cells and totals them (89).

To count certain, specific characters within cells

  1. Click cell C4.

  2. In the cell, enter =LEN(A4)-LEN(SUBSTITUTE(A4,"z","")) and press Enter.

In short, this counts all lower case Zs in cell A4, which is 1.

Need more help?

Want more options?

Discover Community

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Count characters in cells with Excel for Mac (2024)

FAQs

Count characters in cells with Excel for Mac? ›

To use the function, enter =LEN(cell) in the formula bar and press Enter.

How do you count cells with text in Excel Mac? ›

Input formula

In the empty cell, you can input the formula to count cells with text. The Excel formula for this function is "=COUNTIF (range, criteria)" without quotation marks. In this formula, the range is the cells you want to include in your count and the criteria is text.

Is there a formula in Excel to count characters in a cell? ›

To use the function, enter =LEN(cell) in the formula bar, then press Enter on your keyboard.

How do you count the number of cells with a specific character in Excel? ›

Microsoft Excel has a special function to conditionally count cells, the COUNTIF function. All you have to do is to supply the target text string in the criteria argument. Note. The Excel COUNTIF function is case-insensitive, meaning it does not differentiate letter case.

How do you count rows in Excel on a Mac? ›

Just click the column header. The status bar, in the lower-right corner of your Excel window, will tell you the row count.

How do you count how many times a text appears in a cell in Excel? ›

Use the COUNTIF function to count how many times a particular value appears in a range of cells.

How many characters are in an Excel cell? ›

Microsoft Excel has a character limit of 32,767 characters in each cell.

How to count repeated characters in Excel? ›

The easiest way to detect duplicates in Excel is using the COUNTIF function. Depending on whether you want to find duplicate values with or without first occurrences, there's going to be a slight variation in the formula as shown in the following examples.

How to count characters in Excel on a Mac? ›

Count characters in one cell

In the cell, enter =LEN(A2) and press Enter.

What is the len formula in Excel? ›

The LEN formula in Excel returns the number of characters in a given cell. For example, if cell A1 contains the text "Hello World", the formula "=LEN(A1)" would return "11", as there are 11 characters in the text "Hello World".

How to count if a cell contains part of text? ›

Select a blank cell to store the counting result, write the formula =COUNTIF(A1:A16,"*Anne*") into it, and press the Enter key (A1:A16 is the range to count cells, and Anne is the partial string). Note: You can use the formula =COUNTIFS(A1:A16,"*Anne*",A1:A16,"*Green*") to count cells that include both substrings.

Top Articles
Latest Posts
Article information

Author: Madonna Wisozk

Last Updated:

Views: 6016

Rating: 4.8 / 5 (68 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Madonna Wisozk

Birthday: 2001-02-23

Address: 656 Gerhold Summit, Sidneyberg, FL 78179-2512

Phone: +6742282696652

Job: Customer Banking Liaison

Hobby: Flower arranging, Yo-yoing, Tai chi, Rowing, Macrame, Urban exploration, Knife making

Introduction: My name is Madonna Wisozk, I am a attractive, healthy, thoughtful, faithful, open, vivacious, zany person who loves writing and wants to share my knowledge and understanding with you.