How to Sort Excel Rows Without Separating Names and Addresses
Question details
The user needs to sort a list of names and addresses in a spreadsheet without misaligning or separating the related data in each row.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Organizing a mailing list or database containing names, addresses, cities, states, and ZIP codes that belong together.
- Observed behavior
- Sorting a single column disconnects the related row data, causing names to separate from their corresponding addresses.
Ensure your dataset does not contain completely empty rows or columns, as these will break the contiguous data region and cause Excel to leave parts of your data unsorted.
Select the Entire Data Range for a Custom Sort
Prevent data misalignment by selecting the complete contiguous region of your dataset before applying the sort function.
A contiguous region is a block of cells without any entirely blank rows or columns. Selecting this full range ensures the spreadsheet application treats all related columns as a single cohesive record during the sort.
Click and drag to select the entire contiguous data range, making sure to include every column that belongs to each person (names, addresses, cities, ZIP codes).
Go to the 'Home' tab on the top ribbon menu.
Click on 'Sort & Filter' in the Editing group, and then select 'Custom Sort' from the dropdown menu.
In the Sort dialog box, choose the specific column you want to sort by (e.g., 'Last Name' or 'ZIP Code') under the 'Sort by' dropdown, and click 'OK'.

Easily Sort Complex Data Sets with WPS Spreadsheet
WPS Spreadsheet provides intuitive data management tools that automatically detect connected data ranges, helping you sort names and addresses safely without risking data misalignment.
- 1. Open your file: Launch WPS Office and open your dataset in WPS Spreadsheet.
- 2. Select a cell: Click any single cell inside your contiguous data region (make sure there are no blank rows or columns).
- 3. Access the sort menu: Navigate to the 'Data' tab on the top ribbon and click the 'Sort' button.
- 4. Apply sorting rules: Select the primary column to sort by, add any secondary sorting levels if needed, and click 'OK' to sort the entire row block together.

Frequently Asked Questions
What does 'Expand the selection' mean when sorting?
When you try to sort a single column next to other data, the spreadsheet app asks if you want to 'Expand the selection'. Choosing this option automatically includes the adjacent columns in the sort action, which keeps related information like names and addresses in the same row together.
Why did my names sort but the addresses stayed the same?
This happens if you only selected the name column and chose 'Continue with the current selection' when prompted. To fix this, immediately undo the action (Ctrl+Z), highlight the entire table including both names and addresses, and sort again.
How do I create a contiguous region in my spreadsheet?
A contiguous region is simply a group of cells containing data with no completely blank rows or columns running through it. To create or fix one, simply delete any entirely empty rows or columns that are splitting up your list.




