google-sheets-formula

Google Sheets Formula: Sum if Substring in range of cells

∥☆過路亽.° 提交于 2021-02-05 06:37:06
问题 I have two columns: Col A Col B 01.02.2020 17 03.11.2020 24 03.11.2020 12 I tried to sum Col B, based on the substring of Col A like so: =SUMIF(A:A,MID(A:A,4,2)="02",B:B) =SUMIF(A:A,MID(A:A,4,2)="11",B:B) Which means: If it's the second (XX.02.XXXX) month, it should sum the values from Col B based on that. If it's the 11th month (XX.11.XXXX) in Col A, it should do the same but for cells where Col A has 11. However, it doesn't work. Apparently, one cannot do the MID function over more than one

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

ImportXML not producing correct values

吃可爱长大的小学妹 提交于 2021-01-29 19:01:34
问题 I am following the following tutorial to import stock options data into a Google sheet. https://www.youtube.com/watch?v=Be7z9YeeVY0&ab_channel=daneshj The following formula will import data from yahoo finance into the sheet: =iferror(TRANSPOSE(IMPORTXML(CONCATENATE("https://finance.yahoo.com/quote/",A2,"?p=",A2),"//tr")),"You have to add a contract name in column A") At first glance, everything looks fine, as it seems to be pulling data back from the webpage; however, all the values are

Is there a dynamic way of accessing ranges from multiple tabs?

丶灬走出姿态 提交于 2021-01-29 18:44:35
问题 My Google Sheets document contains 4 tabs: June2019, July2019, August2019, and Master. In the Master tab, I collect the data from all monthly tabs, which all have the same layout. In the Master tab, I have functions such as: =SUM(June2019!Profits, July2019!Profits, August2019!Profits) or =COUNTA(QUERY({June2019!A3:C;July2019!A3:C;August2019!A3:C},"select Col2 where Col2 = 'L' and Col3 = 'P'")) As the year progresses and I add more monthly tabs to my Google Sheets document, I don't want to

Is there some approaches that will log information in the last row for specific columns?

谁说胖子不能爱 提交于 2021-01-29 14:12:59
问题 In google sheets, I tried to log some information I entered in other sheet to my invoiceLogSheet. but the problem is : when the information log to the sheet, it always log in the last row for entire sheet, and what I want is : to log in last row for specific range of columns (clarify more: to check in specific columns their free last row and log the information on this row) but I don't know how to script this .. this is the function I used and it does not do the job I want: function

Google Sheets: Query where date>now() returns nothing

走远了吗. 提交于 2021-01-29 12:31:25
问题 I am using Google Sheets query function to bring data from a different sheet. This query works perfectly, matching two text fields (Where A='"&A5&"') =query('Modifications'!$A$3:$I,"Select E,F,G,H,I Where A='"&A5&"'order by E desc limit 1") However, when I try to add an AND statement as part of the Where clause to filter by today's date ( now() ), the query returns nothing: =query('Modifications'!$A$3:$I,"Select E,F,G,H,I Where A='"&A5&"' AND F>now() order by E desc limit 1") What am I

Paste the values for each column until the today's date google apps scripts

廉价感情. 提交于 2021-01-29 08:55:24
问题 I've this table, with some information that are link with other tables, almost all the rows have formulas (you can find on the picture). I update the information on the other tabs and with the formulas, the values and information are pasted in the rows, but I update day by day, so I need to copy/paste the values until the today's day inside this tabs instead of select the columns, and paste values. Like is shown on the picture, from day July 2nd (column) I've the formulas, and the days before

Subtotals with ArrayFormula()

别说谁变了你拦得住时间么 提交于 2021-01-29 08:54:04
问题 I've created a simple table and trying to split data with subtotals. A indicates the subtotal lines. B contains the rows number for previous subtotal. This is just extra field to simplify formulas. C Contains some amounts. D Contains subtotals of amounts between previous and current subtotal line. The subtotal formula has the following view: =ArrayFormula( IF($A2:$A; MMULT( ($B2:$B < TRANSPOSE(ROW($A2:$A))) * (TRANSPOSE(ROW($A2:$A)) < ROW($A2:$A)); IF(ISNUMBER(C2:C); C2:C; 0) ); ) ) The

Array Formula with AverageIF of a row

大兔子大兔子 提交于 2021-01-29 08:35:44
问题 I have a formula in a Google Sheet that is averaging the values in a row... =AVERAGEIF(A2:L2,"<>0") Simple, right? However, I cannot figure out how to get the ARRAYFORMULA to work for this. =ARRAYFORMULA(AVERAGEIF(A2:L,"<>0") That formula only averages all of the cells in the range, instead of returning the average for each row. What am I missing? 回答1: you were close. try: =ARRAYFORMULA(QUERY(TRANSPOSE(QUERY(TRANSPOSE(A2:L), "select "&TEXTJOIN(",", 1, IF(LEN(A2:A), "avg(Col"&ROW(A2:A)-ROW(A2)

Google script .setFormula error with string value [duplicate]

故事扮演 提交于 2021-01-29 07:06:52
问题 This question already has an answer here : .setFormula() and received error missing ) argument list (1 answer) Closed 5 months ago . I'm new to this so please forgive the simple question. I'm trying to insert the following formula into cell E18 of google sheet L2_R1 Final Product: =if(D17="Poor",0,if(D17="Acceptable",1,if(D17="Excellent",2,))) I've gone about it the following way: var sheet4= SpreadsheetApp.getActiveSpreadsheet().getSheetByName("L2_R1 Final Product"); var r2_fpr1_1 = sheet4