Top "Google-sheets" questions

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

Open Google Docs Spreadsheet by name

I have a situation where a script is taking input data and sending it to a spreadsheet. After a while, …

google-apps-script google-sheets google-drive-api google-apps
Split string and get last element

Let's say I have a column which has values like: foo/bar chunky/bacon/flavor /baz/quz/qux/bax I.…

regex google-sheets split google-sheets-formula re2
Is there a way to insert blank columns in output with google sheets query?

Consider the query run from sheet2 =query(Sheet!A7:A, "Select A,B,C where A='Order'") but I want …

google-sheets google-query-language
How to automatically update charts linked to Google Sheets?

I have a Google Slides presentation with charts that are linked to a specific Google Sheets Spreadsheet. As there are …

charts google-apps-script google-sheets google-slides-api google-slides
A "constant" in google spreadsheet?

Say I have 2 columns: (this is extremely simplified) Data = a number Result = Data * 1.2 I can put B2 = A2*1.2, then drag …

google-sheets google-sheets-formula
Multiple regex matches in Google Sheets formula

I'm trying to get the list of all digits preceding a hyphen in a given string (let's say in cell …

regex google-sheets re2
Google Spreadsheet Script - How to Transpose / Rotate Multi-dimensional Array?

I'm trying to create a function that takes in any array and transpose it so that rows turns to columns …

javascript google-apps-script multidimensional-array google-sheets transpose
sheet.deleteRows() - Need to delete all the rows with data from top (preferably from 2nd row)

I need to delete 200-300 rows, excluding row 1. The script below is getting an out of bounds error, and it's …

google-apps-script google-sheets delete-row
Wrong results in Google spreadsheets Lookup functions (vlookup, hlookup, match)

The following spreadsheet demonstrates a very odd behaviour of Google Spreadsheets Lookup functions. I've used these functions many times without …

google-sheets google-docs gs-vlookup
How to use CONCAT in QUERY?

I have a table: A | B | C BEN | MOSKOW | YES ANTON | IRKUTSK | NO VIKTOR | PARIS | YES BEN | PARIS | YES ANTON | …

google-sheets transpose array-formulas google-sheets-query