Sort a list of data

In Excel, you can sort numbers, text, weekdays, months, or items from custom lists that you create. You can also sort by font color, cell color, or icon sets.

When you sort a column, you rearrange the rows of the column. When you sort multiple columns, or a table, you rearrange all the rows based on the contents of a particular column.

Important

If the columns that you want to sort contain both numbers that are stored as numbers and numbers that are stored as text, the numbers will not sort correctly. Numbers that are stored as text are aligned left instead of right. To format selected numbers consistently, on the Home tab, under Number, in the Number Format box, select Text or Number.

Do any of the following:

Sort a column

Sort a list by two or three columns

Sort a list by rows

Create a custom list to sort with

Sort by a custom list

Sort dates or times

Sort by cell color, font color, or icon

Sort one column in a range of cells without affecting the other columns

Sort Chinese text by character pronunciation or character stroke numbers in Excel

Rate this content:
Not helpfulSomewhat helpfulHelpfulVery helpfulSolved my problem 
 
Share your feedback about this topic