I have a Google Sheet
with the following query formula:
=QUERY('Contact Changes'!B1:T,"SELECT C,D,E,F,G,H,I,J,K,L,M,N,O,R,S WHERE T='RMT'")
The source sheet displays the following results when filtering column T
by RMT
. So, the Query
formula should produce the same results.
However, column L
does not display the field values when they are text values:
If you look in J126
(city column), you can see the value of asdf
which is displayed correctly in the results H2
. But, the same value in L126
is not displayed in the results L2
. The only way I can get a value to display in this column is by entering numbers.
I have:
Query
Am I missing something obvious? What else can I try?
Maximum of 5 Million Cells These can be in a single worksheet or in multiple sheets. In case you already have the 5 million limit reached in fewer columns, it will not allow you to add more columns (and vice versa, i.e., if 5 million cells limit is reached with a certain number of rows, it will not allow more rows).
The LIMIT clause reduces the quantity of rows that is pulled from another sheet. “ select * Limit 5" – the string pulls all data and limits the returned result to the first 5 rows + the header.
In addition to Max' contribution, you can also preprocess the data so that it's all converted to text and THEN wrap the query around this output. Something like
=QUERY(ArrayFormula(TO_TEXT('Contact Changes'!B1:T)),"SELECT Col3, Col4, Col5, Col6, Col7, Col8, Col9, Col10, Col11, Col12, Col13, Col14, Col17, Col18 WHERE Col19='RMT'")
Google sheets query
accepts only one data type per column, it detects automatically:
I solved the same problem with two workarounds:
filter
or combine filter
with query
https://support.google.com/docs/answer/3093343?hl=en
In case of mixed data types in a single column, the majority data type determines the data type of the column for query purposes. Minority data types are considered null values.
I had the same problem in the past and today I tried to just format the entire column to "plain text" and it worked perfectly.
No problems anymore and every value is displayed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With