I'm using this formula: =QUERY(A1:M;"SELECT D")
COLUMN D contains rows with numbers and others with text strings, but the QUERY is only returning the numbers and the text strings are showing as blanks.
I need both data types returned.
I believe your format may need to be changed.
Try this: =query(table!A1:M, "select D")
This is assuming that "table" is the name of the sheet with data.
If table is a named range, then you either need to use that or A1:M as query only accepts a single range to search.
;
instead of ,
in many EU locales to separate arguments. This is why you see that difference. The inclusion of "Table" may be a poorly chosen way of highlighting the data source to us by the OP or something else (typo?) but doesn't seem related to the core problem.
=FILTER(D:D; LEN(D:D))
=ARRAYFORMULA(
QUERY(TO_TEXT(D:D)))
# equivalent formula
=QUERY(
ARRAYFORMULA(TO_TEXT(D:D)))
=ARRAYFORMULA(
LET(q, QUERY(TO_TEXT(D:D)),
IFERROR(1/(1/q),q)))
q
q
to numbers.n
will return n
. If n
is anything other than a non-zero number, Sheets returns an error.q
that can be are coerced to non-zero numbers.q
if q
couldn't be coerced to a non-zero number and instead triggered an error.