google-sheets-query

How to combine rows with same ID in Google Sheets?

强颜欢笑 提交于 2020-01-30 08:54:04
问题 I'm trying to merge rows with same IDs in Google Sheets From: ID | Category Augur | A1 Augur | A2 Augur | A3 Augur1 | A1 Augur1 | A2 Augur1 | A3 To: ID | Category Augur | A1; A2; A3 Augur1 | A1; A2; A3 Is there an automatic way to do it in Google Sheets itself, using its native functions? 回答1: =ARRAYFORMULA(QUERY({INDEX(QUERY(A1:B, "select A,count(A) where A is not null group by A pivot B", 0), , 1), REGEXREPLACE(TRIM(TRANSPOSE(QUERY(TRANSPOSE(IF(ISNUMBER(QUERY(A1:B, "select count(A) where A

Query Col1 > today()

亡梦爱人 提交于 2020-01-24 21:47:30
问题 When I use the format that I left below, returns in error, I know that something is missing adjusting in relation to WHERE AND ... But I could not fit to supply the error. I would like some help knowing what I missed. "select Col1,Col2,Col3 where Col1 is not null Order by Col1, Col2 AND Col1 > date'"&TEXT(today()-1,"yyyy/mm/dd")&"'" The date and time for Col1 and Col2 are like this: With this formula, I hope I can filter the imported data only for those that have the date of the current day

Count checked checkboxes within a query

試著忘記壹切 提交于 2020-01-24 21:25:07
问题 How do I count checked checkboxes within a query in Google sheets (this is part of a group query where I want to count checked checkboxes in column B for each value of column A grouped by column A)? 回答1: try: =ARRAYFORMULA(QUERY({A:A\ B:B*1}; "select Col1,sum(Col2) where Col1 is not null group by Col1 label sum(Col2)''")) 来源: https://stackoverflow.com/questions/59751416/count-checked-checkboxes-within-a-query

More Efficient Way to Avoid Multiple Calculations #3?

[亡魂溺海] 提交于 2020-01-24 20:14:36
问题 Looking for a more efficient way, possibly array formula for Min/Max down a column. Not sure if array formulas work with this function as I can't get it to. =ArrayFormula(MAX(INDIRECT("Data!E"&(K42:K169)&":E"&(K43:K170-1)))) =ARRAYFORMULA(MAX(VLOOKUP(K42:K169, {ROW(Data!A:A), Data!E:E}, 2, 0)&VLOOKUP(K43:K170-1, {ROW(Data!A:A), Data!E:E}, 2, 0))) Note that I am using ROW(Data!A:A) instead of simply ROW(A:A) because the range in current sheet doesn't fit that of sheet Data!. Here is my current

Google Sheets Formula to calculate actual total duration of tasks with different start/end dates, overlaps, and gaps

丶灬走出姿态 提交于 2020-01-24 18:08:02
问题 I know I how to do this using a custom function/script but I am wondering if it can be done with a built-in formula. I have a list of tasks with a start date and end date. I want to calculate the actual # of working days ( NETWORKDAYS ) spent on all the tasks. Task days may overlap so I can't just total the # of days spent on each task There may be gaps between tasks so I can't just find the difference between the first start and last end. For example, let's use these: | Task Name | Start

Google Sheets Formula to calculate actual total duration of tasks with different start/end dates, overlaps, and gaps

久未见 提交于 2020-01-24 18:07:33
问题 I know I how to do this using a custom function/script but I am wondering if it can be done with a built-in formula. I have a list of tasks with a start date and end date. I want to calculate the actual # of working days ( NETWORKDAYS ) spent on all the tasks. Task days may overlap so I can't just total the # of days spent on each task There may be gaps between tasks so I can't just find the difference between the first start and last end. For example, let's use these: | Task Name | Start

IF statement in query

我是研究僧i 提交于 2020-01-16 18:42:27
问题 I have a table with two columns A and B the first is a tag and the second is an amount. I am trying to write a query with two columns, one summing up negative values while the other summing up positive ones. Coming from SQL, I tried the following =QUERY(A1:B100, "SELECT A, SUM( B * IF(B>0, 0, 1) ), SUM( B * IF(B<0, 0, 1) ) GROUP BY A ") But it seems that the IF function is not supported in a query. I know I can create two intermediate columns in my sheet (one for positive value and one for

IMPORTRANGE with condition

我怕爱的太早我们不能终老 提交于 2020-01-12 11:47:08
问题 Using Google Sheets I want, within the same document, to import data from one sheet to another using IMPORTRANGE with conditions. I have tried unsuccessfully: =IF(IMPORTRANGE("https:URL","Inc Database!B2:B300")="permanent",IMPORTRANGE("htps://URL","Inc Database!A2:A300"),"") and =QUERY(IMPORTRANGE("https:/URL", "Inc Database!A2:A300"),"SELECT Col1 WHERE Col1 <> 'permanent'") and =FILTER(IMPORTRANGE("URL","Inc Database!A1:A250"),IMPORTRANGE("URL","Inc Database!B1:B250"="venture permanent")) I

Associating row data with importrange data in a new workbook on Google Sheets

扶醉桌前 提交于 2020-01-06 04:07:27
问题 For our distribution company, we have a sheet that has all of the invoices listed (in reverse chronological order to keep most recent invoices at the top), along with relevant data that our invoicing/accounting person would add. Order date, company name, location, invoice subtotal, taxes, total, outstanding balance, delivery status, etc. I then have another sheet that pulls this data for our fulfillment and dispatch team. It filters to only the relevant columns (stuff like invoice subtotal

How to automatically split one row into different rows in Google Sheets?

醉酒当歌 提交于 2020-01-05 07:03:36
问题 I'm trying to split one row in Google Sheets into different rows depending on its content. Here's an example: Name | Ticker | Categories Bitcoin | BTC | currency; store-of-value; trust layer; smart contracts; cross-industry Ripple | XRP | currency; cross-industry Into: Name | Ticker | Categories Bitcoin | BTC | currency Bitcoin | BTC | store-of-value Bitcoin | BTC | trust layer Bitcoin | BTC | smart contracts Bitcoin | BTC | cross industry Ripple | XRP | currency Ripple | XRP | cross-industry