Change/Rename Cell content after Query - google-sheets

Thanks in Advance,
I'm collecting Data from Google Forms into a spreadsheet and filtering the data by using a query.
one of the form inputs, has a long description because its a question.
I'm trying to change/rename it after the Query much like you can set a new value to an object key in JS
is it possible in sheets,
cheers
Sheet

You can use:
=QUERY(A1:C5,"Select 'Online',B,C label 'Online' 'Where Did the leads come from'",1)

Related

How to make a filter that lists the name of each column with its data in Google Sheets?

I would like to create a filter that associates each cell with the name of the column in which it is located.
Here is the desired result : Example
I tried several basic formulas to invert the data (with transpose or query), but it's not suitable for this scenario, so I find myself stuck. Would you know how to do it ?
Thanks in advance for your answers !
You may try:
=INDEX(QUERY(SPLIT(FLATTEN(TRANSPOSE(A1:C1)&"|"&TRANSPOSE(A2:C)),"|"),"WHERE Col2<>''"))

How to filter with user-input data? [Google Sheets]

I have a question about dynamic filtering.
Suppose I have a number of services and their providers, and I'm trying to filter by a particular criteria. Easy enough.
But suppose that I wasn't the one generating the criteria? How do I code a filter to show results when I don't know what column we're checking again?
See my spreadsheet (permissions open) for more explanation
https://docs.google.com/spreadsheets/d/1Bj_OGyCyobXmoFq72M-v4lcNiGfrgi1AX5QeeZIi-FY/edit?usp=sharing
Here's how I would approach this
=filter(B4:B6,filter(C4:D6,C3:D3=B22)="Y")
Or you can do it by unpovoting the data and running a query()
=ArrayFormula(query(split(flatten(B4:B6&"❄️"&C3:D3&"❄️"&C4:D6),"❄️"),"select Col1 where Col2='"&B22&"' and Col3='Y'"))
Another way to dynamically detect the column/row is with indirect(R1C1)-match
=filter(B4:B6,indirect("R4C"&match(B22,3:3,0)&":R6C"&match(B22,3:3,0),0)="Y")

Google Sheets: How to Filter Vertically Merged Cells

I've come looking for help regarding this issue. I'm a teacher, and am trying to help my students get all their documents together for university applications. Google Sheets tell me that I'm not able to filter cells containing vertical merges, but I want to filter by the earliest application deadline (column G) so I know which student I have to chase up first, second, third, etc., without losing the rest of the data in the row.
Does anyone know a good way of doing this? I've created a sample of my spreadsheet: here.
Thanks in advance.
Try Insert > New sheet and this formula in cell A1 of the new sheet:
=query('2021'!A1:Z, "where G is not null order by G", 1)
The sorted list is for reference only. You will need to continue to do your editing in the 2021 sheet.
I would split the data between a couple of sheets.
In the first sheet you'd have important data that can be seen at a glance and filtered easily, like student names, universities and deadlines.
In the second sheet (which you can link by student name or id) you can put extra info like necessary documents, urls etc - something like this.
Alternatively keep all the info in one sheet but don't use split columns or rows - it isn't conducive for sorting, filtering and viewing data (and what's the point of data if you can't analyse it?)

(Google Sheets/Google Forms) I'd like to be able to collect live data from different columns and have them populate one column instead

I'm collecting data from a Google Form that allows the user to choose which language they'd like the survey to be in, and based on his/her answer, the Google Form will utilize branching to lead them to the questions in the language he/she chose. For example, if they choose 'English,' a question they will answer is 'Full Name,' while if they choose 'Español,' they will answer 'Nombre y apellido.'
This leads the spreadsheet to collect the data from those questions into two separate columns. Is there a way to set up the spreadsheet so it organizes the data from the same translated questions into columns? The form will be receiving data constantly. I've tried stacking the columns using this formula template: ={A2:A5;D2:D5}, but the formula simply moved cells whenever data was added from the Google Form. I am collecting multiple points of data in 6 different languages, and I'm really hoping there's a way to organize this data to make it much less cumbersome to wade through.
If you have any ideas, please let me know! I'll try whatever you've got. 😅 Thanks!
You can union the column values, using open ranges, and then filter out the empty values using =QUERY() or =FILTER().
This way you'll be effectively joining values from different columns as one.
For example if you wanted to join data of columns A, D and E, you could do:
Using QUERY
=QUERY({A2:A;D2:D;E2:E}, "select Col1 where Col1 is not null")
Using FILTER
=FILTER({A2:A;B2:B;E2:E}, {A2:A;B2:B;E2:E} <> "")

filter multiple sheets using data validation

I have a workbook with four sheets and want to make a dashboard. In the dashboard I have 4 data validation drop down lists (Part, Date, Shift, Part Number). I want when someone selects the value from the drop list to look for the data that relate to the selections. I currently have =FILTER('sheet1'!A5:FP,('sheet1'!C5:C=Dash!A6)*('sheet1'!A5:A=Dash!A4)*('sheet1'!H5:H=Dash!A8))"Sheet 1" is the name of the sheet I want the data pulled from, however because the first parameter of =FILTER is range it wont allow me to reference my data validation dropdown found in A2. Is there a way to have the filter function look at what is in A2 and give me the data from the selected sheet, and how? Thank You in advance!
I think you are looking at the indirect function in google sheets, please try:
=FILTER(
Indirect(A2&"!A1:FP"),
(Indirect(A2&"!C5:C")=Dash!A6)*(Indirect(A2&"!A5:A")=Dash!A4)*
(Indirect(A2&"!H5:H")=Dash!A8)
)

Resources