Top "Google-sheets" questions

Use this tag for questions about interacting with Google Sheets programmatically.

Number of days between past date and current date in Google spreadsheet

I want to calculate the number of days passed between past date and a current date. My past date is …

date google-sheets datediff
How to define global variable in Google Apps Script

I see most examples from Google is they use only functions in a single giant script. e.g. https://developers.…

google-apps-script google-sheets global-variables google-docs
Google Sheet pulling data from another spreadsheet if match

So I'm stuck with something. I have two spreadsheets, column A on each are similar but not identical, some values …

google-sheets google-sheets-formula gs-vlookup
Write an array of values to a range of cells in a spreadsheet

Using Google Apps Script, is there a way to write the values in a Google Spreadsheet array to a range …

arrays google-apps-script google-sheets
Linking one google docs spreadsheet to another

I have data in one google docs. Call it docA. I would like to reference this data in docB. Something …

google-sheets formulas
Axis scale in google charts (from google spreadsheets)

I've generated chart form google spreadsheets. In my report for horizontal axis I have values: 1 ,2 ,3 ,4 ,5 ,10 ,20 ,30 ,40 ,50 ,100 ,200 ,300 ,400 ,500 ,600 ,700 ,800 ,900 ,1000. Chart interprets them as a …

google-docs google-sheets google-visualization
Delete a row in Google Spreadsheets if value of cell in said row is 0 or blank

I'd like to be able to delete an entire row in a Google Spreadsheets if the value entered for say …

google-apps-script google-sheets
How to union ranges in google spreadsheets

I want to union ranges from any Google spreadsheets. The example Sheet1!A:A {12, 131, 45} Sheet2!A:A {12, 131, 46} The unknown function =…

arrays google-apps-script google-sheets google-sheets-formula
Faster way to find the first empty row in a Google Sheet column

I've made a script that every few hours adds a new row to a Google Apps spreadsheet. This is the …

performance google-apps-script google-sheets
Refresh data retrieved by a custom function in Google Sheet

I've written a custom Google Apps Script that will receive an id and fetch information from a web service (a …

google-apps-script google-sheets custom-function