google-sheets-formula

How to call an Apps Script library function in Google Sheet

∥☆過路亽.° 提交于 2021-02-10 22:15:52
问题 I created a Library in Google script as a standalone script with a function function1 . I published a version of this script. I also have a spreadsheet, and using a bound script, I added my library with identifier XXXX and managed to launch from scripts.google.com the function using a wrapper around function1 and logging the results : function function2() { return XXXX.function1(); } function test() { Logger.log(function2()); } The problem is I cannot call this function from a cell in the

How to call an Apps Script library function in Google Sheet

无人久伴 提交于 2021-02-10 22:13:06
问题 I created a Library in Google script as a standalone script with a function function1 . I published a version of this script. I also have a spreadsheet, and using a bound script, I added my library with identifier XXXX and managed to launch from scripts.google.com the function using a wrapper around function1 and logging the results : function function2() { return XXXX.function1(); } function test() { Logger.log(function2()); } The problem is I cannot call this function from a cell in the

Can I merge a multi-dimensional array into a single dimensional array in Google Sheets?

蓝咒 提交于 2021-02-10 20:41:53
问题 I'm looking to combine several columns into one, I do not care about order. For example, I have a column with a collection of tags: | || A | | = || ====================== | | 1 || Tags List | | 2 || Loon, Diver, Gaviform | | 3 || Shoveler, Anseriformes | | 4 || Roc | If I use the formula =ARRAYFORMULA(SPLIT(A2:A)) in B2 , I would get the following output: | || B | C | D | | = || ======== | ============ | ========= | | 1 || | | | | 2 || Loon | Diver | Gaviform | | 3 || Shoveler | Anseriformes

Arrayformula Running Total with multiple columns

一个人想着一个人 提交于 2021-02-10 20:18:29
问题 I've got the following task to solve, but I can't wrap my head around it. There are a couple of numbers for different years. I would like to have a running total sum of all columns (= range C:I) in column J. I can do that with a formula in every cell of J - however I need to achieve it with a single arrayformula in J2. What i figured after a lot of research are 2 steps: replace empty cells with 0s, since arrayformulas obviously have some problems with empty cells make a sum of each row For

How to see the +/- change in rolling average between two cells

自作多情 提交于 2021-02-10 20:18:27
问题 As you can see from my picture, I have a list of bowling scores and some running averages. The issue I cannot seem to solve is I would like to be able to see the change in average between a game and the previous game. If the average goes down, it would say -1.2% for example or +2.1% if it goes up. I would really like negative averages to be in red and positive ones in green if that is possible. Here is a copy of my sheet with the desired output in column G. 回答1: first you will need running

Arrayformula Running Total with multiple columns

亡梦爱人 提交于 2021-02-10 20:16:34
问题 I've got the following task to solve, but I can't wrap my head around it. There are a couple of numbers for different years. I would like to have a running total sum of all columns (= range C:I) in column J. I can do that with a formula in every cell of J - however I need to achieve it with a single arrayformula in J2. What i figured after a lot of research are 2 steps: replace empty cells with 0s, since arrayformulas obviously have some problems with empty cells make a sum of each row For

Arrayformula Running Total with multiple columns

南笙酒味 提交于 2021-02-10 20:15:08
问题 I've got the following task to solve, but I can't wrap my head around it. There are a couple of numbers for different years. I would like to have a running total sum of all columns (= range C:I) in column J. I can do that with a formula in every cell of J - however I need to achieve it with a single arrayformula in J2. What i figured after a lot of research are 2 steps: replace empty cells with 0s, since arrayformulas obviously have some problems with empty cells make a sum of each row For

Using query, Import Range and named range to either label the named range or ignore the header

ⅰ亾dé卋堺 提交于 2021-02-10 19:27:55
问题 Context So I am trying to put together some data to run a machine learning model. I need all the data in one google sheet. But I am importing the data from a different spreadsheet saved elsewhere. This is my current formula =QUERY(IMPORTRANGE("link", "AvevaReturns")) Screen reader support enabled. It returns the spreadsheet but with the column label which is located in row 3 (two rows above it are blank). I have tried this, this and this to no avail. Problem I don't want the header included.

Using query, Import Range and named range to either label the named range or ignore the header

假装没事ソ 提交于 2021-02-10 19:26:29
问题 Context So I am trying to put together some data to run a machine learning model. I need all the data in one google sheet. But I am importing the data from a different spreadsheet saved elsewhere. This is my current formula =QUERY(IMPORTRANGE("link", "AvevaReturns")) Screen reader support enabled. It returns the spreadsheet but with the column label which is located in row 3 (two rows above it are blank). I have tried this, this and this to no avail. Problem I don't want the header included.

Regematch if, and, and date combined forumula

醉酒当歌 提交于 2021-02-10 18:24:50
问题 I need help trying to figure out a combination google sheets formula If Cell B5 contains "Rct" And today's date is 30 days after the date defined in cell C5 And if Cell D5 and D6 both says "2 weeks ago" or "1 week ago" or contains the words "day" "hour" or "minute" (not sure if possible but instead of the all those words could if be if the text in cell D5 and D6 are the color "green" and or "Yellow") Then Cell H5 will say "Y" if the above conditions are met or "N" if they aren't The following