Category "google-apps-script"

Exception based on condition on Apps Script in Google Sheet

With this script I can exclude to insert the same value column in Google Sheet for maximum 100 times. But I am trying to exclude (with if statement) some values

The right XPATH for IMPORTXML (for Yahoo Finance)

I am trying to extract the Stock Price History Section from Yahoo Finance Statistics page. The following Xpath seems to point to the right section, but the func

How to protect cells from further edits after a specific condition is met in Google sheets?

I am maintaining a workbook in google sheets where users update their status and date of completion after a certain task is done. A single sheet contains a stat

Concatenate two variables for email subject

I am trying to fetch the attachment data from gmail to google sheets with identifier as subject. The subject format is such as "Disbursement File 2022-05-14" w

Google sheets script - multiple sheets to pdf script

I have made a script that exports a certain sheet to a PDF. But at this moment we want to add a second sheet, so we need to export 2 sheets to a single PDF . An

Delete Rows a day after the date has passed

I am still fairly new at script writing and am trying a write a script that deletes a row one day after the date which is in column L. The data is in range A133

Is there a single Apps Script function equivalent to MATCH() with TRUE?

I need to write some functions that involve the same function as the Sheets function MATCH() with parameter 'sort type' set to TRUE or 1, so that a search for 3

Filling up an empty cell with adjacent cell's value

I am looking for a simple script which can turn this into this As you can see I have manually copied and pasted those empty cells in E column with the corresp

Is it possible to run a Google App Script from Google Colab?

I have a Google Colab Workbook that does some scrapping and saves the scrapped files in my Google Drive and I also have a Google App Script that manipulates the

Appending GoogleFinance while copy data from source sheet to target sheet

I am copying source sheet data to target sheet by using following code (Thanks to Iamblichus). How to append the target sheet data with "=GOOGLEFINANCE(A1,price

How to transfer data from webapp to addon

Project_1 is a container-bound script. A container is a readable spreadsheet (Template). Code_1: function doPost(e) { return HtmlService.createHtmlOutput(JSON

Where can i see the analytics of an Google App Script Deployment?

I created a small app on top of a spreadsheet (with GAS and HTML, CSS) and I deployed it. Users can access to it without having to enter in the spreadsheet. It

ultimate short custom number formatting - K, M, B, T, etc., Q, D, Googol

is there a way how to custom format ridiculously large numbers (at least up to 10^100 in both ways) in google sheets: thousands > K millions

Pull List of GA4 Properties Using Google Analytics Admin API and App Script

Wondering if anyone has experience exporting a list of GA accounts and properties to a spreadsheet using the new Analytics Admin API. I've used the Management A

Retrieve the deals from Hubspot using its APIs

I'm trying to integrate the Hubspot Deals to Google spreadsheets, I'm following a tutorial https://medium.com/how-to-lean-startup/create-a-hubspot-custom-dashbo

Prevent IMPORTDATA from refreshing

I have a script runing which uses IMPORTDATA to capture data from a website. Every hour it goes to the website, and captures a price value, and pasts it into a

setValues Exception: Service error: Spreadsheets How to fix range errors?

function chk(){ //PDD data setting var today=new Date(); var Date = Utilities.formatDate(new Date(today.getFullYear(),today.getMonth(),today.getDate()), S

Why is this 2D array filtering not working?

I have this 2D array and I'm trying to filter it, but it's coming out unfiltered: Data: [ ["Val #","Val #","Val #","Val #","Val #"], ["SO-000379-001A-047-1","

Filtering google sheets import data before import

I have a script that imports data from a google sheet. Before importing the data into the new sheet I would like to filter it. In Column2 are our Cost centers l

Google app script Youtube service fails to insert live chat message

I wrote a function to insert a message in a youtube live chat using Youtube service in google app script. However the function throws an error GoogleJsonRespons