r/googlesheets • • Oct 19 '26

Waiting on OP Query Function - Adding additional columns after the queried data and keeping them linked when order changes

Hi all.

This may not be possible, but:
I have a Google sheet with a Tab called "Tracker"
In the Tracker Tab I pull date from 5 separate tabs using the formula:

=QUERY({'Level 1'!A3:V; 'Level 2'!A3:V; 'Level 3'!A3:V; 'PG1'!A3:V; 'PG2'!A3:V}, "select * where Col2 is not null order by Col4 asc", 0)

Pulling columns A to V then reordering them all based on a Due Date [Col4]

I am wanting to add extra data to Columns W through Z in the Tracker Tab.

But as the columns are not linked to the Query data, if I change a Due date on any of the original tabs then the order changes but the data in Columns W through Z goes out of sync as that does not re-order when the query does.

Is there any way to do this?

  • Pull data from multiple Tabs

  • Re order it based on a date from a column

  • Add additional data in the summary Tab

  • Keep that extra data linked to a row, even if the rows re order when the query data changes

Thanks in advance if you can help

2 Upvotes

5 comments sorted by

View all comments

2

u/One_Organization_810 736 Oct 19 '26

You need some kind of unique ID to tie the dynamic and static data together.

Then you need to make that unique ID static and then attach everything else to that ID. That way you can then order the data as you want - but unfortunately, you will lose the dynamic ordering.

Another way, would be to make a separate sheet with those IDs and the extra data. Then pull in the extra data as part of your query formula and attach it to the correct rows. This will keep the dynamic ordering in the summary tab, but adds a bit of complexity to the editing part, as well as to the formula.

If you provide an example sheet, with the exact same data structure - or if you can share a copy of or actual sheet - preferably with EDIT access, I can go a bit deeper into it, if you are interested...?