I have data in a sheet called "PASTE HERE" that I want to import into another sheet in the same workbook. I don't want to use IMPORTRANGE because then copying the workbook would necessitate updating all the workbook URLs in the formulas, and the the ranges always exist in the workbook itself.
So far I have this:
=QUERY("PASTE HERE!D1:I","SELECT D,E,F,G,H,I WHERE E is not NULL order by D ASC ",-1)
Which returns the following error:
Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: D
Column D contains an item number, so blank rows should be ignored, and the imported data should come in in numerical ascending item number order.
There is clearly a column D in the "PASTE HERE" sheet, with data in it.
This does work with IMPORTRANGE
as below:
=QUERY(IMPORTRANGE("My sheet URL","PASTE HERE!D1:I"),"SELECT Col1,Col2,Col3,Col4,Col5,Col6 WHERE Col2 is not NULL order by Col1 asc ",-1)
Any idea what I'm doing wrong?