QUERY "Unable to parse query string": NO_COLUMN and PARSE_ERROR fixed
QUERY shows #VALUE! with NO_COLUMN or PARSE_ERROR. Seven broken formulas in one sheet, what each note means and the edit that fixed it.
On this page
=QUERY(A1:D9, "select B, E where D = 'West'", 1)Before range A1:D9
| D | E | F | G | H | |
|---|---|---|---|---|---|
| 1 | Region | Amount | #VALUE! | ||
| 2 | West | 96 | |||
| 3 | East | 318 | |||
| 4 | West | 87 |
What changed
A1:D9becameA1:E9- the query text stayed the same
After range A1:E9
| D | E | F | G | H | |
|---|---|---|---|---|---|
| 1 | Region | Amount | Rep | Amount | |
| 2 | West | 96 | Emily | 96 | |
| 3 | East | 318 | Olivia | 87 | |
| 4 | West | 87 | Ryan | 159 |
“Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: E”. That is the whole note Sheets shows beside cell G1 on the Broken tab, where the cell itself only says 1. The formula is =QUERY(A1:D9, "select B, E where D = 'West'", 1), and it's supposed to list each West order with the rep and the amount.
Parameter 2 is the second thing inside QUERY, the text between the double quotes. So the note is saying the problem is in the query text, or in how that text lines up with the data in parameter 1. The take-home sheet has this formula plus seven more QUERY formulas, six of which fail, each next to a version that works.
Fix NO_COLUMN: E by widening the range to take in column E
Column E is outside the range in parameter 1. The orders sit in A1:E9, with Amount in column E, but the formula was pointed at A1:D9, which stops at Region. NO_COLUMN means the data QUERY was given has no column by the name after the colon, so the query asks for something it can't see.

Change A1:D9 to A1:E9 and leave the query text alone. On the Fixed tab, that one edit returns a header row and three orders: Emily 96, Olivia 87 and Ryan 159. Those are the only West rows in the data.
The letters in the query text are the sheet's own column letters, and every one of them has to fall inside parameter 1. Before rewriting the query, compare the last letter of the range with the letters the query uses. In this formula the query uses B, D and E, and the range only covered A through D.
| Input | Orders in A1:E9 (8 rows plus a header) |
|---|---|
| Formula | =QUERY(A1:E9, "select B, E where D = 'West'", 1) |
| Expected | Rep, Amount, Emily, 96, Olivia, 87, Ryan, 159 |
| Sheets returned | Rep, Amount, Emily, 96, Olivia, 87, Ryan, 159 Matches expected |
| Checked | 2026-11-12, free personal account |
Which part of the QUERY note says what to fix?
The code after "parameter 2:" and the words that follow it. After NO_COLUMN comes the exact word QUERY could not match to a column, and after PARSE_ERROR comes the spot where QUERY stopped reading. Each row of the More causes tab runs a query against the order data on the Fixed tab in column B, shows that formula with FORMULATEXT in column C, and puts a working version in columns D and E. Most rows look up Sarah, who has a single order for 145. The table lists the end of each note as it appeared when we selected the cell.
| What went wrong | End of the note | Cell in the copy |
|---|---|---|
| Range one column short | NO_COLUMN: E | Broken G1 |
| Cell value glued in without quotes | NO_COLUMN: Sarah | More causes B5 |
| Lowercase column letters | NO_COLUMN: e | More causes B6 |
| Apostrophe inside a single-quoted value | PARSE_ERROR ... column 25 | More causes B4 |
| Curly quotes around the value | PARSE_ERROR ... column 16 | More causes B7 |
| Letters on a {} array | #N/A, no note | More causes B3 |
| Number written in quotes | Query completed with an empty output. | More causes B8 |
Google documents the query text as the Google Visualization API Query Language, and the QUERY help page links to it.
Why would the note name Sarah, or a lowercase e?
QUERY read that text as a column name. B5 holds =QUERY(Fixed!A2:E9, "select E where B = "&G2, 0), with the name Sarah typed in G2. The joined text becomes select E where B = Sarah, so Sarah lands in the query bare, and QUERY treats a bare word as a column. The note ends with NO_COLUMN: Sarah.

