Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to filter cells by length of text in Excel?

Sometimes you may need to filter cells by length of text in Excel. For example, you need to filter text of 6 characters long. This article will show you the detailed steps about how to filter cells by given text length (the number of characters).

Filter cells by given text length with Filter command

Filter cells by given text length with Len function

Quickly filter cells by text length with Kutools for Excel


Easily sort cells by text length in Excel

Click Enterprise > Advanced Sort to enable the Advanced Sort feature, and easily sort range by Text Length in a column in Excel.

Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 60 days. Read More      Download the free trial now



Filter cells by given text length with Filter command

You can filter cells by given text length (the number of characters) with Text Filter’s Custom Filter function. Please process as follows:

Step 1: Select the Column B, and click the Filter button under Data tab.

Step 2: Click the Filter Arrow , and move mouse over the Text Filters item, and choose the Custom Filter item. See the following screen shot:

Step 3: In the popping up Custom AutoFilter dialog box, specify the criteria as Equals, and enter 6 question marks to indicate the length.

If you want to filter cells which contain 6 characters in their contents, please enter 6 question marks (?) in as following screenshot.

Step 4: Click OK.

Then it filters cells with 6 characters in Column B.


Filter cells by given text length with Len function

Sometime you may want to filter text of many characters long, it is not convenient to type exact number of question marks. So it goes another tip: count the characters of text firstly, and then filter.

Step 1: In a help column, says Column D, enter the formula of =LEN(B2).

The Len function will count the characters in specific cell, and returns the characters length.

Step 2: Select the Column D, click the Home >> Fill >> Down to copy this formula to the entire column.

Step 3: Select the Column D, and click the Filter button under Data tab.

Step 4: Click the Filter Arrow , uncheck the Select All item, check the corresponding number of characters, says 6, and click OK.

Now it filters the Number 6 in the Column B, and shows the cells in Column B with only 6 characters long. See the following screen shot:


Filter cells by text length with Kutools for Excel

This section will introduce the Super Filter utility of Kutools for Excel. With this utility, you can easily filter cells by text length in Excel. Please do as follows.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.

1. Select the range you need to filter by length, and then click Enterprise > Super Filter to activate the Super Filter pane. See screenshot:

2. In the Super Filter dialog box, do the following settings:

A: Specify a column you want to filter by text length (here we select column B with header Name displaying).

B: Select Text in the second drop-down list.

C: In the third dro-down list, select Length is, Length is greater than or length is less than as you need.

D: Enter the length number into the fourth drop-down list. For example, we want to filter all texts with 10 characters (including spaces), so enter number 10.

E: Click the Filter button to start filtering.

Now all texts with specified lengths are filtered immediately. See screenshot:

Notes:

1. You can click the Clear button to clear to filtering.

2. You can filter with multiple filter conditions with this Super Filter utility.

Tip.If you want to have a free trial of this utility, please go to download the software freely first, and then go to apply the operation according above steps.


Quickly filter cells by text length with Kutools for Excel

Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 60 days. Download the free trial now!


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.