A
A
Andreww22019-05-23 15:33:35
Google Sheets
Andreww2, 2019-05-23 15:33:35

Google Spreadsheets QUERY+IMPORTRANGE?

Help me figure out why the formula
=QUERY(IMPORTRANGE("1uGo0hGJdx-GfX12rmuTaC1DdDF18MnJOLhb8Z2Msm5g","Transferred (copy)!A2:H"),"Select Col1,Col2,Col3 where Col1='test'")
Separated =IMPORTRANGE(" 1uGo0hGJdx-GfX12rmuTaC1DdDF18MnJOLhb8Z2Msm5g","Sent (copy)!A2:H") works correctly

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2019-05-27
@JohnnyBravo7

The problem is that the Query looks at the data, and when ImportRange is called inside the Query, there is no data yet.
Try to make an intermediate table, where you first import, and then do what you need for the selected range

D
Dusheyko, 2021-03-31
@Dusheyko

Must import. Try replacing where Col1='test'" with where Col1 like 'test'".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question