google-sheets-query

IMPORTRANGE to import multiple Google Sheets into one vertical column?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 06:39:36
问题 I am having a bit of an issue using IMPORTRANGE in Google Sheets to import multiple sheets into a single column on a master sheet and whenever one of the sheets is updated, it automatically creates the new row on the master. Would there be a better way to do it other than IMPORTRANGE? 回答1: You can attach arrays onto each other by using embedded arrays. See more: Using arrays in Google Sheets This is a basic array ={1,2,3,4} and has an output that looks like this: To append an array on-top of

Looping through a set of google sheet values

泪湿孤枕 提交于 2019-12-20 06:29:57
问题 I have 2 sets of data. One is tank names Tank Name A1 A2 B1 B2 and the next is ON/OFF Data ON/OFF 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 0 1 1 1 0 1 1 Now the result I am looking is, when the ON/OFF is 1 then the first tank is to be mentioned: when it's 0, no tank to be mentioned. Once all the tanks are mentioned,then it should again start from the first tank ie A1.But if 0 comes in between then it should start again from A1 .. like this Result expected 0 1 A1 1 A2 1 B1 1 B2 1 A1 0 0 1 A1 1 A2 1 B1

Getting the count and unique values of a column of comma separated values?

假装没事ソ 提交于 2019-12-18 16:48:34
问题 Supposing all I have is the column A below + + A | B | C +--------------|---------|----------+ | | X, Y, Z | X | 3 | | X, Z | Y | 2 | | X, Y | Z | 2 + + How do I generate columns B and C - where the B column grabs the unique elements from A, and the C column generates a count of those values. 回答1: =ArrayFormula(QUERY(TRANSPOSE(SPLIT(JOIN(",",A:A),",")&{"";""}),"select Col1, count(Col2) group by Col1 label count(Col2) ''",0)) QUERY function TRANSPOSE function SPLIT function JOIN function 回答2:

Google SpreadSheet Query: Can I remove column header?

為{幸葍}努か 提交于 2019-12-18 10:14:41
问题 I'm doing this query at my google spreadsheet: =QUERY(H4:L35;"select sum(L) where H='First Week'"; -1) But it returns a little table with "sum" as header and result below it. What I want is just the result! How I remove header? Can I? 回答1: Try this: =QUERY(H4:L35,"select sum(L) where H='First Week' label sum(L) ''") Hope that Helps! 回答2: =QUERY(QUERY(A1:D, "SELECT *", 1), "SELECT * OFFSET 1", 0) The outer query: "SELECT * OFFSET 1" excludes the first row (the header). The inner query

How to sum up the values in each column and ranking each column name by sum of values in google sheet

风流意气都作罢 提交于 2019-12-13 09:06:29
问题 I have a google sheet with values that is getting populated A B C D E F G H Top scorers Date Player l Player 2 Player 3 Player 4 13 Jan 2019 1 1 1 20 Jan 2019 2 1 1 the idea is: each match day I will enter the date of the match and number of goals that each player scored, if new player score I will just put his name in new column and number of goal on that date. If any player not score that day, I will just leave that cell blank. Then I want to populate first column "Top scorers" with ranking

VLOOKUP to the left from another sheet in Google Sheets

做~自己de王妃 提交于 2019-12-13 03:54:48
问题 I have a spreadsheet that is managed externally to my own spreadsheet in Google Sheets. I am trying to pull in data to my sheet from that external sheet so I have a centralized location to display task items that pertain to me. Here is the formula that I thought would work: =VLOOKUP("My Name", IMPORTRANGE("https://linkto.othersheet.com", {"Tab1!$G$1:$G$999","Tab2!$A$1:$A$999"}),2,FALSE) The formula should use IMPORTRANGE to pull in 2 of the columns (or multiple columns) from the external

Adding blank rows in a set of data in Google Sheets

孤街醉人 提交于 2019-12-12 06:38:30
问题 I have a set of data. What i am looking forwards is to add 2 blank rows after each set of 3 values like this Hope to get help in getting this solved. you can find the sample google sheet here : https://docs.google.com/spreadsheets/d/11nMvUWn3xcTfxlk4v30KruPr03HSheMk1jrxZPpJ_p4/edit?usp=sharing Thanks Shijilal 回答1: Solution: IF it's the third row, Add 3 bunnies separated by a space, else keep the values as it is JOIN them all and SPLIT by a bunny and TRANSPOSE Sample: =ARRAYFORMULA(TRANSPOSE

Google Spreadsheets Convert Matrix data into Relational rows

旧巷老猫 提交于 2019-12-12 05:36:02
问题 My Google spreadsheet data is in a matrix form with "holes". See https://docs.google.com/spreadsheet/ccc?key=0Ati5T34RP9mEdGJfcUFzVDV4elZIbExkTGM4aktQT2c&usp=drive_web#gid=0 I'd like to create another sheet from the above data to look like what I've manually done in https://docs.google.com/spreadsheet/ccc?key=0Ati5T34RP9mEdGJfcUFzVDV4elZIbExkTGM4aktQT2c&usp=drive_web#gid=3 Any ideas? 回答1: This should work on the latest version of Sheets: =ArrayFormula(QUERY(VLOOKUP(HLOOKUP('Table Chart'!A2,

Importing data from multiple sheets with Query/ImportRange formula returning ARRAYLITERAL ERROR

余生长醉 提交于 2019-12-11 19:04:22
问题 I have 2 Google Sheets which track class attendance for our two main sites and each tab on the sheet is a different class/course. Each sheet has a "data" tab which pulls all the class/course data. I am trying to pull the data sheets from these two sheets and put them on a 3rd sheet and organize the class data by a program (GED, CDP, ESL). I have had no issues pulling the data from one sheet, but when I tried stacking the Query and Importrange formulas, I keep receiving an ARRAY LITERAL error

Manual data tagging and lookup

五迷三道 提交于 2019-12-11 18:01:43
问题 I need a system that allows to filters entries by different text tags. Say we store info about some products. We have Red Apples, Pears, Watermelons, Cucumbers, Peppers and Bread. We store them in sheet named "Data" in column A. Next columns are occupied by tags, like Red Apples are Red, Sweet, Fruit, Unpacked; Peppers are Red, Spicy, Veggie, Packed; Bread is just Packed. Then on another sheet we have a dedicated range, say A1:A10, which can accept any data tag, like Spicy or Packed. What I