сначала вам нужно вставить каждую формулу IMPORTRANGE
отдельно и вызвать #REF!
ошибку, которая появится Разрешить доступ кнопка.тогда вы используете формулу:
={QUERY(IMPORTRANGE("ID-or-URL-1", "Sheet1!A1:Z"), "where Col1 is not null", 0);
QUERY(IMPORTRANGE("ID-or-URL-2", "Sheet1!A1:Z"), "where Col1 is not null", 0);
QUERY(IMPORTRANGE("ID-or-URL-3", "Sheet1!A1:Z"), "where Col1 is not null", 0);
QUERY(IMPORTRANGE("ID-or-URL-4", "Sheet1!A1:Z"), "where Col1 is not null", 0);
QUERY(IMPORTRANGE("ID-or-URL-5", "Sheet1!A1:Z"), "where Col1 is not null", 0)}
={QUERY(IMPORTRANGE("ID-or-URL-1", "Sheet1!A1:Z"), "where Col1 is not null", 0)\
QUERY(IMPORTRANGE("ID-or-URL-2", "Sheet1!A1:Z"), "where Col1 is not null", 0)\
QUERY(IMPORTRANGE("ID-or-URL-3", "Sheet1!A1:Z"), "where Col1 is not null", 0)\
QUERY(IMPORTRANGE("ID-or-URL-4", "Sheet1!A1:Z"), "where Col1 is not null", 0)\
QUERY(IMPORTRANGE("ID-or-URL-5", "Sheet1!A1:Z"), "where Col1 is not null", 0)}