google-sheets

How do I speed up Sheet load times with a lot of importranges?

痞子三分冷 提交于 2021-02-11 09:49:51
问题 I've been promoted into developing & maintaining a Google Sheets database at work. I know very little about Google Sheets scripting & from asking around, and researching it's looking like GAS is probably the avenue that I need to start heading down. So we have 3 Workbooks in Google Sheets; 2 contain large amounts of data, the other workbook provides a UI for our sales dpt. to access the data. I really wish I could share these with you, as describing them is difficult. In the UI workbook,

how to make a new table from an existing table and add new column in spreadsheet

不打扰是莪最后的温柔 提交于 2021-02-11 08:43:00
问题 I want to Ask about spreadsheet or google-sheets formula. I have a data that looks like this: A B C D ------------------------------------------------ 1 | UserId fruitType media PriceStatus 2 | 3 Apple Bag Paid 3 | 7 Banana Bag Paid 4 | 7 Apple Bag Paid 5 | 43 Banana Bag Paid 6 | 43 Apple Bag FREE 7 | 43 Apple Cart Credit Note: My data only consist of 2 type of fruit : Apple and banana 2 type of media : Bag and Cart 3 Type of PriceStatus : Paid , Credit , & Free As you can see the column is

Copy over the row in another sheet when checkbox checked in Google Sheets

烈酒焚心 提交于 2021-02-11 08:09:51
问题 What can be the way to cut a specific row and paste it into another tab of the same sheet when checkbox condition meet is true? 回答1: in given scenario: on Sheet1 you have a checkbox in A1 cell with logic FALSE/TRUE on Sheet2 paste this formula into A1 cell: =IF(Sheet1!A1=TRUE, Sheet1!B1:1, ) 来源: https://stackoverflow.com/questions/54890922/copy-over-the-row-in-another-sheet-when-checkbox-checked-in-google-sheets

Copy over the row in another sheet when checkbox checked in Google Sheets

我的梦境 提交于 2021-02-11 08:08:59
问题 What can be the way to cut a specific row and paste it into another tab of the same sheet when checkbox condition meet is true? 回答1: in given scenario: on Sheet1 you have a checkbox in A1 cell with logic FALSE/TRUE on Sheet2 paste this formula into A1 cell: =IF(Sheet1!A1=TRUE, Sheet1!B1:1, ) 来源: https://stackoverflow.com/questions/54890922/copy-over-the-row-in-another-sheet-when-checkbox-checked-in-google-sheets

Copy over the row in another sheet when checkbox checked in Google Sheets

喜你入骨 提交于 2021-02-11 08:08:44
问题 What can be the way to cut a specific row and paste it into another tab of the same sheet when checkbox condition meet is true? 回答1: in given scenario: on Sheet1 you have a checkbox in A1 cell with logic FALSE/TRUE on Sheet2 paste this formula into A1 cell: =IF(Sheet1!A1=TRUE, Sheet1!B1:1, ) 来源: https://stackoverflow.com/questions/54890922/copy-over-the-row-in-another-sheet-when-checkbox-checked-in-google-sheets

Is JavaScript function.bind() supported in google sheets?

余生颓废 提交于 2021-02-11 08:04:33
问题 Here a simple code i'm trying to run in google sheets script. The purpose is supplying the foreach callback function additional parameters. function print(str, num) { Logger.log(str + ": " + num); } function test() { var array = [1,2,3]; var str = "Stam"; //This line has an exception // TypeError: Cannot convert null to an object array.forEach(print.bind(null, str)); } test(); this code is based on the solution described here. I know there are other solutions, though i want to understand why

Handling multiple rows returned by IMPORTJSON script on GoogleSheets

时间秒杀一切 提交于 2021-02-11 07:42:34
问题 I am trying to populate a google sheet using an API. But the API has more than one row to be returned for a single query. Following is the JSON returned by API. # https://api.dictionaryapi.dev/api/v2/entries/en/ABANDON [ { "word": "abandon", "phonetics": [ { "text": "/əˈbændən/", "audio": "https://lex-audio.useremarkable.com/mp3/abandon_us_1.mp3" } ], "meanings": [ { "partOfSpeech": "transitive verb", "definitions": [ { "definition": "Cease to support or look after (someone); desert.",

Handling multiple rows returned by IMPORTJSON script on GoogleSheets

荒凉一梦 提交于 2021-02-11 07:41:01
问题 I am trying to populate a google sheet using an API. But the API has more than one row to be returned for a single query. Following is the JSON returned by API. # https://api.dictionaryapi.dev/api/v2/entries/en/ABANDON [ { "word": "abandon", "phonetics": [ { "text": "/əˈbændən/", "audio": "https://lex-audio.useremarkable.com/mp3/abandon_us_1.mp3" } ], "meanings": [ { "partOfSpeech": "transitive verb", "definitions": [ { "definition": "Cease to support or look after (someone); desert.",

Parse Nested Json Data to Google Sheets with App Script

三世轮回 提交于 2021-02-11 07:08:53
问题 i'm trying to parse a JSON into a Google Sheets. Everything work like a charm except that i figured out JSON has childitems that i need to return as columns. Json Example { "status": "OK", "items": [ { "order_id": 1290, "date": "2019-12-24", "services": [ { "start_at": "08:00", "end_at": "09:00", "service_id": 121, "assistant_id": 0 }, { "start_at": "12:00", "end_at": "13:00", "service_id": 122, "assistant_id": 0 } ], } ] } And what i need to get into Google Sheets is order_id|date |services

Clone Googlsheet which has formulas/importranges

不问归期 提交于 2021-02-11 06:51:52
问题 I would like to clone/copy a google sheet and locate it in a drive, The script i have at the moment is working for this element but the contents appear blank becuase of formulas/importranges Please can you help with this. Current script is function cloneGoogleSheet2() { const destFolder = DriveApp.getFolderById("xxxxxxxxxxx"); const file = DriveApp.getFileById("xxxxxxxxxxxxxxx").makeCopy("xxxxxxxxx", destFolder); const ss = SpreadsheetApp.openById(file.getId()); const sheets = ss.getSheets();