Autopopulating Key Field

katekoz

Board Regular
Joined
Jan 20, 2020
Messages
91
Office Version
  1. 2016
Platform
  1. Windows
Hello - I need an out-of-the-box solution for this one! :)

I have a template that's set up as a table with columns A through T. The user simply copies their data set from a report result, then pastes that into cell A2. The table then expands to include their data set. The users want to do a lot of sorting, but then return the data set to its original order, so I need to add a Key field. I'd like a key field that auto-populates in column T when the table expands with the data set. The problem is, if I use a function (such as =Row-1 or =Cell Above Value + 1), the values will always stay 1,2,3,+, regardless of the sort, as the formula is tied to the cell's location, rather than the data set. Hence, the field isn't a key field at all.

Does anyone have an idea of how to create this key field that will auto-populate itself but still sort with the data? I'm at a loss!

*No macros, please*
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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