Lookups across 30 tabs or one QUERY over stacked IMPORTRANGE for a 50k row tracker QUERY
One tab per site, 30 sites, about 1700 rows each and growing monthly. The summary tab currently does VLOOKUP into each tab by name, which means 30 formulas per metric and a rebuild every time a site opens. The alternative is stacking everything with IMPORTRANGE into one long table and running QUERY over it. Only two of us maintain this and neither of us writes code. Which way scales better in practice?
@csv_apologist · 11mo ago · 3 replies
Stack it, but stack it once into a real all-sites tab rather than doing it inside every summary formula.
The pattern that has held up for me: one hidden tab that is nothing but
={IMPORTRANGE(url1,"data!A2:F"); IMPORTRANGE(url2,"data!A2:F"); ...}, with a site name column carried through from each source, then every summary on the sheet is a QUERY against that one range. Adding site 31 is one line in one place instead of a new column in 40 formulas.The VLOOKUP-per-tab approach does not fail gradually. It fails the day somebody renames a tab.
Reply
Report
@listcomp_leo · 11mo ago
Add the site name as a column inside each source tab rather than trying to add it during the stack. Much easier to read later and it survives reordering.
Reply
Report
@shadowing_sena · 11mo ago
The rename failure mode is exactly what happened last month and why I am rethinking it.
Reply
Report