How to query for row range in Google Sheets?

21.8k views Asked by At

Is it possible to use Google Sheets' =query to select only a specific row range, e.g. rows 38 to 57 of sheet1?

2

There are 2 answers

0
Max Makhrov On BEST ANSWER

=QUERY(FILTER(A1:B,ROW(A:A)>=4,ROW(A:A)<=8),"select Col1, Col2")

The query syntax has no option to use rows in where clause. I suggest using query + filter

enter image description here

0
TheMaster On

Not directly. But, If you transpose them, then you could use them.

   =QUERY(TRANSPOSE(38:57),"Select *")