Worksheet data needs to move with row when Data->Sort is used on another worksheet

SpencerRichman

New Member
Joined
Feb 15, 2013
Messages
33
Office Version
  1. 2021
Platform
  1. Windows
I have an employee tracking workbook with two worksheets. The first worksheet is called “Staff” contains employee information like this:
1685205579464.png



And then the second worksheet, called “Staff Reviews” is used to track regular reviews and looks like this:
1685205590181.png


In the second worksheet, column A’s formula is simply “=Staff!A3”, then A4, A5, etc.

Column B uses Index, Match to populate the start date.

But the rest of the columns in the Staff Reviews worksheet is comprised of data (i.e. columns E & I) that I manually input and formulas (i.e. columns D & H) based on column B’s date.

My QUESTION is this… when we add new employees we generally just add their data to the bottom blank row in the Staff worksheet. But then once in a while when we’ve added quite a few employees we use the Data->Sort function on the Staff worksheet to reorder them all in alphabetical order. On the Staff Review page, this changes the order of the data in columns A and B … but then the data in columns D through I are no longer paired with the correct employee name because that data does not get reordered to ‘stay’ with the right employee. How can I get the rest of the data in the Staff Review worksheet to move with their respective employee names when the employee names move due to the data sort on the Staff worksheet?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,215,137
Messages
6,123,253
Members
449,093
Latest member
Vincent Khandagale

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