I've made a query function with importrange function on Google Sheets. The problem is when I try to make a copy of that document for share then in the copied file returns
"No_Column: Col2".
I've no idea how to solve this issue.
=QUERY(
{ IMPORTRANGE("url", "'Parte 1'!A1:AH");
IMPORTRANGE("url", "'Parte 2'!A1:AH");
IMPORTRANGE("url", "'Parte 3'!A1:AH");
IMPORTRANGE("url", "'Parte 4'!A1:AH")
}, "Select Col2, Col1, Col34, Col24, Col3, Col4, Col5, Col6, Col11, Col7, Col8,
Col9, Col10, Col12, Col13, Col14, Col15, Col20, Col21, Col22, Col23
Where Col10="&$C$1&"
And Col22 != 'Duplicado'")
Here's the formula for my query