Excel Formulas to Count Line Breaks in A Cell ~ A Complete Guide!!
Tags: excelformula, excelformulas
Published: 2021-06-18 02:34:41

---
title: Excel Formulas to Count Line Breaks in A Cell ~ A Complete Guide!!
published: true
date: 2021-06-05 05:11:39 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-count-line-breaks-in-a-cell/
---

Have you ever tried to **count the number of line breaks in a certain cell**? How can you calculate them in Excel Easily? Today, I will introduce some quick tricks to achieve them. Let’s get into this article!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

[![Count line breaks in a cell](https://geekexcel.com/wp-content/uploads/2021/06/Count-line-breaks-in-a-cell.png)](https://geekexcel.com/excel-formulas-to-count-line-breaks-in-a-cell/count-line-breaks-in-a-cell/#main)<figcaption id="caption-attachment-46086">Count line breaks in a cell</figcaption>

## General Formula:

- You can use the below formula to count total lines in a cell.

**=[LEN](https://geekexcel.com/how-to-use-len-function-in-microsoft-excel-365/)(A1)-LEN([SUBSTITUTE](https://geekexcel.com/how-to-use-substitute-function-in-microsoft-excel-2013/)(A1,[CHAR](https://geekexcel.com/how-to-use-char-function-in-microsoft-excel-365/)(10),””))+1**

## Syntax Explanations:

- **LEN** – In Excel, the **[LEN function](https://geekexcel.com/how-to-use-len-function-in-microsoft-excel-365/)** is used to find the length of the text string.
- **SUBSTITUTE** – This function helps to replace existing text with new text in a text string when you want to replace text based on its content, not position. Read more on the [**SUBSTITUTE function**](https://geekexcel.com/how-to-use-substitute-function-in-microsoft-excel-2013/).
- **CHAR** – It helps to get a character by a specified number. Read more on the **[CHAR function](https://geekexcel.com/how-to-use-char-function-in-microsoft-excel-365/)**.
- **A1** – It represents the input value.
- **Comma symbol (,)** – It is a separator that helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.
- **Plus operator (+)** – This symbol is used to add the values.
- **Minus Operator (-)** – This symbol will help to subtract any two values.

## Practical Example:

Let’s consider the below example image.

- Here we will enter the input values in **Column B**.
- Now we need to count the total lines in a cell.

![Input Range](https://geekexcel.com/wp-content/uploads/2021/06/Input-Range-4.png)<figcaption id="caption-attachment-46088">Input Range</figcaption>

- Select any cell and type the above-given formula.

![Enter the formula](https://geekexcel.com/wp-content/uploads/2021/06/Enter-the-formula-15.png)<figcaption id="caption-attachment-46087">Enter the formula</figcaption>

- Finally, press the **ENTER**  key to get the result out, if you need, drag the fill handle over range to apply the formula.

![Result](https://geekexcel.com/wp-content/uploads/2021/06/Result-14.png)<figcaption id="caption-attachment-46085">Result</figcaption>

## Bottom-Line:

![🤞](https://s.w.org/images/core/emoji/13.0.1/72x72/1f91e.png) Hope you like this article on how to **count the line breaks in Excel**. Let me know if you have any **doubts** regarding this article or any other Excel/VBA topic.

Thank you so much for visiting  **[Geek Excel](https://geekexcel.com/)!! **If you want to learn more helpful formulas, check out [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!! **

### Read Ahead:

- **[Excel Formulas to Convert the String into Array ~ Quick Tricks!!](https://geekexcel.com/excel-formulas-to-convert-the-string-into-array/)**
- **[How to Validate Only Numbers in Cell in Excel Office 365?](https://geekexcel.com/how-to-validate-only-numbers-in-cell-in-excel-office-365/)**
- **[Excel Formulas to Count the Specific Keywords in the Cell ~ Easily!!](https://geekexcel.com/excel-formulas-to-count-the-specific-keywords-in-the-cell/)**
- **[How to Find the Last Column of Data in Excel Office 365?](https://geekexcel.com/how-to-find-the-last-column-of-data-in-excel-office-365/)**