Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Google Sheets onEdit Trigger - Automatically Drag Down Formulas - Apps Script

84.3K views
•
July 29, 2019
by
Learn Google Sheets & Excel Spreadsheets
YouTube video player
Google Sheets onEdit Trigger - Automatically Drag Down Formulas - Apps Script

TL;DR

This video tutorial shows how to write a script in Google Sheets that automatically drags down formulas in a spreadsheet based on user input.

Transcript

alright so in this video I'm gonna create a script that will automatically drag down our formulas in our spreadsheet what I basically wanted to happen I want to be able to add some columns here and I want to be able to go here and create a formula like this - this does actually do - this and when I hit enter see I want this to automatically just dr... Read More

Key Insights

  • 👻 Writing a script in Google Sheets allows users to automate tasks and increase efficiency in spreadsheet management.
  • 💳 By utilizing triggers, such as "on edit" and "on added," scripts can be set to run automatically based on predefined conditions, saving time and effort.
  • 👤 The script in the video tutorial demonstrates how to drag down formulas in a spreadsheet based on user input, making it easier to update and manage large datasets.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How does the script identify the current active cell in the spreadsheet?

The script uses the "getActiveCell()" function to retrieve the current active cell in the active sheet of the Google Sheets document.

Q: Can the script distinguish between different tabs in the Google Sheets document?

Yes, the script includes logic to check the name of the active sheet and compare it to a predefined list of tabs that the script should apply to. This allows the script to work only on specific tabs.

Q: What happens if a non-formula value is entered in the active cell?

The script includes a check to ensure that the active cell contains a formula. If the cell does not contain a formula, the script will not execute the drag-down functionality.

Q: How does the script update the dragged formulas when changes are made?

The script utilizes an "on edit" trigger, which is triggered whenever a change is made to a cell in the spreadsheet. By comparing the old value and the new value of the formula, the script determines if the formula needs to be updated and performs the necessary drag-down operation.

Key Insights:

  • Writing a script in Google Sheets allows users to automate tasks and increase efficiency in spreadsheet management.
  • By utilizing triggers, such as "on edit" and "on added," scripts can be set to run automatically based on predefined conditions, saving time and effort.
  • The script in the video tutorial demonstrates how to drag down formulas in a spreadsheet based on user input, making it easier to update and manage large datasets.
  • The script can be customized to work with specific tabs and columns, providing flexibility and control over its functionality.

Summary & Key Takeaways

  • The video demonstrates how to create a script that allows users to input formulas in a spreadsheet column and automatically drag them down to other rows.

  • The script is designed to update the dragged formulas when changes are made to the original formula or when formulas are added or removed.

  • The tutorial also shows how to add an "on added" trigger to run the script automatically whenever a formula is added to the spreadsheet.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from Learn Google Sheets & Excel Spreadsheets 📚

How to Create Dependent Dropdowns in Google Sheets thumbnail
How to Create Dependent Dropdowns in Google Sheets
Learn Google Sheets & Excel Spreadsheets
Python Data Analysis with Gemini AI & Google Colab thumbnail
Python Data Analysis with Gemini AI & Google Colab
Learn Google Sheets & Excel Spreadsheets
How to Search for Data in Google Sheets Using QUERY thumbnail
How to Search for Data in Google Sheets Using QUERY
Learn Google Sheets & Excel Spreadsheets
How to Use Array Formulas in Google Sheets for Autofill thumbnail
How to Use Array Formulas in Google Sheets for Autofill
Learn Google Sheets & Excel Spreadsheets
Pivot Tables in Google Sheets A-Z Tutorial thumbnail
Pivot Tables in Google Sheets A-Z Tutorial
Learn Google Sheets & Excel Spreadsheets
GOOGLEMAPS Function - Google Sheets Tutorial - How to Get Distance & Time Live Data to Spreadsheets thumbnail
GOOGLEMAPS Function - Google Sheets Tutorial - How to Get Distance & Time Live Data to Spreadsheets
Learn Google Sheets & Excel Spreadsheets

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.