Questions tagged [google-query-language]
Google Query Language is the part of the Google Visualization API that lets the developer perform various data manipulations with the query to the data source. This could also be used in the Google Sheets QUERY built-in function.
1,100
questions
1
vote
1
answer
69
views
How do I get text in a pivot table in excel or google sheets?
I have a list of data, that I have cleaned, but I need to organize it in a way that allows me to import it into a CRM.
I can't think ov a way to convert that data into a decent table other than a ...
0
votes
2
answers
64
views
How to use Google Query to combine multiple rows into a single row with IF & SUM
We can get the following raw data from our project management software:
Month
Project
Billable
Time
Jan 2022
Project 1
Yes
100
Jan 2022
Project 1
No
10
Feb 2022
Project 1
Yes
80
Feb 2022
Project ...
1
vote
1
answer
32
views
How to apply array formula to join all the cells in a column and exclude empty cells in google sheets doc spreadsheet
=ArrayFormula(join(",",char(34)&E3:E11&char(34))) This is the formula I have thus far.
It is able to output the values from the ranges I have manually chosen E3 to E11 which are
...
0
votes
1
answer
44
views
Finding the most appearing value for each column a value
I have a sheet with 2 columns, A which is a group name and B which is a Role name.
Each Group appears multiple times with different roles, I want to find the most appearing role value in Column B for ...
1
vote
1
answer
28
views
Label giving error when using formulas within query statement/parameter in QUERY in Google Sheets
I have made much of what I wanted to work, but there's just one last thing.
=QUERY(ALL!$A$4:$AB, "SELECT A, B, D, C, I, G, O, U, Y, U/I, C/U WHERE A is not null "
&IF(OR(SUFIAN!$F$15=&...
0
votes
1
answer
86
views
Importrange with query and reorder some of the columns on import Google Sheets
I have a sheet with 52 columns from A to AZ. I am importing these with Importrange and query to a different file.
I want to move Column X to the first column on the import
Is this possible to do ...
1
vote
2
answers
21
views
Excluding Data in Googlesheet
I have a set of data. There is a case where I have to exclude some data from the data set. Here is the sample case:
https://docs.google.com/spreadsheets/d/1WbsNoUg9b29Hqex55H7fHqzW2rdgm2aAVgy-Y9DTa4Q/...
1
vote
1
answer
37
views
Imported data into Google Sheets, match and change one Column of Data
I have a google sheet that users input data on. These sheet has complete town names. Eventually the data they input gets uploaded into a program which has the town names abbreviated. Im looking for a ...
1
vote
1
answer
36
views
Using QUERY on Google Sheet returning "Formula parse error"
Writing a Google Sheet for personal expenses I am trying to create a query to sum the expenses of a type, but the editor is retrieving a parse error that I can't achieve the logs (not sure it is ...
2
votes
1
answer
39
views
Google Sheets using QUERY IMPORTRANGE from another sheet but query where references current sheets
I am trying to get the Query to pull from the Outside Sheets range but have the Where look at the number in a cell on a tab within the current sheets. I have reviewed other questions and none of those ...
1
vote
1
answer
25
views
Using a date in a cell in Sheet1 as a value for a filter in a Countifs formula for values in the date range on another sheet
I'm trying to use a formula in Google Sheets to use the date values of cells in Sheet1 (a27 and b27) as the Date references for the date range in the coutifs formula below.
=countifs('Sheet2'!$C:$C,&...
0
votes
0
answers
20
views
Fetch different columns from different google sheets using Query [duplicate]
I am running into issues with a fairly simple QUERY statement in Google Spreadsheets. The goal is to get data (unique cells/values) from different sheets (same file). The example shows that I am using ...
0
votes
1
answer
37
views
Selecting few columns in Google Sheet's QUERY function
I am trying to select few columns in Google Sheet's QUERY function but get errors when I combine with other formula in the function.
Here is my formula. What I am trying to do? my goal is combine data ...
1
vote
2
answers
43
views
How can you add more sheet tabs to existing IF/SumIF Google Sheet formula?
I'm trying to use Google's monthly budget template and alter it so I can get a full view of the year. I have tabs Jan-Dec made but I can't figure out how to add them to the below formula. When I try, ...
1
vote
1
answer
32
views
How to have this formatted data return empty given this is VLOOKUP + TEXT + QUERY in Google Sheets?
This is the formula, currently.
It outputs 12/30/1899, but it actually returns 0 and since TEXT() is forcing it into a data, this is how it shows.
How to have this ARRAYFORMULA() populate the values ...
2
votes
2
answers
54
views
Copy/pasting query in Google Sheets between cells with automatic replacement of values
I have this query in my sheet:
=query(A2:A100, "Order by A Desc Limit 20")
I want to copy and paste it to more cells and expect it will update range and column from A2:A100 to B2:B100, C2:...
0
votes
1
answer
178
views
How to get multiple pages table like next page in one sheet in google sheet
How to get 4231 row wise data in 424 pages like next page in one sheet in google sheet.
1 page only fetch 25 rows. in same URL
Total row result found = 4231 results found and showing total page 1 of ...
1
vote
1
answer
54
views
How to avoid this empty row using QUERY() in Google Sheets?
I've tried applying some criteria, but the row is still there.
This first empty row shouldn't be there.
Here is the formula, in case you'd like to help me correct it:
=if(I4<>"", { ...
1
vote
1
answer
56
views
Error Query, and xlookup formula in dropdown list
Someone in this group had created a google sheet file for me. and I have given some names in the list in that google sheet files. Can you prepare the appropriate code to get the result through that ...
0
votes
1
answer
52
views
Google Sheet Query and ImportHTML Function show numerical values as text
I'm importing some data using the formula below but the numerical values appear as =1599 (for example) and are being treated as text (ie cannot use them in a formula).Does anyone know how to ...
1
vote
2
answers
29
views
ARRAY_LITERAL error when Query Array Function stacking multiple google form responses [duplicate]
So I have a unique problem. I have a Google form used for site inspections that allows up to 25 "issues" to be entered per Form submission. As normal, when submitted the issues are recorded ...
1
vote
2
answers
84
views
Google Sheets "=QUERY()" JOIN ON or equitant
I have one large spreadsheet with names, addresses, phone numbers, emails, Etc. Some records have a second address for which I have a column named "Address 2" I was hopping to write a query ...
0
votes
1
answer
24
views
Google sheets - searching the protected data
Besides Hiding the sheets, is it possible to let my employee to search some specific data by query select the data from my main spreadsheet without viewing other data from my main spreadsheet?
Let say ...
0
votes
1
answer
92
views
Google Sheets Return Any(All) Row Value(s) For MAX-GROUP Query
I am looking to return non-grouped row values from a query of a table sorted by the MAX value of a column, within a group.
DATA TABLE
| NAME | ASSET | ACTION | DATE |
|--|--|--|--|
| JOE | CAR | ...
1
vote
2
answers
64
views
query: Remove aggregate function name for header
I have simulated joining in google sheets with one =query function per row. If I put an aggregate function in there, this does not work anymore, since I'll always get two rows at least: 1 for ...
1
vote
1
answer
180
views
Google Sheet query where literal string contains field value
Let's say you have a table of properties in a Google Sheet...
Col A (Name)
Property 1
Property 2
Property 3
Property 4
Property 5
... and you want a formula-driven solution that pulls data on ...
1
vote
1
answer
62
views
Workaround Argument must be a range error when using SUMIF + FILTER
Col A
Col B
Col C
a
back
1
a
back
1
b
b
draw
1
c
back
1
c
d
draw
1
d
draw
1
e
draw
1
In Column E I put the values from Column A using UNIQUE and sorting with SORT:
=SORT(UNIQUE(A:A))
In ...
2
votes
3
answers
67
views
Processing a list to output in a particular format
I am processing a list to output its items in chunks separated by blank rows as follows. But the result is not working when there are similar items, as shown with the arrows.
The formula I'm using is ...
1
vote
2
answers
36
views
Showing Top 5 Clients at a dashboard
I want to build a dashboard where I can select a year and a application and want to have the top 5 clients shown up.
I build a example Sheet ofr showing:
https://docs.google.com/spreadsheets/d/...
1
vote
1
answer
25
views
Calculate the average of sets of cells satisfying a certain criterion (AVERAGEIF)
This is my Items sheet
And this is my Values sheet
As can be seen from the table, alfa is associated with 20 40 60 80, beta with 30 40 70 80 and gamma with 50 60 70 80.
In the Items sheet in cell B1 ...
1
vote
1
answer
159
views
Return a specific cell in a Google Sheets QUERY function
Take the following spreadsheet:
I want to create a query that returns the values in columns A and B where A matches 'f' and also return the value that is in cell D1 (Test Cell).
Here is the Query ...
1
vote
1
answer
35
views
Google Sheets - Is it possible to use query to search for the data from the sheets that i select with dropdown list? If not, what can i do?
GoodDay everyone, recently I am trying to learn about using the Google Sheets. My question is same as the title, and these are some examples of the data.
The data from first sheet
The data from second ...
1
vote
1
answer
80
views
Label Column with Query that references multiple sheets in Google Sheets
using the below script to "append" data from multiple sheets on to one and it works but I need for it to add the sheet name where the data comes from in Column 28 and when I add label Col28 '...
2
votes
3
answers
61
views
group by and select row with the max date, and select all columns
I have the following data in a sheet.
event_id
event_type
event_name
date_col
123
critical_event
Event A
2021/12/16
456
critical_event
Event B
2021/12/25
999
medium_event
Event C
2021/12/13
888
...
1
vote
1
answer
14
views
How can I format a string sheet to date with Query
I have a col on googlesheet, that I need convert to date time with query function.
Column A
Column B
nome1
2022-11-17T13:41:47.431Z
name2
2022-11-17T13:41:47.431Z
Column A
Column B
nome1
2022-11-...
-1
votes
1
answer
25
views
Google sheets get empty cells next to each other
Link: https://docs.google.com/spreadsheets/d/1hCG6jjGSGWMn5kBkDfcoTJkZ2eCC5SRvHWMFTBp_6OE/edit?usp=sharing
I want to return "Yes" or "No" results in column N when there are empty ...
1
vote
2
answers
40
views
Counting unique elements in a table
I have a table with names of players like this:
Player
John
Eric
Valerie
Carmen
And another table with a list of played matches (match number, match date and the list of players that played in ...
1
vote
2
answers
35
views
List non-unique entries and their counts sorted in descending order
If I have a list of names in a sheet for example:
First Name|Last Name|Something else|
Maria|Miller|...|
John|Doe|...|
Maria|Smith|...|
Marc|Meier|...|
Marc|Park|...|
Maria|Muster|...|
Selene|Mills|......
1
vote
2
answers
37
views
XPath text() returns an extra blank value
I'm scraping this site, specifically the content of the tables inside the div tags with class containing 'ranking-data'. So for the first td that would be:
//div[contains(@class, 'ranking-data')]//tr[...
0
votes
1
answer
13
views
How to create a searcher which looks for more than one value in a database?
it's nice to be here and join this forum.
I have an issue which I would like to solve.
I have a database, where I would like to input multiple locations, and then, to have displayed the IDs and region ...
1
vote
1
answer
39
views
Google Query Language: How to average multiple columns when each one has a different condition?
The data
I have a table as the following in Google Sheets:
Month
Country
Metric Name
Value
Nov
AAA
Metric_1
98
Nov
AAA
Metric_2
45
Nov
AAA
Metric_3
4
Nov
BBB
Metric_1
100
Nov
BBB
Metric_2
214
...
1
vote
4
answers
74
views
how to concat/merge two columns with different length?
I'm new to google sheet. I have a column(E) with the date and another with a session(F), I want to merge them into one column with each date & different session just like the first few rows in ...
0
votes
1
answer
29
views
How insert value in new column in google sheets using query funtion
I have a column shown in the figure I want to add a new column based on the condition morning (6 AM-12 PM), afternoon (12:00:00–18:00:00), evening (18:00:00 24:00:00), and night (24:00:00–06:00:00) so ...
-1
votes
2
answers
152
views
Convert datetime from UTC to IST in google sheet using query funtion
I have the column shown in the figure I just want to convert the datetime column from UTC to IST I am trying to add 05:30:00 to each row using google query_language but couldn't find a way
Please help ...
1
vote
2
answers
32
views
How do I write a Query in G Sheets with multiple criteria, which also references a cell?
I am trying to write a Query in Google Sheets using the following formula:
=QUERY(Input!A2:AD,"SELECT Col1, Col4, Col5, Col6, Col7, Col12, Col13 WHERE Col12 > 200 AND Col30 = '"&B3&...
1
vote
1
answer
55
views
Google sheets query different sheets from named range in dropdown
I have 2 sheets (sheet1 and sheet2) and have created named ranges for each of them named sheet1 and sheet2.
To query sheet1 i use the following formula:
=QUERY(sheet1, "select A,B,C")
When ...
2
votes
1
answer
136
views
Google Sheets QUERY with WHERE on multiple columns at the same time
Following this post Google Sheets QUERY with WHERE on multiple columns I build up my formula to select specific values from more columns but when I had a condition data start to be confused and not ...
1
vote
2
answers
32
views
Filter Data in Googlesheets
I have to face some problem about my Googlesheets Data. I want to filter my googlesheets data between two dates and also filter more conditions at the same time in same sheets. Below are given some ...
2
votes
2
answers
779
views
Google Sheets QUERY Function: Select Columns by Name
I have a Google Sheet with named ranges that extend beyond columns A-Z. The name ranges have header rows. I would like to use the QUERY function to select columns by their header labels.
My formula ...
1
vote
1
answer
108
views
Using Arithmetic Operators for null values in GSheets Query Function
Looking to aggregate a total in a query function pivot result. However, where there are null values in Col2 and Col3 after I pivot, the total value results in null. How can I substitute null values in ...