The fix wraps the cell in single quotes inside the double-quoted pieces: "select E where B = '"&G2&"'". The first piece of text now ends with a single quote just before &G2&, and a second piece holding one single quote follows it. D5 returns 145.
The query in B6 is select e where b = 'Sarah'. The letters are lowercase, and the note ends with NO_COLUMN: e. The language reference states that identifiers and string literals are case-sensitive, and column letters count as identifiers. With E in capitals, D6 returns 145. The same rule covers the value itself, so 'sarah' wouldn't match Sarah.
To fix a PARSE_ERROR, count to the column number in the note
It's the character where QUERY gave up, counting from the first letter of the query text. PARSE_ERROR means QUERY could not split the text into a statement it understands. Two rows on the tab hit it.
| Cell | Note as shown |
|---|---|
| B4 | Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " <ID> "s "" at line 1, column 25. Was expecting one of: <EOF> "group" ... "pivot" ... "order" ... "skipping" ... "limit" ... "offset" ... "label" ... "format" ... "options" ... "and" ... "or" ... |
| B7 | Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " <ID> "B "" at line 1, column 16. Was expecting one of: "(" ... "(" ... |
In B4 the query is select E where C = 'Joe's Diner'. Count along and the 25th character is the s right after the apostrophe in Joe's. The apostrophe closed the quoted value early, QUERY got C = 'Joe' as a finished comparison, and then found a stray s where it expected a keyword such as order or limit.

The query language reference allows a string literal in either single or double quotes. Inside a Sheets formula, a double quote within the text is typed twice, so the working version in D4 is =QUERY(Fixed!A2:E9, "select E where C = ""Joe's Diner""", 0). It returns 144, the Joe's Diner order.
B7 looks almost right. The quotes around Sarah are curly ones. Here the column number is less helpful. Column 16 is the B right after where, and the curly quote comes a few characters after that B. The note says it expected an opening parenthesis. Retyping the two quotes as plain ' gives 145 in D7.
On a {} array, replace column letters with Col5 notation
On a plain range either one worked, and on a {} array only Col5 did. The QUERY help page says QUERY can accept either "Col" notation or "A, B" notation. In the copy, both worked on a plain range. B2 holds =QUERY(Fixed!A2:E9, "select Col5 where Col2 = 'Sarah'", 0) and returns 145, the same as the letter version in D2.
Wrapping the range in curly braces changed that. B3 is =QUERY({Fixed!A2:E9}, "select E where B = 'Sarah'", 0), and it shows #N/A with no red corner and no note when selected. Switching to select Col5 where Col2 = 'Sarah' in D3 returned 145 again. Of the six failures on the tab this is the hardest one to spot, because there's no message to read.

Col numbers start at 1. On A2:E9, Col2 is Rep and Col5 is Amount, which is why the D3 version finds Sarah's 145.
Why does where A = '1045' return nothing?
The quotes make 1045 text, and column A holds numbers. =QUERY(Fixed!A2:E9, "select B where A = '1045'", 0) parses fine and still fails, because it compares the Order # column to a string. The help page says each column of data can only hold boolean, numeric (including date/time types) or string values, so a text 1045 never equals a numeric 1045. B8 shows #N/A, and its note reads Query completed with an empty output. Dropping the quotes, select B where A = 1045, returns Sarah in D8.
Nothing is fixed yet on the Try it yourself tab. Put =QUERY(A1:E9, "select B, E where D = 'West'", 1) in G1 and the result should match G1:H4 on the Fixed tab.
Take-home copy. Four tabs: Broken, Fixed, More causes, Try it yourself. It opens as a copy in your own Drive.