hi I have a spreadsheet file contains a names of books at column A and the type of the books in column B. and at the same file I have another sheets each one contains a specific type of books ex: sheet 2 contains the history booksK sheet 3 contains science ..etc
my Question is : how to import the books from sheet1 (which contains all books) to the other sheets dependeing on the type name (take from sheet 1 to sheet 2 all books its type is history)
I tried this formula: =QUERY(IMPORTRANGE("sheet key","Sheet1!A:C"),(select* where COLUMN(B) contains"history")) but it doesn't work ......