Category "google-apps-script"

I have to google apps script that I want to have the data sorted automatically

I have this script below that imports data automatically from several sheets via a master sheet that has a list of sheet IDs. I would like the data to be auto s

Google sheets script Auto-run a script and add function in the menu bar

I use a script that allows me to delete the empty rows in the middle of my table and also constantly adds rows at the bottom so that I can keep filling it. Ever

App Script Array Push() in loop Optimization

I'm looking to improve my array push inside loops but I noticed that every time my function is being called (in a loop manner) and executing this lines of code,

Most efficient way to build range from range based on content (e.g. formula)

What is the most efficient way with google script to build a range (newRange) from another range (baseRange) based on some criteria (e.g. the formula contains '

Syntax error: SyntaxError: missing ) after argument list - Google Sheets (super weird one)

I've been trying to save this macro but I get the error message at line 29. However, everything looks right to me? I cannot understand how to get rid of the err

Fetch Google Drive File path in Google Sheet

Want to fetch Google Drive File path, by exact File Name search with Extension and update in other column "Drive File Path" function onOpen() { let menu = Sp

Convert a date to numeric format google app script

I want to convert a date like this dd/mm/yyyy to numeric format but I don't find any way to do this in google app script For example I have a date in my "L2" ce

How the best and fast way to send multiple data into google spreadsheet?

I want to send multiple data using chrome extension into Google spreadsheet. I tried using loop but sometimes it's replacing the data in the current process. I

Apps Sripts are not executed on shared Google Sheet

I got a Apps Script (onEdit) running, that locks certain cells when a particular time is over, and it also makes a time stamp. The script works perfectly, but o

Inventory management on google sheet

Google sheet stock inventory Hello everyone, I'm turning to you because I can't get my code to work on google Sheets. The purpose of the program is to be able t

Range Not Found, Google Apps Script for Google Sheets

I'm trying to build a custom range for this sort function in an Apps Script for Google Sheets but I keep getting the error: "Exception: Range not found; sortPro

appscript - get multiple selected rows

If i mark and select 5 rows in google sheet. I want to retrieve an array of retrieved rows. Particully column (0). function selectRow() { var sheet = Spreadsh

Google sheet script to delete row if certain cells are empty and add row at the bottom [closed]

I have a sheet with a table with content in the range B6:Y1000. I would like a script that would delete all rows if column C-D-E-F-G are empty

Google script - Service error: Spreadsheets

As of a couple of weeks now, I'm getting a "Service error: Spreadsheets" error when running a script in Google Sheets. Before that, it was working fine. It's su

Apps Script Service Account Ownership Issue

I encounter the following problem: An external app is using a service account to copy Google Sheets from a template folder to a shared drive. After the copy the

Apps Script Searches for specific cell in spreadsheet

i made a bot for telegram using Apps script i have a spreadsheet which has a database... 3 columns 500 rows ID , Username, Full Name i want to make a command fo

IP address of apps scripts for whitelist

Im trying to build an automatic program that get leads from API to my google sheet. when im running the program from my pc all works great, but, when im trying

How to call an external API from Google Apps Script

I want to call the Steem API from inside a Google Apps Script function. I want to see the appropriate server response. But I get the following error instead. A

IMPORTXML Change the imported format in a cell

I used the IMPORTXML formula to import values from a website. The formula imports a list of 4 cells in a column. The value of the 3rd cell is a number with a do

Google Sheets- How to Clear, Zero Out, or Replace Specific Cells Efficiently Via Script

This is three similar actions needed in one sheet. Hopefully this ends up being a useful question in general. I have a script that copies the values of arbitrar