One of technology's blessings is the ability to put a lot of data into alphabetical or numerical order with the click of a mouse. Excel makes this easy to do, perhaps too easy. There are dangers in sorting data without thinking carefully about what you have selected to sort.
Separating Data: If you have related data
in different rows and you sort just some cells, you may separate parts that belong together.
Mr. Green's phone number may wind up next to Miss Featherstone's name! Mr. Cartwright's
Amount Due might wind up as part of Mr. Garcia's bill.
Changing Formulas: When you move cells around, formulas that use those cells will change to match. That's usually very helpful. If you move the cell with the formula in it, the formula will change, too. That can be a total disaster!
Home tab | Data tab | Right Click - Context menu |
![]() |
![]() |
![]() |
![]() |
Step-by-Step: Sort |
![]() |
What you will learn: | to sort cells to sort rows why sorting cells containing formulas is a bad idea |
Start with: budget-2010-Lastname-Firstname.xlsx at Budget sheet from previous lesson
You will not be saving any changes in this lesson but your instructor may want you to capture some screen shots to prove you did the lesson. Ask.
Most of the categories in budget-2010-Lastname-Firstname.xlsx are already sorted into alphabetical order. But you can still play with sorting a little bit. Sorting cells is a problem if cells in a row must stay together.
You get a friendly warning and an opportunity to change your selection.
No message: Sometimes this
message does not appear, even when you are making a big mistake with
your sorting.
Alternate Method: On the Home tab, click the button Sort & Filter to drop its menu and then on Sort A to Z.
Source of Error: When you sorted, the original cell B44 (Total Inflows) moved down one row to B45. The cell references in the formula changed by 1 also! That's what relative cell references do. So B7 became B8 and B13 became B14. But you did not move the cells that the formula refers to. You have a major error here.
Sorting Cells
with Formulas: Sort rows that have formulas only if ALL the cells used in each formula are on the same ROW as the formula. Otherwise, after sorting, formulas will not refer to the correct cells anymore.
Disaster!!
Do your sorting BEFORE creating formulas.
Do not save changes.