google-sheets

How to nest IF block with OR statement in Google Spreadsheet

夙愿已清 提交于 2021-02-05 11:32:53
问题 I'm looking for some help with this little code that I'm using in Google spreadsheet: =ArrayFormula(IF(OR(F2:F="Cancelled",G2:G="Cancelled"),"Cancelled",IF(F2:F="Finished",20,)+IF(G2:G="Finished",20,))) For some reason it works if I use this code without calling multiple rows: =ArrayFormula(IF(OR(F2="Cancelled",G2="Cancelled"),"Cancelled",IF(F2="Finished",20,)+IF(G2="Finished",20,))) Does anyone have an idea which is the correct way to use it? Thanks in advance. 回答1: OR merges all TRUE s to

Trying to create a script that on form submit sends an email to the submitter if they answered false

…衆ロ難τιáo~ 提交于 2021-02-05 11:31:23
问题 I'm looking on form submit to send an email to the submitter if they filled any of the questions as false, but the script is sending emails to any submitter who entered all true as well. I know the if script works with numbers as I used it in another project but when I changed the question to true false it seems to have broken the if statement. I also know the rest of the script works because it worked before I added the "if (certification == 'FALSE') {" line. var EMAIL_SENT = 'EMAIL_SENT';

Google Sheet formula for cumulative sum with condition

时间秒杀一切 提交于 2021-02-05 11:27:28
问题 I have a Google Sheet with the following layout: Number | Counted? | Cumulative Total 4 | Y | 4 2 | | 6 9 | Y | 15 ... | ... | ... The first cell in the Cumulative Total column is populated with this formula: =ArrayFormula((SUMIF(ROW(C2:C1000),"<="&ROW(C2:1000),C2:C1000) However this counts all rows in the 'Number' column. How can I make the Cumulative Total only count rows where the Counted? cell is Y ? 回答1: Try this in C2 and copy down: = N(C1) + A2 * (B2 = "Y") Update Doesn't seem to work

How to get the list of all sheet in a dropdown list in a sidebar

冷暖自知 提交于 2021-02-05 11:24:11
问题 I'm working in an sidebar menu in an google sheet, to set some variables that i need in my script. My script is already working. It is easy, on form submit, it will create an event in my calendar. However, in order to simplify the installation of my script, I would like to show a dropdown list in my sidebar with the names of all the sheet of my worksheet. I see various post, that show how to do a dropdown list like this : How to create a drop down list in Input Box? How can I create a HTML

Google Script checking that the data within one column on one sheet is the same as another column in another sheet

萝らか妹 提交于 2021-02-05 11:14:29
问题 I am trying to create a Google Script to check that the data within one column on one sheet is the same as another column in another sheet, any ideas where I am going wrong? Thanks :) Code below: function myFunction() { //data from Salesworks var sheet = SpreadsheetApp.getActive().getSheetByName("Sales Works TEST"); var data_salesworks = sheet.getRange('D3:D121').getValues(); //data from Google Form var sheet = SpreadsheetApp.getActive().getSheetByName("V3 New Form Responses"); var data_sheet

Is Google Sheets less or more accurate than Microsoft Excel?

眉间皱痕 提交于 2021-02-05 11:14:29
问题 I am aware of the general problem of numerical inaccuracies with floating point numbers, but I would expect Excel and Google Sheets to behave the same. Unfortunately, they don't - see the following example: A1: 15.525 our reference A2: =3*5.175 should equal 15.525 A3: =A2=A1 shows TRUE, as expected, in both A4: =A2-A1 but A2 is actually smaller in Google Sheets, by -1.78E-15 [Excel shows 0.00E+00] B1: =ROUND(A1,2) shows 15.53, correct, in both B2: =ROUND(A2,2) shows 15.53, correct, in both -

Google Script checking that the data within one column on one sheet is the same as another column in another sheet

回眸只為那壹抹淺笑 提交于 2021-02-05 11:13:57
问题 I am trying to create a Google Script to check that the data within one column on one sheet is the same as another column in another sheet, any ideas where I am going wrong? Thanks :) Code below: function myFunction() { //data from Salesworks var sheet = SpreadsheetApp.getActive().getSheetByName("Sales Works TEST"); var data_salesworks = sheet.getRange('D3:D121').getValues(); //data from Google Form var sheet = SpreadsheetApp.getActive().getSheetByName("V3 New Form Responses"); var data_sheet

Comparing Dates in Google Sheets Script Editor

有些话、适合烂在心里 提交于 2021-02-05 10:01:31
问题 I am very new to this, so please bear with me. I am trying to get my code to look at each cell in a column, then compare that date to the current date, and if they match send an email. I am aware I will need a loop of some sort to get it to look through the column, but I haven't even gotten that far. I've tried every method I can find online to just get it to compare one cell to the date and send the email. I tested the email function prior to adjusting it to compare the date, so I know that

Google Sheet importxml login access

随声附和 提交于 2021-02-05 09:41:59
问题 I've used importxml to get public info from a website. But sometimes info changed when we access though different country. For example http://www.ebay.com/itm/221998403138?_trksid=p2057872.m2749.l2649&var=520870142881 this item is not available in USA but when we'll access from different country where seller shipped or changed the country of shipping, we can find the shipping cost. If I use importxml from Google Sheet, that means the access country will be USA. How far I understand i can't

Google Sheet importxml login access

让人想犯罪 __ 提交于 2021-02-05 09:41:38
问题 I've used importxml to get public info from a website. But sometimes info changed when we access though different country. For example http://www.ebay.com/itm/221998403138?_trksid=p2057872.m2749.l2649&var=520870142881 this item is not available in USA but when we'll access from different country where seller shipped or changed the country of shipping, we can find the shipping cost. If I use importxml from Google Sheet, that means the access country will be USA. How far I understand i can't