google-query-language

how to make a new table from an existing table and add new column in spreadsheet

不打扰是莪最后的温柔 提交于 2021-02-11 08:43:00
问题 I want to Ask about spreadsheet or google-sheets formula. I have a data that looks like this: A B C D ------------------------------------------------ 1 | UserId fruitType media PriceStatus 2 | 3 Apple Bag Paid 3 | 7 Banana Bag Paid 4 | 7 Apple Bag Paid 5 | 43 Banana Bag Paid 6 | 43 Apple Bag FREE 7 | 43 Apple Cart Credit Note: My data only consist of 2 type of fruit : Apple and banana 2 type of media : Bag and Cart 3 Type of PriceStatus : Paid , Credit , & Free As you can see the column is

How to build a search form in googlesheets with query()?

泄露秘密 提交于 2021-02-10 20:32:49
问题 Requested behaviour: I would like to create a search form in Google Sheets to query a table that I use as a database. The user should be able to query the table by multiple searches categories which the user can type into a cell of the sheet. If the user does not type in a search string, then all items should be displayed. Also, the user should be able to choose between an "including OR" and an "excluding AND" search. The original table is on a different sheet than the search form. The final

How to build a search form in googlesheets with query()?

时光怂恿深爱的人放手 提交于 2021-02-10 20:29:46
问题 Requested behaviour: I would like to create a search form in Google Sheets to query a table that I use as a database. The user should be able to query the table by multiple searches categories which the user can type into a cell of the sheet. If the user does not type in a search string, then all items should be displayed. Also, the user should be able to choose between an "including OR" and an "excluding AND" search. The original table is on a different sheet than the search form. The final

Using query, Import Range and named range to either label the named range or ignore the header

ⅰ亾dé卋堺 提交于 2021-02-10 19:27:55
问题 Context So I am trying to put together some data to run a machine learning model. I need all the data in one google sheet. But I am importing the data from a different spreadsheet saved elsewhere. This is my current formula =QUERY(IMPORTRANGE("link", "AvevaReturns")) Screen reader support enabled. It returns the spreadsheet but with the column label which is located in row 3 (two rows above it are blank). I have tried this, this and this to no avail. Problem I don't want the header included.

Using query, Import Range and named range to either label the named range or ignore the header

假装没事ソ 提交于 2021-02-10 19:26:29
问题 Context So I am trying to put together some data to run a machine learning model. I need all the data in one google sheet. But I am importing the data from a different spreadsheet saved elsewhere. This is my current formula =QUERY(IMPORTRANGE("link", "AvevaReturns")) Screen reader support enabled. It returns the spreadsheet but with the column label which is located in row 3 (two rows above it are blank). I have tried this, this and this to no avail. Problem I don't want the header included.

FTR calculation using Google Query function

十年热恋 提交于 2021-02-08 11:41:18
问题 I am trying to create crosstabs pivot tables using Google Query function to calculate Employees First Time Resolution (FTR) rate based on the number of Issues received while booking Opportunities vs Total Opportunities booked . +---------+-------+---------+-----------+--------+-------+ | OppName | OppID | EmpName | MonthYear | Status | Issue | +=========+=======+=========+===========+========+=======+ | abc | 1000 | alex | 2020-Jan | active | yes | +---------+-------+---------+-----------+---

FTR calculation using Google Query function

别说谁变了你拦得住时间么 提交于 2021-02-08 11:40:04
问题 I am trying to create crosstabs pivot tables using Google Query function to calculate Employees First Time Resolution (FTR) rate based on the number of Issues received while booking Opportunities vs Total Opportunities booked . +---------+-------+---------+-----------+--------+-------+ | OppName | OppID | EmpName | MonthYear | Status | Issue | +=========+=======+=========+===========+========+=======+ | abc | 1000 | alex | 2020-Jan | active | yes | +---------+-------+---------+-----------+---

Google Sheet - How to FULL OUTER JOIN with one table?

馋奶兔 提交于 2021-01-29 19:51:05
问题 I would like to create a tables for my tournament. I create a table with some players and their leagues. I would like to generate matchmaking table, by league, like that I'm to weak with google spreadsheet to do that. I understood I can't use "JOIN" with "QUERY()" function. It seems I need to use "ArrayFormula()" and "VLOOKUP()" functions but after hours pasted to try, I failed. If anyone of you can help me, it will be so great ! Here is a googlesheet with datas : https://docs.google.com

ArrayFormula of Average on Infinite Truly Dynamic Range in Google Sheets

爱⌒轻易说出口 提交于 2021-01-25 03:52:22
问题 as per example: A B C D E F G ∞ |======|=======|=====|=====|=====|=====|=====|===== 1 | |AVERAGE| | | | | | |======|=======|=====|=====|=====|=====|=====|===== 2 | xx 1 | | 1 | 2 | 0.5 | 10 | | |======|=======|=====|=====|=====|=====|=====|===== 3 | xx 2 | | 7 | 1 | | | | |======|=======|=====|=====|=====|=====|=====|===== 4 | | | 0 | | | | | |======|=======|=====|=====|=====|=====|=====|===== 5 | xx 3 | | 9 | 8 | 7 | 6 | | |======|=======|=====|=====|=====|=====|=====|===== 6 | xx 4 | | 0 |

google sheets query left join one-to-many

断了今生、忘了曾经 提交于 2021-01-05 07:41:57
问题 I have 2 tables and I am trying to perform a left join using google query language,or any formula that could output the result set. Table1 Table2 Result set How can I accomplish that ? Regards 回答1: OK well here is an inner join to start with: =ArrayFormula(query(iferror(split(flatten(if(transpose(filter(Table2!B2:B,Table2!B2:B<>""))=filter(Table1!A2:A,Table1!A2:A<>""),filter(Table1!A2:A,Table1!A2:A<>"")&"|"&transpose(filter(Table2!A2:A,Table2!A2:A<>"")),)),"|")),"select Col1,Col2 where Col1