Locking Rows

Coda

New Member
Joined
Mar 30, 2022
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
Hello everyone!

I have a spreadsheet of clients, each with a unique ID and some other information about themselves.

When I sort by any of the fields (name, company number etc.), It moves them around to sort them, but the IDs don't move with them. So for example let's say i have:

Id: 01 Name: Eric Cartman
Id: 02 Name: Andrea Cartman

And I sort by name, it becomes:

Id: 01 Name: Andrea Cartman
Id: 02 Name: Eric Cartman

When I sort something, I want the entire row to shift, along with the ID.
Any ideas?

Cheers!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi,

If you're sorting by Column, make sure "Expand the selection" is checked.
 
Upvote 0
Hi,

If you're sorting by Column, make sure "Expand the selection" is checked.
Thank you for your reply,

Is there a way to "lock" this? I've got other people working on this spreadsheet and if they forget to do it, it will be quite the hassle to fix.
 
Upvote 0
For my Excel 2016, the "Expand the selection" is chosen by Default, so user would just click "Sort",
In order to change this setting, user would actually need to manually change it to "Continue with current selection".
And Excel would revert Back to "Expand the selection" by default next time.
 
Upvote 0

Forum statistics

Threads
1,214,998
Messages
6,122,638
Members
449,093
Latest member
Ahmad123098

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top