« first day (17 days earlier)    last day (15 days later) » 

9:23 AM
@player0
 
9:40 AM
hey
I've noticed... but kinda didnt have a time to check upon on it, yet
I shall check it out when I settle on PC (hopefully in a few hours) - atm on mobile...
 
OK. Thank you. Sorry to bother.
Just let me know if the question is clear enough to make sense.
have a good one
 
 
5 hours later…
2:43 PM
you there?
 
yup
 
lol, your posted questions are never clear enough xD
 
fair enough
 
atm, checking your Q... and noticed "Dull"
 
let me know what needs to be changed
aham
 
2:45 PM
how do you imagine to be applied that "Dull"??
 
for the first IF as value if not true
 
which value?
gimme some example
 
the query itself is value if true
the second if, actually is all value if true
and "Dull" is value if false
 
I see, so if Query results in nothing you wana Dull (?)
 
yep
 
2:47 PM
now I get it...
 
actually it is just an example for the same error, even when the two queries are split, but with 2 ifs each
 
I guess I know whers the catch...
am off to do some testing and let you know with an answer (shortly)
 
I've got it running, but if you find the answer - it will be +15 for you
:)
 
3:04 PM
well, in that case all is good
I guess
 
@player0
It outputs a "FALSE" when it should be displaying the error message
when one of the conditions in the second if is not met
 
try now
 
FALSE again
 
A6
 
and what if I have 15 of those?
:)
 
3:18 PM
15 of what?
 
15 query
to be triggered by a data validation cell
 
well I guess I give up on this if you already managed to resolve it :)
post your solution as an answer :)
 
count the arguments for each if
see what is different in each AND
one of them is coming from the data validation cell, which corresponds to the first if
that is when you have 2 ifs for each query
 
so whats your solution?
 
an argument for the first if is misplaced
=IF(fileToExtract = "Weekly Campaign",
IF(AND(sourceFile <> "",
weeklyCampaignID <> ""),
QUERY(QUERY({sourceFile_dataRange}, ect...
 
3:30 PM
makes sense
post it stackoverflow.com/questions/55007216/… and accept your answer :)
 
I'll accept it tomorrow
you can upvote if you like
brb
I have another q
cheers
I need to query a few tabs, and the condition for each is that Col3 IS NOT NULL
sometimes one of the tabs has null values in Col3
shouts an error for missing values
how can I get blank (null) values there, without the error, but in the same time it will extract the rest where Col3 is not null?
 
formula?
 
3:47 PM
={QUERY({Sheet1!A1:Z}, "SELECT * Where Col3 IS NOT NULL",1);
QUERY({Sheet2!A2:Z}, "SELECT * Where Col3 IS NOT NULL",0);
QUERY({Sheet3!A2:Z}, "SELECT * Where Col3 IS NOT NULL",0);
QUERY({Sheet4!A2:Z}, "SELECT * Where Col3 IS NOT NULL",0)}
Sheet4 shouts #N/A
when I remove that QUERY it runs smoothly, but when Col3 is null it brings the error to the whole arrayformula
 
how many columns is the output if sheet4 isnt n/a ? A:Z? 25?
 
exact
I think I sumbled on an answer for this some time ago, but can't seem to find it now
 
then you need fake dummy VR table
 
there was something about entering empty values for each column
no
 
generated with ifferror() by wrapping each query
 
3:53 PM
it was something of such
 
IFERROR(QUERY({Sheet4!A2:Z}, "SELECT * Where Col3 IS NOT NULL",0), {"","","","","","","","","","","","","","","","","","","","","","","","",""})
 
aham
cheers
would have preped a q for you, but this question has been asked and answered before, so...
Thank you very much for all of your help on this project
 
np
 
now I need to present it
can you recommend any literature?
 
literature? for what?
 
3:55 PM
QUERY
I know that the documentation of GS is one of the best resources, however, I was wondering if you have something that you prefer
 
not sure I understand you... you wana some guide how to deal with Queries?
 
not really. more something like a manual...
o.0
where the seperate parts of the query are explained
 
documentation of GS is shit lol, no I dont xD I never found any manual,guide,literature... lol I dont even know anything unless I open up a sheet and test stuff untill I crack it :D
 
good practice...
|I'll need to put something together off the top of my head based on what I find on the net
However, thank you again for the help and effort
 
you are welcome
 
4:35 PM
@player0
here?
 
4:51 PM
here
 
mhm
ok
so
?
what I need is to do this same thing, but...
The example is given with a pivot... I need to:
1. count and sum the London(s) (there are 4 types of Londons);
2. and perform the count and max
The difference is that there is no second column (B1:B)... Just Col1, where you have the state names...
I need to count them group them max them ect in a single query
any ideas?
Let me know if you think of something
Cheers
 
 
1 hour later…
6:20 PM
what are those 4 Londons?
 
6:42 PM
0
A: QUERY to merge the names of two regions and sum the number of their occurrences

player0=QUERY(ARRAYFORMULA(SUBSTITUTE( IF((A1:A="London")+(A1:A="London2")+(A1:A="London3"), "♥",A1:A),"♥","Greater London")), "select Col1, count(Col1) where Col1 is not null and not Col1 = '#N/A' group by Col1 order by count(Col1) desc limit 5 label count(Col1) 'Number of occurrences'",...

 

« first day (17 days earlier)    last day (15 days later) »