6,157 questions
2
votes
1
answer
82
views
Request text rotation in Google Sheets API [duplicate]
I want to replicate a sheet from Google Sheets to a Markdown type. I'm using the API to request it:
from google.oauth2.service_account import Credentials
from googleapiclient.discovery import build
...
Best practices
0
votes
1
replies
59
views
Why is there no spreadsheets.file scope similar to drive.file for user-selected Sheets only?
I’m running into some confusion with OAuth scopes around Google Sheets and wanted to sanity check that I’m not missing something obvious.
My use case is pretty simple:
I let users pick a Google Sheet ...
3
votes
1
answer
77
views
How to get information from merged cell in Google Sheets API
I have a problem. I need to get info from merged cell, but this information only on first cell of this merged cell.
F.e. I get request for cells C2:C3. But C3 is a part of merged cell A3:C3. How I ...
0
votes
1
answer
68
views
When big data : requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
The problem appears when i have a big amount of values in my pandas df. When i take 27 or 54 values(1 or 2 columns) it works normaly, but when i take more columns it gives me this erorr (i import gs ...
1
vote
1
answer
461
views
'str' object is not callable in Google SDK when trying to fetch a spreadsheet
I'm trying to fetch a spreadsheet with Google SDK. I'm logged into an account with a Service Account Token Creator role and the service account has access rights to the spreadsheet. This is my code:
...
Advice
0
votes
4
replies
74
views
Slides Add-On accessing Sheets Data and Narrowing Scopes
I have an Add-On under review in the Google Marketplace.
My Add-On runs in Google Slides and needs to access Google Sheets data to create various visuals in Slides. Specifically my Add-On pulls data ...
0
votes
0
answers
29
views
How to insert an image from Google Drive inside a Google Sheet Cell programmatically (via API)?
Everything is in the title.
Google Sheet API v4 doesn't have a native method to add an image into a cell.
Google App Scripts doesn't work with a service account which I'm using.
IMAGE() function doesn'...
0
votes
0
answers
71
views
Flask + gspread: multiple Google Sheets API calls (20+) per scan instead of 1
I’m building a Flask web app for a Model UN conference with around 350-400 registered delegates.
OCs (Organizing Committee members) log in.
They scan delegate IDs (QR codes or manual input).
The ...
0
votes
0
answers
64
views
What function should I use to search a 2d Array for a value and return all values from left most column
I Have a sheet that is bringing across all the article ID's listed there (and associated names) in line with the said name of that sheet.
Also above this information I am looking to make a simple ...
0
votes
0
answers
164
views
How to create a Google Spreadsheet document using a service account?
I am building a script which is supposed to create and update documents in a certain folder of my Google Drive (personal account, not Google Workspace).
If there is no document that particular name, ...
-1
votes
2
answers
461
views
Change the vertical padding in Google Sheets tables
In Google Sheets, if you click Insert → Pre-built tables and then for example Blank table, the vertical padding of cells changes and userEnteredFormat.padding stops having an effect (you can try ...
0
votes
2
answers
147
views
How to fix offset column names in `addTable` request?
I'm trying to create a Table in a Google Sheet using the API in Python.
I've constructed an API request that mimics the example one here. My request looks like this:
{
"requests": [
{
...
0
votes
0
answers
41
views
automate =QUERY(IMPORTRANGE) or =IMPORTRANGE()
I need to have =QUERY(IMPORTRANGE) or simply =IMPORTRANGE() in sheets2 and sheets3 to automatically do its' thing as soon as the exporting sheet (source file) receives the data from its' source (drive ...
0
votes
0
answers
108
views
Node.js Google Sheets API returns 401 'Login Required' on first call despite valid refresh token
I am building a Node.js server-side application that needs to interact with the Google Sheets API on behalf of a user using the googleapis and google-auth-library packages.
I have successfully ...
0
votes
1
answer
73
views
Page Totals and Running Totals on Export in Google Sheets
I'm looking to export a logbook of mine to paper. The logbook consists of entries of hours based on dates that continue row by row.
I need to export these entries through printing with each page ...
0
votes
0
answers
99
views
The caller does not have permission
I have the code to create a new Spreadsheet using Service account, everything was working good, but after I change the sheet value manually with my own email, google has blocked the spreadsheetsand ...
0
votes
2
answers
135
views
Google sheets setting columns range in app script
I have this worksheet that im working on:
https://docs.google.com/spreadsheets/d/1u_CafEOKNLtthpWaXVo37BKiuRHQ2oGEC4liqkTmXuY/edit?usp=drivesdk
and I have this script:
function createWhatsAppHyperlink(...
0
votes
1
answer
225
views
How to debug Sheets.Spreadsheets.batchUpdate
I have a script that imports sheets from one project to another by way of the script ID. It's a very large script so it would not be feasible for me to condense it down to a MRE because I do not know ...
0
votes
0
answers
75
views
How to create data validation ONE_OF_RANGE with relative range using Google Sheets API V4?
I have a spreadsheet with two sheets, 'MySheet' and 'MySheetOptions'. I want column A of 'MySheet' to be dropdowns with options defined in the corresponding row of 'MySheetOptions'. That is, the ...
2
votes
1
answer
292
views
How to enable multiple selection in data validation dropdown using Google Sheets API?
I'm trying to create a data validation rule that allows multiple selection from a dropdown list using the Google Sheets API. In the Google Sheets UI, there's an option "Allow multiple selections&...
-1
votes
1
answer
159
views
Is there any way to use oauth 2.0 in Azure Data Factory to access Google Sheets API?
I am trying to write a basic google sheet from the Azure Data Factory. Any ideas that work in 2025? I have tried a lot of approaches to no avail. Reading works fine with a basic API token, but ...
0
votes
1
answer
75
views
How to describe range for all rows (no column constraint) starting from given one?
In Google Spreadsheet API to work on values (e.g. get, update), you can use open-ended row ranges in the form <column-start><row-start>:<column-end> (e.g. A2:A to get all cells from ...
0
votes
0
answers
74
views
Google Sheets API - Unable to style BOTTOM_AXIS (text color and font size) after updating chart range
I'm working with the Google Sheets API to update a chart's data range and axis styling. The data range update works fine, but changes to the BOTTOM_AXIS text style (e.g., setting font size to 50 and ...
-1
votes
1
answer
107
views
Edit Google Drive and Sheets Files (Airflow Google Provider): Insufficient credentials
I am trying to modify a Google Sheets file and a CSV file in Google Drive via the Apache Airflow Google Provider:
df = pd.DataFrame(data)
csv_data = df.to_csv(index=True)
gcs_hook = GCSHook(...
1
vote
0
answers
83
views
How to fetch calculated values (not formulas) from an Excel sheet stored in Google Drive? [duplicate]
I have an Excel file stored in Google Drive that contains several columns with calculated fields (i.e., formulas like =C2*D2).
My goal is to programmatically fetch the evaluated values (not the raw ...
-1
votes
1
answer
428
views
issue with formula googlefinance
I am having an issue with a specific symbol of the HK stock market using the formula googlefinance().
=googlefinance("HKG:2800","price")
returns no value where all other tickets ...
-1
votes
1
answer
683
views
How to fix an apparently expired refresh token?
I have a python app that uses gspread, and I haven't run it in about a year, and I believe it is failing because of an authentication problem. My diagnostic output is as follows:
DEBUG:urllib3.util....
1
vote
0
answers
88
views
Why do I always have new data written below? (I need it to be written to the right)
I have data transferred to a Google spreadsheet in a row and after reaching column Z, my data is transferred below and starts with column A and continues below, but I need it to be written to the ...
0
votes
2
answers
120
views
Moving Value from Google Sheets Cell to Google Doc
I have a Google Sheet that has long blocks of text in each cell of column H (it is input from a long-form response box in a Google Form). I want to take each response and move it onto a new page of a ...
1
vote
2
answers
114
views
How to delete a row in Google Sheets getting the max of a column?
I need to read the Google sheet and getting the max value of a column and deleting the data to update them.
I tried to get the max value and pass to delete_rows method, but don't work well.
...
0
votes
1
answer
145
views
Google Workspace Add-on doesn't display homepage card in Sheets, only shows “Help” button after installation [duplicate]
I'm building a Google Workspace Add-on for Google Sheets using CardService. I’ve configured the homepageTrigger properly in the manifest and the onHomepage() function returns a simple card with a ...
0
votes
1
answer
60
views
How do I make a drop down of variations for a product?
When I type "product" in a cell. The cell next to it would show a list of available variations via a drop-down menu?
Something like this?
This is the data sheet
DATA SHEET:
Column A
Column B
...
0
votes
3
answers
110
views
Google APIs - Worksheet.UsedRange equivalent?
Do you know if there is some call in Google APIs which is roughly equal to MS Excel VBAs Worksheet.UsedRange? Attempted finding something, but have not had any positive results so far ...
Short ...
0
votes
0
answers
92
views
SheetsChart refresh not working in "Slideshow" mode
I want to updated a liked SheetsChart for Google Slides. It works instantly when the slide is in edit mode, doesn't refresh the chart with latest data from Google Sheets when it's in "Slideshow&...
-3
votes
1
answer
1k
views
(Google Sheets) How should I pull data from a sheet into another sheet automatically
so this is just a steps for this project. I will explain the full project first, and maybe you can suggest another solution.
Basically, I have a template sheet for my job (Staffing Sheet). The sheet ...
-6
votes
2
answers
200
views
how to replace code in highcharts+datatables? (i want data from google sheets)
i have datatables + highcharts (in Child rows ) and i want change code and i want data from google sheets and Is it possible to change?
now data from json and i want data from google sheets and i want ...
-1
votes
1
answer
108
views
how to update datatables+highcharts code ? ( google sheets v3 to v4)
i have datatables + highcharts and now don't working and i want replace sheets api v3 to v4
codepen.io/intprotest/pen/ewQJrK?editors=1010
https://sheets.googleapis.com/v4/spreadsheets/...
0
votes
1
answer
540
views
How to Automatically Trigger a Webhook on New Row Addition in Google Sheets Using Google Apps Script?
I’m working on a feature where a client can link their Google Sheet to my system. Whenever a new row is added to the sheet, the system should send the new order data to a webhook. My initial approach ...
1
vote
0
answers
95
views
How do you determine the index of an existing conditional formatting rule when multiple sheets have rules in the Google Sheets API?
As indicated by the docs, it sounds like I should:
Get a list of the existing conditional formatting rules
Use the index (aka, the key within sheets[0][conditionalFormats]) and send a batchRequest to ...
1
vote
1
answer
110
views
Cannot sort table by column using Google Sheets API in C#
I have a C# program that can fetch add and edit and remove values in my Google sheet. But I can't seem to sort the records in the table correctly. Here is my code:
public bool SortGoogleSheet(
int ...
1
vote
1
answer
97
views
Not able to convert Excel file into google sheet
I have an XLS file in Google Drive. Using Google Apps Script, trying to convert to Google Sheets. But it is being stored as Google Docs instead.
function readBlob() {
var file = DriveApp.getFileById(...
0
votes
0
answers
104
views
WooCommerce Order Status Not Updating via API in Automation Testing, But Works Manually
We have a plugin called FlexOrder, whose main functionality is to sync WooCommerce orders with Google Sheets and access them there. One of its key features is updating the order status by selecting ...
-4
votes
1
answer
99
views
Formula in Google Sheets Returns All Results Instead of the Specific One
I’m having an issue in Google Sheets and could really use your help.
Right now, my formula is returning all available results, but I only want it to return the specific result associated with the code ...
1
vote
1
answer
121
views
Google Sheets API - Create empty sheet - Slow performance
Using the Python example taken directly from the "Google Sheets API documentation > Create a spreadsheet" and changing only the credentials, I am experiencing poor performance. It's ...
0
votes
1
answer
66
views
Sum a Column when a row says a specific text
On the OMS IV tab I need H22 to add the number of weeks in column D if j15:ab15 says non-clinical. Column D turns light yellow when the corresponding J15 etc shows non-clinical, but now I need to add ...
1
vote
1
answer
135
views
Sheets API Method spreadsheets.values.clear is clearing data validation when it shouldn't?
I'm trying to clear all the values from a Google Sheets sheet, while keeping the formatting and data validation (e.g. dropdowns and checkboxes). The documentation for the spreadsheets.values.clear API ...
0
votes
1
answer
57
views
reading google sheet rows marked with certain colors
I am creating a Java application where I need to read google sheets, create objects from the row values and store them in the database.
The problem is that I need to read not the whole sheet (tens of ...
2
votes
2
answers
819
views
Is there a way to create a Sheets Table from apps script?
As the title suggests, I would like to create a Table from a specific range in a worksheet using code from Apps Script. I searched around but I didn't find an answer.
Thanks
Google Sheets Table
I did ...
0
votes
0
answers
65
views
When do time-driven triggers initially go off?
I'm using time-driven triggers in my apps script to get it to run my code every 2 hours. The problem is that there are reasonably specific times I would like this to happen - it doesn't have to be ...
0
votes
0
answers
123
views
The error "This range already has a worksheet with different title set"
The program works as it should, that is, it fills in the Google Sheets table, but for some reason, when executing this code, the error This range already has a worksheet with different title set is ...