google-apps-script

How to avoid 'exec maxSimultaneous' limit in Google Spreadsheet?

跟風遠走 提交于 2020-05-27 06:51:22
问题 I'm using Google Spreadsheet for my tax administration. All financial transactions that I have done in a year are in the spreadsheet. Because the tax rules in my country are quite complex, I've developed a number of JavaScript functions to help me with my calculations. There are many rows in my spreadsheet, about 1000. Each row has multiple references to those JavaScript functions. This system worked beautifully before, but today I've found that Google installed some kind of runtime limiting

How to avoid 'exec maxSimultaneous' limit in Google Spreadsheet?

若如初见. 提交于 2020-05-27 06:50:08
问题 I'm using Google Spreadsheet for my tax administration. All financial transactions that I have done in a year are in the spreadsheet. Because the tax rules in my country are quite complex, I've developed a number of JavaScript functions to help me with my calculations. There are many rows in my spreadsheet, about 1000. Each row has multiple references to those JavaScript functions. This system worked beautifully before, but today I've found that Google installed some kind of runtime limiting

Connect telegram bot with google apps script

泪湿孤枕 提交于 2020-05-26 09:58:54
问题 I have setup a bot on telegram bot and connected it with google spreadsheets via apps script by following this tutorial. Here is the code: var token = ""; // FILL IN YOUR OWN TOKEN var telegramUrl = "https://api.telegram.org/bot" + token; var webAppUrl = ""; // FILL IN YOUR GOOGLE WEB APP ADDRESS var ssId = ""; // FILL IN THE ID OF YOUR SPREADSHEET function getMe() { var url = telegramUrl + "/getMe"; var response = UrlFetchApp.fetch(url); Logger.log(response.getContentText()); } function

Unpivot in Google Sheets - multipe header columns and rows

試著忘記壹切 提交于 2020-05-26 08:41:12
问题 I have a summary table with about 20 columns and up to a hundred of rows, however I would like to convert it into a flat list so I can import to a database. This solution is not working properly in my case and my knowledge of JS is far beneath the ability to adjust it properly. There're three tabs in the Example sheet: Source Data - dummy data of what I currently have Desired Result - what I want to convert Source Data to What I Get - result I get when using the solution mentioned above Sheet

App Script to Pull data From Excel File to Google Sheet

时光总嘲笑我的痴心妄想 提交于 2020-05-25 08:45:13
问题 Does anyone know of an existing app script that can be used to import all data in an excel worksheet over to a google sheet? I have an excel file that is automatically updated daily from a database with all the data I need for my reports. The problem is that I'm required to use Google Sheets. I'm currently having to manually copy all the data from the "Database Dump" worksheet in my excel file and paste the data to my google sheet "Excel Import" tab every day. My reports are located in other

App Script to Pull data From Excel File to Google Sheet

徘徊边缘 提交于 2020-05-25 08:44:59
问题 Does anyone know of an existing app script that can be used to import all data in an excel worksheet over to a google sheet? I have an excel file that is automatically updated daily from a database with all the data I need for my reports. The problem is that I'm required to use Google Sheets. I'm currently having to manually copy all the data from the "Database Dump" worksheet in my excel file and paste the data to my google sheet "Excel Import" tab every day. My reports are located in other

Can I generate a file from Google Sheets script?

与世无争的帅哥 提交于 2020-05-24 21:28:09
问题 I'm using Google Sheets to prototype a bunch of numerical data for something I'm doing. Is there a way to export a subset to a text file? Effectively, what I'm aiming to do is export a file I can include directly in the build for another project. So is there a way to generate a text file for download? 回答1: If you have a Google Apps account, then you can use DocsList.createFile() to create the text file and save it in your documents list. Section 3 of this tutorial shows how to save the

Google Sheets onEdit - trying to copy a row to a new sheet by changing the value of a column within that same row

蓝咒 提交于 2020-05-24 05:18:09
问题 Please see Sheet1 of my spreadsheet: https://docs.google.com/spreadsheets/d/1EoOIQxWyKWOvtlCrmJNI76FAxGhzgXrE4s0F05tw2MY/edit#gid=0 As an example, I would like to copy the values (not formulas) of A3:G3 to the bottom row of the 'Master' sheet by changing the value in H3 to "submitResponse." Then, once that row is copied, I would like to automatically clear out cell H3, as well as range A2:G2 (the row ABOVE the row that was copied) because these will be variables that the user edits to adjust

What am I doing wrong when using onSelectionChange for [google-apps-script]

丶灬走出姿态 提交于 2020-05-23 14:15:06
问题 I found this trigger onSelectionChange(e) on developers.google.com it should set background to red if a single empty cell is selected. Im not getting that result with just copy and paste. I don't think Im missing a step any help would be appreciated. /** * The event handler triggered when the selection changes in the spreadsheet. * @param {Event} e The onSelectionChange event. */ function onSelectionChange(e) { // Set background to red if a single empty cell is selected. var range = e.range;

Google spreadsheet / docs , jump to current date cell on Open

本秂侑毒 提交于 2020-05-23 10:11:55
问题 I've searched for this topic and have found a few threads - however, none of the answers (usually in the form of scripts) in those topics have proven to be successful to me yet. I guess I'm messing up some variables. I have a spreadsheet in Google Docs that holds a work roster. In row B1:OI1 is just over a years worth of dates, i.e., B1 = Friday May 1st 2015, B2 = Saturday May 2nd 2015, OI = Wednesday June 1st 2016. I want the sheet to jump to the roster of either today, or to the monday of