EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Excel Tips LEN Formula in Excel
Secondary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Basic Excel Formulas
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Excel Drop Down List
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup and Reference Functions in Excel (35+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course

LEN Formula in Excel

By Jeevan A YJeevan A Y

LEN Formula in Excel

Excel LEN Formula (Table of Contents)

  • Introduction to LEN Formula in Excel
  • How to Use LEN Formula in Excel?

Introduction to LEN Formula in Excel

LEN function categorized under text functions in excel. LEN is used to count the number of characters in a text or string. The length function is used to calculate the length of a string, which contains special characters, space, numbers, letters, etc. This will count the characters in a string, including space or special characters. This always returns a number as output. The string can be directly mentioned in the function by expressing the string within a double quotation or refereeing a cell. If the cell contains the text or string in which you want to find the count of characters, then the cell address can be used with the LEN function.

The LEN indicates the short form of length. This is text function returns the number of characters included in a string. The LEN function works as a count function to count the characters in a text. This will count the space, numbers, special characters, characters, etc.

Function for LEN: 

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

LEN function returns the number of characters in a text string.

LEN Formula Syntax

LEN Formula:

LEN Formula in Excel Syntax 

  • The text is a mandatory argument.
  • The text can be the string you want to count the number of characters or the cell reference, which consists of the text string you want to count.

How to Use LEN Formula in Excel?

LEN Formula in Excel is very simple and easy. Let’s understand how to use the LEN Formula in Excel with some examples.

You can download this LEN Formula Excel Template here – LEN Formula Excel Template

Example #1 – Find Out the Length of Text

In the given example, let’s find out the length of text given the column “Name of companies”.

LEN Formula in Excel 1-1

To get the length of each name to apply the formula =LEN(A2) in cell B2.

LEN Formula in Excel 1-2

After applying the Len formula, the result is shown below.

All in One Excel VBA Bundle(120+ Courses, 30+ Projects)
Basic ExcelAdvanced ExcelVBA & MacrosExcel Dashboards
Pivot TablesStatistical FunctionsFinancial FunctionsCharts & Graphs
Price
View Courses
120+ Online Courses | 30+ Projects | 500+ Hours | Verifiable Certificates | Lifetime Access
4.9 (64,813 ratings)

LEN Formula in Excel 1-3

Drag the same formula for the rest of the cells.

LEN Formula in Excel 1-4

Example #2 – Calculate Length in a Text with Different Characters

Below is an example of how the length is calculated in a text with different characters.

LEN Formula in Excel 2-1

The length is detected as 2 since space exists before the character given.

Text with Different Characters 2-2

The Text consists of only two characters, and the Length is returned as 2.

Text with Different Characters 2-3

The Text included a special character and is counted along with the text. While checking, you can see there found only two characters can be seen in the cell, but the Length is detected as 15. This happened because of a couple of leading spaces and spaces between the numbers.

Text with Different Characters 2-4

Apply the formula in cell C2.

Text with Different Characters 2-5

Similarly, apply the same formula in Cell C3.

Text with Different Characters 2-6

The Length for each text is shown, and in the first text, a special character is included and is counted with the length formula.

Text with Different Characters 2-7

The LEN Formula does not count formatting Length; here, the count of 100 only calculated.

Example #3 – Using Double Quotation in Len Function

You can directly give the string to the LEN function, where the string is mentioned in the double quotation.

=LEN(“This is len function”)

 LEN Formula in Excel Example 3-1

The result will be as given below.

LEN Formula in Excel Example 3-2

Example #4 – Count the Characters Excluding the Extra Spaces

We have the details of the order numbers. And when we apply the Excel LEN formula, it returned the number of characters. But it included the unwanted spaces between the numbers.

Apply the LEN formula in Cell B2.

LEN Formula Example 4-1

The result will be as given below.

LEN Formula Example 4-2

Drag the Cell B2. The number of characters returned. The numbers included the space between numbers, so the length is not unique.

Example 4-5

To get the number of characters after avoiding these extra spaces, let’s use the substitute function along with the Excel LEN Formula. Select the Cell C2 and apply the formula =LEN(SUBSTITUTE(A2,” “,””))

len formula 4-3

The result will be as given below.

len formula 4-4

Drag the formula to the rest of the cell. SUBSTITUTE(A2,” “,”)) and then operate with the LEN formula. The function ‘SUBSTITUTE(A2,” ”,””)’ will replace the spaces with null. The formula will work as string or text given in C2; space will be replaced by null in C2.

len excel

And the formula LEN (SUBSTITUTE(A2,” “,””)) will find the number of characters in C2 after replacing the space. When the unwanted spaces are removed, the number of characters returned the same value.

Things to Remember About LEN Formula in Excel

  • The LEN function will always return a number. LEN function can be used by combining with other functions in Excel.
  • The trim function can be used with the LEN function to return the number of characters after removing the leading and trailing spaces.
  • LEN will accept the cell reference or the text directly as an argument and return the number of characters.
  • LEN function calculates the number of characters, including spaces, special characters, numbers, and text.
  • If the cell is empty, the LEN function returns ‘0’. LEN does not count the formatting length.
  • The substitute function will replace the space between the numbers.

Recommended Articles

This has been a guide to LEN Formula in Excel. Here we discuss How to use LEN Formula in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. LEN Function in Excel
  2. VBA Length of String
  3. Text Formula In Excel
  4. Write Formula in Excel
Popular Course in this category
Excel Training (23 Courses, 9+ Projects)
  23 Online Courses |  9 Hands-on Projects |  110+ Hours |  Verifiable Certificate of Completion
4.9
Price

View Course

Related Courses

Excel Data Analysis Training (17 Courses, 8+ Projects)4.9
Excel for Finance Training (18 Courses, 7+ Projects)4.8
0 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download LEN Formula Excel Template

EDUCBA

Download LEN Formula Excel Template

EDUCBA

डाउनलोड LEN Formula Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more