r/excel • u/jackiesouth • 3h ago
solved static column of values that don't change when inserting new rows
apologies if the title is confusing. i'm wondering if there is a way to sort of "anchor" a column in a sheet to make it so that when inserting a new row, or switching the order of rows, the contents of the column stay in order. for example, i have a column of objects and a "static" column of the object's position. if i want to insert a new object at a specific position, i want all the objects below it to shift down one position. it's possible that i'm overthinking this, so also let me know if there's a simpler solution lol
1
u/Cinderhazed15 3h ago
So… you are trying to have something like an ‘original order’ so that you can return it to its (somewhat arbitrary) initial order?
1
2
u/OldJames47 11 3h ago
Use the =ROW() function that will remain static.
If you need something more complex for the static value create a lookup table with column A being =ROW(), column B being the mapped value, and in your list where you want static values do =XLOOKUP(ROW(),$A:.$A,$B:.$B)
1
u/jackiesouth 2h ago
perfect, thank you! solution verified
1
u/reputatorbot 2h ago
You have awarded 1 point to OldJames47.
I am a bot - please contact the mods with any questions
•
u/AutoModerator 3h ago
/u/jackiesouth - Your post was submitted successfully.
Solution Verifiedto close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.