google-query-language

SUMIFS function in Google Spreadsheet

我是研究僧i 提交于 2019-11-27 04:24:34
I'm trying to have a similar function to SUMIFS (like SUMIF but with more than a single criterion) in a Google Spreadsheet. MS-Excel has this function built-in ( http://office.microsoft.com/en-us/excel-help/sumifs-function-HA010342933.aspx?CTT=1 ). I've tried to use ArrayFormula ( http://support.google.com/docs/bin/answer.py?hl=en&answer=71291 ), similar to the SUMIF: =ARRAYFORMULA(SUM(IF(A1:A10>5, A1:A10, 0))) By Adding AND : =ARRAYFORMULA(SUM(IF(AND(A1:A10>5,B1:B10=1), C1:C10, 0))) But the AND function didn't pick up the ArrayFormula instruction and returned FALSE all the times. The only

Google spreadsheet “=QUERY” join() equivalent function?

谁说我不能喝 提交于 2019-11-26 15:19:23
问题 This question is concerning joining two databases in Google spreadsheet using =QUERY function I have a table like so in range A1:C3 a d g b e h c f i I have another table c j m a k n b l o I want the final table to look like this a d g k n b e h l o c f i j m I can do this by using a vlookup function pretty easily in cell D1 and paste it down and across, but my dataset is huge. I would need a whole page of vlookups and Google Spreadsheet tells I'm at my limit in complexities. I look at the

SUMIFS function in Google Spreadsheet

坚强是说给别人听的谎言 提交于 2019-11-26 12:44:24
问题 I\'m trying to have a similar function to SUMIFS (like SUMIF but with more than a single criterion) in a Google Spreadsheet. MS-Excel has this function built-in (http://office.microsoft.com/en-us/excel-help/sumifs-function-HA010342933.aspx?CTT=1). I\'ve tried to use ArrayFormula (http://support.google.com/docs/bin/answer.py?hl=en&answer=71291), similar to the SUMIF: =ARRAYFORMULA(SUM(IF(A1:A10>5, A1:A10, 0))) By Adding AND : =ARRAYFORMULA(SUM(IF(AND(A1:A10>5,B1:B10=1), C1:C10, 0))) But the

Using Bound Google Scripts to Generate a Query Object

风格不统一 提交于 2019-11-26 12:31:44
问题 I am using a Google Script bound to a Google Sheet to programatically generate the following query: =query(\'16 Jul - 20 Jul Responses\'!A1:I31, \"SELECT C WHERE D = \'Available\'\", 0) Is there any way in Google Scripts to parse an object representation of that query\'s results? I\'d like to be able to code something like: var queryString = \'=query(\'16 Jul - 20 Jul Responses\'!A1:I31, \"SELECT C WHERE D = \'Available\'\", 0)\'; var results = new Query(queryString); for(var i = 0; i <