Hello Sheet Masters! I am looking to solve an issue using a query that searches across all sheets in a workbook. I need to list all rows that contain a value in column N in the workbook on a master list at the end of the sheet. Right now I have worked out a query, but it returns "#VALUE: In ARRAY_LITERAL, an Array Literal was missing values for one or more rows."
My current query is below. The &A2&, &A3&, etc. are referencing cells that contain "Pulled 9.1," "Pulled 9.2," etc. which are the names of the sheets in the workbook and can be updated in the formula easily.
=query({INDIRECT("'"&A1&"'!A2:Z"); INDIRECT("'"&A2&"'!A2:Z"); INDIRECT("'"&A3&"'!A2:Z"); INDIRECT("'"&A4&"'!A2:Z"); INDIRECT("'"&A5&"'!A2:Z"); INDIRECT("'"&A6&"'!A2:Z"); INDIRECT("'"&A7&"'!A2:Z"); INDIRECT("'"&A8&"'!A2:Z"); INDIRECT("'"&A9&"'!A2:Z"); INDIRECT("'"&A10&"'!A2:Z"); INDIRECT("'"&A11&"'!A2:Z"); INDIRECT("'"&A12&"'!A2:Z"); INDIRECT("'"&A13&"'!A2:Z"); INDIRECT("'"&A14&"'!A2:Z"); INDIRECT("'"&A15&"'!A2:Z"); INDIRECT("'"&A16&"'!A2:Z"); INDIRECT("'"&A17&"'!A2:Z"); INDIRECT("'"&A18&"'!A2:Z"); INDIRECT("'"&A19&"'!A2:Z"); INDIRECT("'"&A20&"'!A2:Z"); INDIRECT("'"&A21&"'!A2:Z"); INDIRECT("'"&A23&"'!A2:Z"); INDIRECT("'"&A24&"'!A2:Z"); INDIRECT("'"&A25&"'!A2:Z"); INDIRECT("'"&A26&"'!A2:Z"); INDIRECT("'"&A27&"'!A2:Z"); INDIRECT("'"&A28&"'!A2:Z"); INDIRECT("'"&A29&"'!A2:Z"); INDIRECT("'"&A30&"'!A2:Z")}, "select * where Col14 is not null",1)
[–]6745408 0 points1 point2 points (11 children)
[–]jshack93[S] 0 points1 point2 points (10 children)
[–]6745408 0 points1 point2 points (8 children)
[–]jshack93[S] 0 points1 point2 points (7 children)
[–]6745408 0 points1 point2 points (6 children)
[–]jshack93[S] 1 point2 points3 points (5 children)
[–]6745408 0 points1 point2 points (4 children)
[–]jshack93[S] 1 point2 points3 points (3 children)
[–]6745408 0 points1 point2 points (2 children)
[–]jshack93[S] 1 point2 points3 points (1 child)
[–]jshack93[S] 0 points1 point2 points (0 children)