Log in  \/ 
x
or
x
x
Register  \/ 
x

or

How to highlight cells based on length of text in Excel?

Supposing you are working with a worksheet which has list of text strings, and now, you want to highlight all the cells that the length of the text is greater than 15. This artical, I will talk about some methods for solving this task in Excel.

Highlight cells based on length of text with Conditional Formatting

Select and shade cells based on length of text with a powerful feature


Select and shade cells based on length of text (greather than, less than, between two specific values) in Excel

Kutools for Excel's Super Find feature supports to find all specific cells based on text, value, dates and cell formattings as you need. After selecting the cells, you can format, copy or delete them as you need. Click to download Kutools for Excel!

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!


Highlight cells based on length of text with Conditional Formatting

With a simple LEN function in Conditional Formatting feature, you can quickly highlight the cells which text length in a certain characters.

1. Select the data range that you want to highlight the cells.

2. Click Home > Conditional Formatting > New Rule, see screenshot:

3. In the New Formatting Rule dialog, click Use a formula to determine which cells to format option, and then enter this formula =LEN(A2)>15 into the Format values where this formula is true text box, see screenshot:

Note: In the above formula, A2 is the first cell which contains the value, and >15 is the criteria that you want to highlight cells based on, in this case the text length is greater than 15 characters, you can change them as you need.

4. Then click Format button, and in the Format Cells dialog, choose one color you like under Fill tab, see screenshot:

5. Then click OK > OK to close the dialogs, and all the cells which character length is greater than 15 are highlighted with your selected color at once.

Note: The Conditional Formatting tool is a dynamic function, if you change the length of the text string, the color will be adjusted automatically as well.


Select and shade cells based on length of text with a powerful feature

If you have Kutools for Excel, with its Super Find function, you can quickly select the cells based on various criteria as you need.

Tips:To apply this Super Find feature, firstly, you should download the Kutools for Excel, and then apply the feature quickly and easily.

After installing Kutools for Excel, please do as this:

1. Select the data range that you want to use, and then click Kutools > Find > Super Find, see screenshot:

2. In the opened Super Find pane, please do with the following operations:

3. After finishing the settings, click Select button, and all the cells meet the criteria you created have been selected, then you can format the selected cell as you need.

Download and free trial Kutools for Excel Now!


More relative articles:

  • Highlight / conditional formatting cells with formulas in Excel
  • Supposing you have a large worksheet which contains both constants and formulas, and now you want to know the location of all the formula cells. Of course, you can select all the formulas easily and quickly by using Go To Special function. But if your data or formulas need to be changed now and then, you must apply this function repeatedly.
  • Highlight Duplicate Values In Different Colors In Excel
  • In Excel, we can easily highlight the duplicate values in a column with one color by using the Conditional Formatting, but, sometimes, we need to highlight the duplicate values in different colors to recognize the duplicates quickly and easily as following screenshot shown. How could you solve this task in Excel?
  • Highlight Rows Based On Drop Down List In Excel
  • This article will talk about how to highlight rows based on drop down list, take the following screenshot for example, when I select “In Progress” from the drop down list in column E, I need to highlight this row with red color, when I select “Completed” from the drop down list, I need to highlight this row with blue color, and when I select “Not Started”, a green color will be used to highlight the row.
  • Highlight The Cells Linked By Hyperlinks In Excel
  • If there are some hyperlinks linked to the same worksheet or workbook, now, I need the destination cell of the clicked hyperlink to be filled in a color to stand out the linked cell, when another hyperlink is clicked, the first goes back to normal as below screenshot shown. Is this possible to be solved in Excel?
  • Auto-Highlight Row And Column Of Active Cell In Excel
  • When you view a large worksheet with numerous data, you may want to highlight the selected cell’ row and column so that you can easily and intuitively read the data to avoid misreading them. Here, I can introduce you some interesting tricks to highlight the row and column of the current cell, when the cell is changed, the column and row of the new cell are highlighted automatically.

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Sandre · 10 months ago
    Hello , i need some help please. Is there a way to configurate a Cell to highlight after the 41st character? i would be able to write more than 40 characters...but there would be a highlight in the remaining text... Thanks for your help!
  • To post as a guest, your comment is unpublished.
    Silvia · 10 months ago
    Hello , can someone help me , please ? I need to configurate a Cell in a way that if it has more than 40 characters , it would highlight starting on the 41st character ...:) any idea how? thank you!
  • To post as a guest, your comment is unpublished.
    Chirag Doshi · 1 years ago
    Hi,

    Please can you help me in highlighting the first 6 characters in the cell.

    eg: In the below list, I would like to highlight ABC123, ABC234, ABC345

    ABC123-a80en
    ABC234-a80en
    ABC345-x80en
  • To post as a guest, your comment is unpublished.
    Herman Acker · 2 years ago
    In the Dutch version of Office, LEN did not work, but LENGTE (Dutch for length) dit the trick...

    Something similar might be the case for other languages as well.
  • To post as a guest, your comment is unpublished.
    Lori · 3 years ago
    I tried to use the conditional formatting formula to highlight cells based on length of text, but am not getting the desired results. Here is my scenario: I have a spreadsheet and in one column, every entry consists of 5 "characters". Some of the entries contain 5 letters and some contain 4 letters with a "blank" space at the end. This blank space is being counted as a character. I'm trying to format to highlight all entries with 4 letters and a blank space. Is this possible? Thank you in advance.
    • To post as a guest, your comment is unpublished.
      KZ · 2 years ago
      you can use len(trim(cell containg value)) this will give you the exact count of characters in a cell then you can format the cell you see with different amount of characters.
    • To post as a guest, your comment is unpublished.
      radgar · 2 years ago
      you'll need to strip the string of its 'padding' spaces. Try a formula like =Len(Trim(A1))<>4