google-sheets

Shift values in Google Spreadsheet

﹥>﹥吖頭↗ 提交于 2021-02-10 23:39:50
问题 I am making a spreadsheet that is to be used for booking equipment for a club I am part of. I am looking for a way for all the cells in a selected area of a spreadsheet to be moved one to the left at midnight, and ones all the way to the left deleted. I understand that I can just use a trigger to execute this, however I am not sure how to go about writing the function to do this. Any help or suggestions would be appreciated. 回答1: This would be simple if you had a function that could left

Shift values in Google Spreadsheet

≡放荡痞女 提交于 2021-02-10 23:37:29
问题 I am making a spreadsheet that is to be used for booking equipment for a club I am part of. I am looking for a way for all the cells in a selected area of a spreadsheet to be moved one to the left at midnight, and ones all the way to the left deleted. I understand that I can just use a trigger to execute this, however I am not sure how to go about writing the function to do this. Any help or suggestions would be appreciated. 回答1: This would be simple if you had a function that could left

Formula for tabulating daily running counts of a given column

依然范特西╮ 提交于 2021-02-10 23:17:27
问题 I'm trying to write a formula that gives a running count of Issue s for a given day. In other words: the output should enumerate each Issue for a given date (returning blank if Issue is blank), and then start again at 1 for the first issue in a subsequent date. I've hard-coded the expected outputs in the "desired output" column (column I ): Sample dataset is in this sheet. Key pieces: Column B contains the date Column E contains the T-shirt size severity of each Issue Column F contains a

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

How to build a search form in googlesheets with query()?

泄露秘密 提交于 2021-02-10 20:32:49
问题 Requested behaviour: I would like to create a search form in Google Sheets to query a table that I use as a database. The user should be able to query the table by multiple searches categories which the user can type into a cell of the sheet. If the user does not type in a search string, then all items should be displayed. Also, the user should be able to choose between an "including OR" and an "excluding AND" search. The original table is on a different sheet than the search form. The final

How to build a search form in googlesheets with query()?

时光怂恿深爱的人放手 提交于 2021-02-10 20:29:46
问题 Requested behaviour: I would like to create a search form in Google Sheets to query a table that I use as a database. The user should be able to query the table by multiple searches categories which the user can type into a cell of the sheet. If the user does not type in a search string, then all items should be displayed. Also, the user should be able to choose between an "including OR" and an "excluding AND" search. The original table is on a different sheet than the search form. The final

Error msg from custom function when trying to open another spreadsheet. “You do not have permission to perform that action.”

南楼画角 提交于 2021-02-10 20:24:17
问题 I have a custom function that I want to use to retrieve the cell value in a sheet from another spreadsheet. The two parameters of the function are row and col and they determine the cell to reference. Whenever I try to use the function, I get the error "You do not have permission to perform that action." , pointing to the line with the openByID method. Here is my custom function: function TEST(row,col) { var formDataSpreadsheet = SpreadsheetApp.openById(FORM_DATA_SPREADSHEET_ID);

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