google-sheets

How to split a google sheet range into parts by sum

陌路散爱 提交于 2021-02-11 06:12:45
问题 I have a three column sheet: Name (ID), Length (Timespan), Category (Arbitrary, could be sequence). I would like to automatically fill the Category column with values such that each category will have the same sum of the Length column. Currently I am splitting the category column evenly using the formula =TRANSPOSE(SPLIT(JOIN(",", ARRAYFORMULA(REPT(G2:G9&",", H2))), ",")) which I have copied from this site. Since the Length column varies by a lot I get categories that are of much different

How to split a google sheet range into parts by sum

左心房为你撑大大i 提交于 2021-02-11 06:12:18
问题 I have a three column sheet: Name (ID), Length (Timespan), Category (Arbitrary, could be sequence). I would like to automatically fill the Category column with values such that each category will have the same sum of the Length column. Currently I am splitting the category column evenly using the formula =TRANSPOSE(SPLIT(JOIN(",", ARRAYFORMULA(REPT(G2:G9&",", H2))), ",")) which I have copied from this site. Since the Length column varies by a lot I get categories that are of much different

Trigger an alert at a specific time on Google Script

杀马特。学长 韩版系。学妹 提交于 2021-02-11 05:54:12
问题 I'm very new to scripting so if anyone knows how to do this it'd be great help! I have a user that logs in on business days at ~9 am, and has to do something before 9.30 am. To remind and insist that it's done I want to have an alert that says to do it, if a certain cell is not empty. Ideally it would check at 9, 9.10, 9.20 and 9.30, and pop up each time until it's done. I tried to set up a trigger every 10 minutes, but I read that you can't use triggers with UI. function startCustomTrigger()

Google Sheets: How to import the following data?

北城以北 提交于 2021-02-11 05:00:07
问题 Data Source https://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/TextView.aspx?data=yieldAll I am trying to get the following data onto a Google Sheet, but it is looking to be tricky to do so using IMPORTXML. Any idea how to do it? 回答1: You want to retrieve a table from the HTML data of the URL. From I am trying to get the following data onto a Google Sheet , I thought like this. If my understanding is correct, how about this answer? Issue and workaround:

Google Sheets: How to import the following data?

二次信任 提交于 2021-02-11 04:57:45
问题 Data Source https://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/TextView.aspx?data=yieldAll I am trying to get the following data onto a Google Sheet, but it is looking to be tricky to do so using IMPORTXML. Any idea how to do it? 回答1: You want to retrieve a table from the HTML data of the URL. From I am trying to get the following data onto a Google Sheet , I thought like this. If my understanding is correct, how about this answer? Issue and workaround:

Image crop with AppScripts in Sheets or Drive

邮差的信 提交于 2021-02-11 04:20:00
问题 I am evaluating Google Sheets with AppScripts for a report generator. The requirements include inserting images from Google Drive. One of the input image has a fix format, which I need to crop. ( So the dimensions of the original image and the dimensions of the crop is known.) I am looking for a solution to achieve this outcome, but I am struggling. I looked into the following methods: No image crop function in the Drive API No image crop ( only resize) for the Sheets OverGridImage object No

Image crop with AppScripts in Sheets or Drive

我的梦境 提交于 2021-02-11 04:19:20
问题 I am evaluating Google Sheets with AppScripts for a report generator. The requirements include inserting images from Google Drive. One of the input image has a fix format, which I need to crop. ( So the dimensions of the original image and the dimensions of the crop is known.) I am looking for a solution to achieve this outcome, but I am struggling. I looked into the following methods: No image crop function in the Drive API No image crop ( only resize) for the Sheets OverGridImage object No

URL ZOOM PARAMETER for exporting sheet to pdf

假装没事ソ 提交于 2021-02-11 02:46:30
问题 Another question on URL parameters... sorry. Actually, I've been searching a lot about how to solve this, here and pretty much everywhere else, and I found absolutely nothing. Zero! Really appreciate if someone can give me a hand. Here's the thing, I'm exporting a google sheet to pdf with the following URL code. var url = "https://docs.google.com/spreadsheets/d/"+ssID+"/export"+ "?format=pdf&"+ "size=7&"+ "portrait=false&"+ // "zoom_scale=130&"+ "top_margin=0.00&"+ "bottom_margin=0.00&"+

Storing an HTML selection into a variable / using that data in Google Sheets

三世轮回 提交于 2021-02-11 02:44:13
问题 I am almost there with an HTML form selector, which creates an array based on data from a google sheets column (done) and populates that data into a dropdown box (done). What I have been trying all weekend to figure out is how to capture the selection of the dropdown option and then lump that into a variable. Here is my google script code that launches the HTML popup: function ClientDropDownHTML() { var template = HtmlService.createTemplateFromFile('index'); var htmlDlg = template.evaluate()

Shift values in Google Spreadsheet

核能气质少年 提交于 2021-02-10 23:45:06
问题 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