S
S
Striges2020-11-04 22:16:17
Google Sheets
Striges, 2020-11-04 22:16:17

How to fix encountered ""where" error in a QUERY?

When creating a query in a table, an error occurs, what is indicated incorrectly in it?

=QUERY('Remainders'!A:C;"select sum(C) label sum(C)' ' where(B="&I18&")")
5fa2fd5fcc319209446855.jpeg
5fa2fdbdd59db403377085.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2020-11-13
@oshliaer

Try

=QUERY('Остатки'!A:C,"select sum(C) where B='"&I18&"' label sum(C)''")

If you write label sum(C)' '(with a space), then the title will be empty and the result will be displayed on the second line below the formula.
Please note that the QUERY formula is sensitive to data types, so if you have Bstrings, then you need to write B='"&I18&"', but if these are numbers, then B="&I18&".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question