Open Custom Sort Dialog Box: Quick Guide
- Average speed
- km/h
- Result
- Finish time
- 50 min
- You entered
- Distance
- 10 km
- You entered
To open the custom sort dialog box in most spreadsheet and table applications, select your data range, then go to the Data tab and click Sort (or Custom Sort). This opens the dialog where you can add multiple sort levels, choose specific columns, and set the order for each — the key difference from a basic one-click sort.
Formula
The custom sort dialog itself doesn’t have a formula — it’s a feature of spreadsheet and database programs. However, the related calculation on this page is average pace and average speed from a finish time and distance:
- Average pace (min/km) = Finish time (minutes) ÷ Distance (km)
- Average speed (km/h) = Distance (km) ÷ (Finish time (minutes) ÷ 60)
Variables:
- t = finish time in minutes (input)
- d = distance in kilometers (input)
Worked Example
Using the default values: finish time = 50 minutes, distance = 10 km.
- Average pace = 50 ÷ 10 = 5.00 min/km
- Average speed = 10 ÷ (50 ÷ 60) = 10 ÷ 0.8333 = 12.00 km/h
The calculator returns a pace of 5.00 min/km and a speed of 12.00 km/h.
How to Open the Custom Sort Dialog in Common Apps
The exact steps vary by application, but the general pattern is similar:
- Microsoft Excel: Select your data → Data tab → Sort (or right-click → Sort → Custom Sort).
- Google Sheets: Select your data → Data menu → Sort range → Advanced range sorting options.
- LibreOffice Calc: Select your data → Data → Sort → check Options for custom settings.
- Apple Numbers: Select your data → Table menu → Sort Ascending/Descending → Custom Sort.
In each case, the dialog lets you add multiple levels (e.g., sort by “Department� then by “Salary�) and choose whether each column sorts A→Z, Z→A, or by a custom list (like “High, Medium, Low�).
Why Use a Custom Sort Instead of a Basic Sort?
A basic sort (one click on a column header) only sorts by that single column. A custom sort is essential when:
- You need to sort by two or more columns (e.g., first by “Country�, then by “City�).
- You want a non-alphabetical order (e.g., “Small, Medium, Large� or “Q1, Q2, Q3, Q4�).
- You have a header row that must not be sorted along with the data.
- You need to sort by cell color, font color, or icon (in Excel).
For example, a sales report might need to be sorted by “Region� (A→Z) and within each region by “Revenue� (largest to smallest). A basic sort would only do one of those; a custom sort does both.
Common Problems and How to Avoid Them
- Sorting the wrong range: If you select only one column, the rest of the row won’t follow. Always select the entire data block (or ensure the app detects it).
- Header row being sorted as data: Check the “My data has headers� box in the dialog.
- Mixed data types in one column: Numbers stored as text will sort incorrectly. Convert them to numbers first.
- Hidden rows or columns: Some apps exclude hidden rows from sorting, which can lead to confusing results.
- Custom lists not applying: In Excel, you must define the custom list under File → Options → Advanced → Edit Custom Lists before using it in the sort.
How to Choose the Right Sort Order
Think about the hierarchy of your data. The first sort level is the “most important� grouping; subsequent levels refine within that group. For instance:
- Level 1: “Department� (A→Z)
- Level 2: “Last Name� (A→Z)
- Level 3: “First Name� (A→Z)
This creates a phone-book style listing. If you need a custom order like “High, Medium, Low�, you must set that up in the custom list options — alphabetical sorting would put “High� before “Low� (wrong priority).
Safety and Accuracy Notes
Sorting is not destructive to your data, but it can be if you don’t select the full range. Always make a backup copy of the worksheet before performing a complex sort, especially if you have formulas that reference cells. Also, be aware that sorting a column independently of its row will permanently scramble the data — there is no “undo� after you close the file.
Frequently Asked Questions
Why is the “Custom Sort� option greyed out in Excel?
This usually happens when your worksheet is protected or you’re in a shared workbook. Unprotect the sheet under Review → Unprotect Sheet, or remove the workbook sharing, then try again.
Can I sort by more than one column in Google Sheets?
Yes. Use Data → Sort range → Advanced range sorting options, then click “Add another sort column�. You can add up to three columns in the standard interface.
How do I sort by a custom list like “High, Medium, Low� in Excel?
First, define the list: File → Options → Advanced → Edit Custom Lists, then import the list. After that, open the Custom Sort dialog, choose the column, and under “Order� select “Custom List� and pick your list.
Does sorting affect formulas in my spreadsheet?
Yes, it can. If a formula references specific cells (e.g., =A1), sorting will move the values, so the formula may point to the wrong cell. Use absolute references or structured references (like table names) to avoid this.
What’s the difference between “Sort A to Z� and “Custom Sort�?
“Sort A to Z� is a one-click alphabetical sort on a single column. “Custom Sort� opens a dialog where you can add multiple levels, choose different orders per column, and use custom lists.
Can I sort by cell color in Excel?
Yes. In the Custom Sort dialog, under “Sort On�, choose “Cell Color� or “Font Color�, then select the color and the order (e.g., “On Top�). This is useful for visually organizing data.
Related
Formula used
in t | Finish time | min | 50 | 0 in d | Distance | km | 10 | 0 out pace | Average pace | min/km | t / d | 2 out speed | Average speed | km/h | d / (t / 60) | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.