
Tips.Net > ExcelTips Home > Sorting > Sorting a Range of Cells
Summary: When you sort data in a worksheet, you don’t need to sort everything at once. You can sort just a portion of your data by using the techniques in this tip. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)
Peter asked if it is possible to sort a range of cells, and just that range. In other words, not to sort entire rows or entire columns. The answer is a resounding "yes," Excel allows you to do the sorting rather easily.
As an example, let's assume you want to sort the cells in the range of C10:F40, based on the values in column D. To do this, follow these steps:
You can also sort by using the Sort Ascending or Sort Descending tools on the toolbar or, in Excel 2007, on the Data tab of the ribbon. The steps you follow are just a bit different:
Regardless of the technique you use,. only the range of selected cells are sorted. All other information in the data table remains unaffected.
Tip #2708 applies to Microsoft Excel versions: 97 2000 2002 2003 2007
PivotTables Got You Perplexed? Learn the ins and outs of this powerful data-crunching tool. ExcelTips: PivotTables for the Faint of Heart makes it easy.
PivotTables don't need to be scary or mysterious. Use this powerful tool to analyze your data in ways you didn't know were possible. (more information...)
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site