last day (33 days later) » 

7:58 PM
-1
Q: Auto-filling empty cells with Google Sheets' query

I. Я. NewbI have a table with data that I want to run a QUERY from. In the output tab I need just one column from the data tab, but also I have 3 empty columns in the output tab, that are not in the data tab, that I need to be filled automatically, based on conditions, preferably with the QUERY. I am usi...

 
A little hint on the downvote?
Question edited to be more specific.
 
depends... it would be possible but it's hard to write an answer to this because it's too abstract. pls share a copy of your sheet or at least provide a generic example with your desired output
 
@player0, Thank you for the pointers and edit of the question. Will be providing more the requested in a moment.
 
take your time...
 
@player0, apologies for the delay. I hope the edit sheds some more light on the problem that I am having.
 
7:58 PM
based on what you generate Status | Reason ? can you share a copy of your sheet?
 
Apologies, @player0. I am afraid I can not share the sheet itself or a copy... However, the fields Status and Reason are generated, based on the criteria, wether or not the Country is "UK" or not.
 
so only UK is In Progress and anything else is Unable to Proceed | Not a UK member ? if not pls list me all countries that are UK members
 
What I need is the logic of how to implement the approach of creating new columns and filling them with static values (column 2) and conditional values (columns 3 and 4), preferably with the QUERY, without the use of IF, as I have read that it is bad practice.
You are exact @player0. This is exactly the condition
 
well you will need to use IF inside query anyway
 
@player0, If it is the only way to do it. Apart from that what other hints can you give me?
Is using an ArrayFormula the better way to go?
 
8:13 PM
not sure how you imagine it
it depends
its not hard to clone fake value and output it as aditional column in query
but you also have that UK logic to implement and for that you nedd to put something extra to it
in the end it wont matter I guess, because it will be all wrapped in query as you request
working on a solution atm...
 
8:34 PM
done
 
8:53 PM
Geez, thanks! I'll give it a go tomorrow, but I'll upvote the answer now. I'll mark it as a solution in the morning.
 
9:04 PM
if you use different locale for syntax leave me a note
 
I have some questions already. However, let us continue this tomorrow.
Thank you very much for the effort.
 
ok
 

  last day (33 days later) »