Google Sheets Query + Import range - google-sheets

need some help
=QUERY(IMPORTRANGE("1ygkNl_q1V01x8e-XTLS-gdyTC1lsWviJPJ_sb28qz-s","'QA REJECT'!C3:K"),"select Col3,Col5,Col6,Col7,Col10,Col11,Col12 where Col7 = 'HP BOX (443X270X285)'")
Output: Error
Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: Col10

Try this
you selected Col10,Col11,Col12 and you have only 9 columns in the query from C to K.
=QUERY(IMPORTRANGE("1ygkNl_q1V01x8e-XTLS-gdyTC1lsWviJPJ_sb28qz-s","'QA REJECT'!C1:K"),"select * where Col5 = 'HP BOX (443X270X285)'")

Related

Query Importrange does not return any output

quick question, please
I want to do a query import range formula in Google Sheets with three criteria:
1: E-mail
2: Number of the week (e.g: 2)
3: The data column
Ive already allowed the sheets to share information but I'm getting a "Query completed with an empty output." message, even thought the cell has an imput.
Formula: =QUERY(IMPORTRANGE("linkofthesheet";"Indicadores!A9:L123");" SELECT Col3 WHERE Col1 = '"&B4&"' AND Col2 = '"&C10&"'")
I was trying before to use a vlookup together with it but a friend told me it would be redundant. Please, what do you guys think it could be the issue?
2: Number of the week (e.g: 2)
If cell C10 contains a number, you should leave the 'quotes' out, like this:
=query( importrange("...put sheet id here..."; "Indicadores!A9:L123"); "select Col3 where Col1 = '" & B4 & "' and Col2 = " & C10, 0)

Combine two Functions in Google Sheet as STRING Parameter

I am getting Formula Parse error. Help me with Combining 2 Formula. Here IMPORTRANGE has two String Parameter
=IMPORTRANGE("1Iyxg6vcnAR8zHpJaThfdP7UhdiMwFTbOwrW0l_II83M",QUERY(MAINTAINANCE!A5:K151; "select * where Col7 is not null Order By Col7",0))
Here my second Formula QUERY needs to convert in to string using &" but i dont know how to please help me
I Have Try to Using "& to pass both Functions as STRIG. Because IMPORTRANGE has two Parameter as String For Example..
IMPORTRANGE(URL_ADDRESS,RANGE AS STRING)
this:
=IMPORTRANGE("1Iyxg6vcnAR8zHpJaThfdP7UhdiMwFTbOwrW0l_II83M";
SINGLE(QUERY(MAINTAINANCE!A5:K151; "where Col7 is not null order by Col7"; 0)))
will work but only if output from your QUERY is range or cell. example:
A1
A1:A10
Sheet1!A1:A10

i am having issue using query function of google sheets

I am trying to query an XLSX file with the following statement =query($A$2:$E$34, "select E WHERE C = '1' AND A = 'Jun-21'"), in that case, C being a country number and A being the month and year and I am not able to get a value, I receive N/A saying that it has been completed with an empty result, even though there is a number matching criteria on the dataset
try:
=INDEX(QUERY(TO_TEXT(A2:E34), "select Col5 where Col3 = '1' and Col1 = 'Jun-21'"))

QUERY Function Question Regarding WHERE clause

I have a query where I am trying to match the range value with the value that is in the first column (A) of the current row:
=QUERY(IMPORTRANGE("https://URL.com", Spreadsheet!A:Z), "SELECT COl4 WHERE Col1 = "' & CONCATENATE('A', ROW()) & '")
So essentially, I am trying to select the value of col4 if col1 matches the value of "A235" or A + whatever the current row is.
However the Concatenate part doesn't seem to be working (Formula parse error) and if someone could point me in the right direction, it will be awesome.
Thanks!
Repeating a working solution from my comment.
Try this:
=QUERY(IMPORTRANGE("https://URL.com", Spreadsheet!A:Z), "SELECT COl4 WHERE Col1 = '" & A:A & "'")

Error while using QUERY with Importrange function

I am trying to use QUERY and importrange data from another spreadsheet (Say A) into my spreadsheet (say B). However, I want to import only rows from A where Column X in A has the same name as in cell L1 of spreadsheet B.
=QUERY(importrange("https://docs.google.com/spreadsheets/d/1IJw96gEObg0fE3SF_XfEXFnilNbjLaHwUm7gctZ74/edit#gid=1403434756","Data !A2:K3000"),"Select * where Col11 = "&L1&"")
error message:
Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: JohnSmith
try this one if it works:
=QUERY(IMPORTRANGE("1IJw96gEObg0fE3SF_XfEXFnilNbjLaHwUm7gctZ74", "Data!A2:K3000"),
"select * where Col11 = '"&L1&"'")
or:
=QUERY(IMPORTRANGE("1IJw96gEObg0fE3SF_XfEXFnilNbjLaHwUm7gctZ74", "Data !A2:K3000"),
"select * where Col11 = '"&L1&"'")
and if still no luck then try to change = to matches or contains

Resources