Others

Sort Records by Name and Date in Microsoft Access or Excel

Phi Hung VoPhi Hung Vo Nov 25, 2026 869 views

Question details

Sort records by name and then by date within each name in Microsoft Access or Excel.

How to Sort Records by Name and Date in Microsoft Access or Excel
Product
Microsoft Access and Microsoft Excel
Device & OS
not provided
Scenario
A list or table contains name and date fields that need to be sorted using two levels.
Observed behavior
Records should be grouped by name, with dates ordered within each name.
Before you start

Identify the columns or fields containing names and dates. In Excel, check that dates are stored as dates rather than text and that the data range has clear headers.

Solution 1Recommended

Use a Custom Sort in Microsoft Excel

Use this method to sort an Excel list by name first and date second.

1
Select the data

Click any cell in the list, or select the full data range including its headers.

2
Open Custom Sort

Choose Home > Sort & Filter > Custom Sort. Select My data has headers if the first row contains column headings.

3
Set the name level

In Sort by, choose the Name column and select the desired order, such as A to Z.

4
Add the date level

Click Add Level, choose the Date column under Then by, and select Oldest to Newest or Newest to Oldest.

5
Apply the sort

Click OK to sort the complete rows by name and then by date.

Use a Custom Sort in Microsoft Excel
Sort spreadsheet records

Sort Names and Dates in WPS Spreadsheets

Use a multilevel sort in WPS Spreadsheets to group rows by name and order their dates. This option applies to spreadsheet data, not Access database queries.

  1. 1. Open the spreadsheet: Open WPS Spreadsheets and use Open to select the workbook containing the name and date columns.
  2. 2. Select the records: Select the full data range, including headers, so each row stays together.
  3. 3. Set the sort levels: Choose Data > Sort, select the Name column as the first sort key, and add the Date column as the next level.
  4. 4. Apply and save: Choose the order for each level, click OK, and use File > Save to save the sorted workbook.
Sort names and dates using separate levelsCompatible with Microsoft Excel XLS and XLSX filesUse a familiar spreadsheet interfaceOpen and edit spreadsheets for free
microsoft office alternative - wps office

Frequently Asked Questions

How do I sort dates within each name rather than sorting all dates together?

In Excel's Custom Sort dialog, set Name as the first level and Date as the second. In an Access query design grid, place Name to the left of Date and set the Sort row for both fields.

Can I sort names alphabetically and dates from newest to oldest?

Yes. In Excel, choose A to Z for the Name level and Newest to Oldest for the Date level. In Access, choose Ascending for Name and Descending for Date.

Why are my Excel dates sorting in an unexpected order?

The dates may be stored as text rather than actual date values. Check the Date column and convert text entries to dates before applying Home > Sort & Filter > Custom Sort again.

Does WPS Spreadsheets sort Access database queries?

No. Use Microsoft Access to sort an Access query. WPS Spreadsheets can sort the data if it is available in a supported spreadsheet file.