Abstract
Sort a cell range by one criterion in ascending, descending numeric order, ascending, descending alphabetic order
Sorting a range of cells is a straight forward process involving the following steps:
Highlight the range of cells to be sorted.
->
Set the criteria in the Sort dialogue.
Click OK.
![]() |
Important |
|---|---|
|
Select the entire block to be sorted. If columns are omitted, the resulting data could become a meaningless jumble. |
|
Suppose we have the following spreadsheet displayed on our screen. We wish to sort the data on this in the order of the points with the lowest at the top. Here we wish to sort according to values, hence this is a numeric sort.
![]() |
In this case, the data is located in the range A4:F36. We call each row between columns A and F a record and each column a field.
Highlight the range A4:F36
If we omitted any rows, the records would not be sorted. If we omitted any columns, the values in the omitted fields would be associated with the wrong records.
->
![]() |
In the Sort by window select Column F. This is the column that contains the values that we wish to sort according to.
Check the adjacent Ascending radio button.
Click OK.
![]() |
If you wished to sort the data by points in descending order, that is with the highest number first, you would have checked the Descending radio button.
Suppose we had wished to sort the data in the previous example in alphabetic order of name you would proceed as follows:
Highlight A4:F36
->
Select Column A in the Sort by window. This is the column containing the name field.
Check the Ascending radio button.
If you wished to sort with the names sorted in reverse order from Z to A, you would check the Descending radio button.
Click OK.
![]() |
If you look at the above screen you will see that there are two names Andiswa. The first has higher points than the second. You can sort on multiple criteria so that, where there are multiple occurrences of the first sort criteria, these can then be sorted according to the second criteria. The following screen shows how to do this in the Sort dialogue.
![]() |