Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Subtotal function in Excel
  • How to create a Histogram in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • Number and Text Filters Examples in Excel
  • How to create Gauge Chart in Excel

References

  • Perform case-sensitive Lookup in Excel
  • How to get first row number in range in Excel
  • To count total rows in a range in Excel
  • How to use Excel ROW Function
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation

Data Validations

  • Excel Data validation must contain specific text
  • Excel Data validation allow weekday only
  • Excel Data validation allow uppercase only
  • Excel Data validation date in specific year
  • Excel Data validation specific characters only

How to Count Number of Characters in a Cell or Range of Cells in Excel

by

Learn how to count the number of characters in a cell or range of cells and how to count how many times a specific character occurs in a cell or range of cells.

1. The LEN function in Excel counts the number of characters in a cell.

Explanation: the LEN function counts 2 numbers, 1 space and 6 letters.

2. You can combine the SUM function and the LEN function to count the number of characters in a range of cells.

Note: as you can imagine, this formula can get quite long.

3. The array formula below counts the number of characters in a range of cells.

Note: finish an array formula by pressing CTRL + SHIFT + ENTER. Excel adds the curly braces {}. The array constant {9;4;6;5} is used as an argument for the SUM function, giving a result of 24. Maybe this is one step too far for you at this stage, but it shows you one of the many other powerful features Excel has to offer.

4. Use the LEN function and the SUBSTITUTE function to count how many times a specific character (in this example, the character a) occurs in a cell.

Explanation: the SUBSTITUTE function replaces the character a (second argument) with an empty string (third argument). LEN(SUBSTITUTE(A1,”a”,””)) equals 8 (the length of the string without the character a). If we subtract this number from 9 (total number of characters in cell A1), we get the number of occurrences of the character a in cell A1.

5. The array formula below counts how many times a specific character (in this example, the character a) occurs in a range of cells.

Note: finish an array formula by pressing CTRL + SHIFT + ENTER. Excel adds the curly braces {}. The array constant {1;1;2;1} is used as an argument for the SUM function, giving a result of 5. The SUBSTITUTE function is case-sensitive. The A in Alaska is not counted.

6. The array formula below counts both lower and upper case occurrences of a specific character (in this example, the character a).


Explanation: The LOWER function converts all letters to lowercase first.

Post navigation

Previous Post:

VLOOKUP without #N/A error in Excel

Next Post:

Manipulating text strings using Left, Mid, Right, Len, Substitute 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

Logical Functions

  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • Return blank if in Excel

Date Time

  • How to calculate Day of the Year in Excel
  • DATEVALUE function: Description, Usage, Syntax, Examples and Explanation
  • NETWORKDAYS.INTL function: Description, Usage, Syntax, Examples and Explanation
  • Get last weekday in month in Excel
  • How to determine year is a leap year in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • Group times into unequal buckets in Excel
  • Map inputs to arbitrary values in Excel
  • Group arbitrary text values in Excel
  • How to randomly assign people to groups in Excel

General

  • How to get original price from percentage discount in Excel
  • List sheet names with formula in Excel
  • How to calculate percent of students absent in Excel
  • Customize Ribbon In Excel
  • How to calculate percentage of total in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning