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 sort list by specific word(s) in Excel?

Sorting string by values is usually used, but have you ever tried to sort strings based on specific word(s)? For instance, sort a list by the number of a word occurrences as below screenshot shown.

Sort by times of “apple” and “banana” appear
doc sort specific word 1 doc arrow right doc sort specific word 2

Sort list by specific word(s)


Sort list by specific word(s)


If you want to sort a list by a specific word or words, you need to count the number of the words appears first.《》、

1. Select a cell next to the list, type this formula =SUM(--ISNUMBER(SEARCH({"apple","banana"}, A1))), apple and banana are the words you need to sort based on, press Enter key and drag fill handle over the cells which need this formula.
doc sort specific word 3

2. Keep the formula cells selected, and click Data > Sort A to Z, and check Expand the selection in the Sort Warning dialog.
doc sort specific word 4

3. Click Sort, then the list has been sorted by the number of appearance of “apple”and “banana””.
doc sort specific word 5


Advanced Sort -- Blank cells in front (sort data based on criteria, such as sort by text length, sort by last name. sort by absolute value and so on.)

doc sort blank in front

Relative Articels



Excel Productivity Tools

Kutools for Excel - The Best Office Productivity Tool

  • Brings 300 powerful advanced features to Excel, enable you to do smarter, faster and better.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Office Tab - brings tabbed interface to Office, 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!
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.