I've two teams. Each of those team has its own spreadsheet file they work with. I've created a new spreadsheet document that uses query(importrange)
function to create a single table of all results from each team's spreadsheets.
The idea is to then use the vlookup(importrange)
function in yet ANOTHER spreadsheet document to deliver specific query results. i.e. by vlookup'ing email address from the query database, import other relevant information to that email address.
I've been using this logic for a few months now and everything seemed to work fine. The only difference is that my past experience was with query result table that contained only 1 column of data.
Now, when the query result table contains 7-9 columns, this no longer seems to work.
I've concluded, that only the first column is somehow visible for the vlookup(importrange)
function, while other columns seem to be invisible.
The Query result table formula:
=QUERY({IMPORTRANGE("Team A","In Progress!A:M");IMPORTRANGE("Team B","In Progress!A:M")},"where Col1 is not null",1)
The formula on another spreadsheet that should act as a verifier/checker:
=IFerror(arrayformula(VLOOKUP(D3,IMPORTRANGE("the query result's sheet","In Progress!A:G"),{1,4,6,7},0)),"-")
I really hope the problem is described clearly. I expect vlookup(importrange)
to import data from query result table in another spreadsheet document.