google-sheets-query

Looping through a set of values in google sheets

本秂侑毒 提交于 2019-12-11 16:58:09
问题 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 0 1 1 0 1 0 1 1 0 1 0 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..like this Result expected 0 0 1 A1 1 A2 0 1 B1 0 1 B2 1 A1 0 1 A2 0 1 B1 You can check the google sheet here : https://docs.google.com/spreadsheets/d

Copy cell from on sheet to another, if other cell in row matches values

对着背影说爱祢 提交于 2019-12-11 12:09:13
问题 What I want, is to copy a cell(s) from one sheet to another, only if another cell in the same row (different column) have/has a particular value(s) in Google Sheets. Ideally, I would like this to be live; if I add a row in the first sheet and the criterion matches, the second sheet will update too. Here's an example: Sheet one Column A | Column(s)… | Column D ================================= Hello | | Yes World! | | Yes Foo | | Maybe Bar | | Sheet two Column A | Column(s)… | Column D =======

Search the same text in 2 tables then check the cell next to it

做~自己de王妃 提交于 2019-12-11 11:31:34
问题 Explanation: I've got 2 tables, one let's say is randomly generated and could contain 5% of the content in the 2nd table or even more. So, the first table let's say has 3 names: Alex, Billy and John, near each name is a fruit: Alex - 2 apples, Billy - 3 pears, John - 5 oranges. Now the 2nd table has many more names, along with Alex, Billy and John. I want to get the numbers and add them to the next table and the type of fruit, also I want it to say that IF Alex has cucumbers he will get -1

COUNTA by month and by exclusion in Google Sheets

泪湿孤枕 提交于 2019-12-11 10:58:22
问题 HERE IS A SAMPLE SHEET WITH SOLUTION WORKING: https://docs.google.com/spreadsheets/d/1Twc9i7D5rDvT_Q88thrwjV8E58Ja7c-ifdlCZDwu6Ok/edit?usp=sharing I have a Google Sheet where I have registries that come from a Google Forms for some sort of Help Desk registry. I'm trying to make a general report tab where things are count, in total and for the current month. For example, I'm counting how many entries are classified as 'open' and 'ended' For the global total of 'open' registries I have: =COUNTA

Condense a multi-row, multi-column formula output into a single row

流过昼夜 提交于 2019-12-11 08:36:53
问题 I have a QUERY formula that imports the first three rows of some data, "Select Col1, Col2 Order by Col2 desc limit 3" , producing an output like this: | c1 | c2 r1 | Red | 53 r2 | Blue | 45 r3 | Yellow | 15 I'd like to get need those same formula values to look like this: | c1 | c2 | c3 | c4 | c5 | c6 r1 | Red | 53 | Blue | 45 | Yellow | 15 where the whole output is in a single row. Is this possible? 回答1: Yep, wrap your query function with TEXTJOIN =TEXTJOIN(" ", TRUE, QUERY(....)) To get

Google Sheets VLOOKUP of multiple columns across multiple sheets

对着背影说爱祢 提交于 2019-12-11 08:11:25
问题 I am not 100% sure VLOOKUP is the correct formula to use for this, but what I was trying was the following: =ArrayFormula(IF(len(B2:B),vlookup(B2:B,{‘New1′!B3:C;’New2′!B3:C;’New3’!B3:C},2,FALSE),””)) I wanted to modify the above formula to do the following. I have a Google Sheet with multiple tabs. There is a single tab that has all of the data stored as metadata to populate the other 6 tabs. I am splitting the metadata into the 6 tabs, but want to avoid duplicating the data in the tabs. So I

Turning formula into ArrayFormula

荒凉一梦 提交于 2019-12-11 07:39:09
问题 I have this formula for counting matches in Contents!$B$2 in J4 . =ARRAYFORMULA(IF(NOT(REGEXMATCH(J4, "\w")),0,SUM(COUNTIF(REGEXREPLACE(SPLIT(J4,",")," [\s]",""),REGEXREPLACE(SPLIT(Contents!$B$2,","),"[\s]",""))))) The formula is in K4 but ideally, I want it to work right down J returning values to the relevant adjacent K . I tried this but it didn't work. Just filled the cell the formula was in =ARRAYFORMULA(IF(NOT(REGEXMATCH(J4:J, "\w")),0,SUM(COUNTIF(REGEXREPLACE(SPLIT(J4:J,",")," [\s]",""

How to copy data validation in a relative way, specifically list from range (with or without scripts) Google Sheets

北慕城南 提交于 2019-12-11 06:49:25
问题 I have created a spread sheet to track appointments. Within this spread sheet I have dynamic dependent drop down lists, so the choice from list 1 will populate the options in list 2. This is as follows: Cell C2: Client - Client 1 or Client 2. (this is for the use of the example, the actual lists will expand.) If cell C2 = Client 1 then the address drop down is as below: Cell C3: Address - Address 1 or Address 2. If cell C2 = Client 2 then the address drop down is as below: Cell C3: Address -

Remove diacritics via formula on Google Sheets (Part 2)

偶尔善良 提交于 2019-12-11 06:06:44
问题 With the help of a StackOverflow member, we have created a way to remove diacritics from personal names, these diacritics are saved in a list and as they appear in their names, they are removed and converted to common keyboard letters. =ARRAYFORMULA(PROPER(IFERROR(REGEXREPLACE(C2:C, TEXTJOIN("|", 1, A2:A1000), VLOOKUP(REGEXEXTRACT(C2:C, TEXTJOIN("|", 1, A2:A1000)), A2:B1000, 2* SIGN(ROW(A2:A1000)), 0)&""), C2:C))) But ... What happened was that in one of the names instead of the formula

Google Sheets - query contains array

老子叫甜甜 提交于 2019-12-11 04:57:23
问题 I have a range with a name column. I also have a list of names chosen be presented. I want to run a query which will select data from this range only if it names is inside this list: Select C Where A "is in the selected array of names" What would be the right way of doing that? 回答1: Suppose the array of names is D2:D10; then you could use the query string "select C where A = '" & join("' or A = '", D2:D10) & "'" This creates a long query string A = 'name' or A= 'another name'... If the range