Binding rows outside of an array to a cell value within an array.
I have a sheet (Sheet 1) that's got a list of items being used as a reference for a second sheet (Sheet 2) through the FILTER function creating a dynamic array. Sheet 2 contains the data from Sheet 1 where I have a reference column that contains a Y for any row that should be included in Sheet 2.
On Sheet 2 I have adjacent rows that contain data relevant to the filtered list, however as the dynamic array expands or contracts, the data in the rows next to them do not expand and contract with the list. This leads to the cell data on Sheet 2 not matching the intended cell in column A.
An example. Before adjusting the dynamic array: https://imgur.com/TWvL8bx
And after: https://imgur.com/P43ZAHI
What I need to get away from is the offset that applies for the data in columns B and C when new things are added/removed from column A. The behavior I would expect is that there's a new blank row for UNIT 10.
Is there a way to bind the data in the rows to the cell value contained in column A and allow them to index as the dynamic array contracts and expands??
Posted Oct 28, 2022, 10:56 PM UTC · edited
So, in short, you have one dynamic column and then you're entering manual information beside it in the next two columns, right?
Yeah, there is no regular way to keep the manual columns attached to the original rows as far as I know.
You can't have something both dynamic and static at the same time. It's one or the other and mixing them is asking for trouble.
Those two extra columns need to be with the original table you're pulling from instead so that they are always in the correct row or something like that.
SOLUTION VERIFIED!
You have awarded 1 point to GanonTEK
^(I am a bot - please contact the mods with any questions. | ) ^(Keep me alive)
You're right, the other columns are static and have manual information added. I was hoping to not bloat the other sheet with a ton more columns as this is unrelated info. Maybe I'll create a separate master sheet with the extra cells and work off it as a reference?
An option you could do, where you do keep it separate, is have another column beside the filtered one and copy and paste the filtered names over to that new column. Highlight the first two columns and turn on conditional formatting for duplicates. Now, when you add more data you can see what is missing as it wont be highlighted in the filtered list and you can copy and paste any new name into the next column and type other info beside that as required.
I made a file to show you where it filters the names based on a money amount over to sheet 2, in there I put a month beside the name and that month gets XLOOKUPed and put back in the 1st table beside the correct name.
https://www.dropbox.com/s/47gselj4z48fo55/Reddit%20-%20Static%20and%20Dynamic.xlsx?dl=0
This is great, I appreciate your time and help. I will get a chance to test this out on Monday!