Using TRIM in Google Sheet Query
up vote
0
down vote
favorite
I have this QUERY
QUERY(Z:AA,"Select AA where UPPER(Z) matches '"&trim($U3)&"'",0)
but its not working for some reason which I can't understand. If the match I'm looking for is redapple
and the contents of U3 is red apple
the match fails. Setting U3 to redapple
matches so it appears TRIM
is not working.
Any help would be greatly appreciated
sql google-sheets
add a comment |
up vote
0
down vote
favorite
I have this QUERY
QUERY(Z:AA,"Select AA where UPPER(Z) matches '"&trim($U3)&"'",0)
but its not working for some reason which I can't understand. If the match I'm looking for is redapple
and the contents of U3 is red apple
the match fails. Setting U3 to redapple
matches so it appears TRIM
is not working.
Any help would be greatly appreciated
sql google-sheets
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have this QUERY
QUERY(Z:AA,"Select AA where UPPER(Z) matches '"&trim($U3)&"'",0)
but its not working for some reason which I can't understand. If the match I'm looking for is redapple
and the contents of U3 is red apple
the match fails. Setting U3 to redapple
matches so it appears TRIM
is not working.
Any help would be greatly appreciated
sql google-sheets
I have this QUERY
QUERY(Z:AA,"Select AA where UPPER(Z) matches '"&trim($U3)&"'",0)
but its not working for some reason which I can't understand. If the match I'm looking for is redapple
and the contents of U3 is red apple
the match fails. Setting U3 to redapple
matches so it appears TRIM
is not working.
Any help would be greatly appreciated
sql google-sheets
sql google-sheets
asked Nov 19 at 15:25
Chris Barrett
837
837
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
My Bad. TRIM
only removes trailing and leading spaces. Used SUBSTITUTE
instead
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
My Bad. TRIM
only removes trailing and leading spaces. Used SUBSTITUTE
instead
add a comment |
up vote
0
down vote
My Bad. TRIM
only removes trailing and leading spaces. Used SUBSTITUTE
instead
add a comment |
up vote
0
down vote
up vote
0
down vote
My Bad. TRIM
only removes trailing and leading spaces. Used SUBSTITUTE
instead
My Bad. TRIM
only removes trailing and leading spaces. Used SUBSTITUTE
instead
answered Nov 19 at 15:48
Chris Barrett
837
837
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53377768%2fusing-trim-in-google-sheet-query%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown