Google Sheets Gid Number? - google-sheets

Hi xlxm file is constantly syncing on google drive
I don't want to convert this file to e-tables, so I create e-tables by publishing it on the web and keep it updated regularly with IMPORTHTML code.
While doing this, my Gid number is constantly changing.
I need to specify gid because otherwise
"The resource in the url contents has exceeded the maximum size."
I get an error
Therefore I'm using
=IMPORTHTML("https://docs.google.com/spreadsheets/d/e/2-----/pubhtml?gid=1162590611&single=true"; "table"; 4; "en_US")
but ? gid page number keeps changing
Every time I update the xlsm file
I am not adding a new page.
pulling my file published through google sheets

Related

IMPORTHTML Limits and Alternates

I am trying to build a daily tracker for my work group and have been pulling the data from a weburl using IMPORTHTML function. But often the function fails saying Resource at url contents exceeded maximum size. What is the limit on the rows that can be imported using IMPORTHTML? It seems to be breaking somewhere around 10k rows.
If I have to import more rows than that, say 100k, what is the best way to do that?
You can use apps script to accomplish it.
With UrlFetchApp you can get all the data from your url.
Once you have the data you can use SpreadsheetApp to insert these data in the sheet.

google sheets api : get cell value for every spreadsheet in a collection

I have a spreadsheet collection.
Each spreadsheet has a value in A1.
I need to get this value for every single spreadsheet and collect them somewhere.
I can retrieve my list of spreadsheet with a google drive api request (list request) and get all the fields I want. I set some specific properties for every spreadsheet.
Can I retrieve some file content in this files.list request ?
Does anyone have an idea how to proceed ?
I know I could loop a bunch of requests but those are limited by a quota, so I won't use them for this task.
Please let me know if you want more precision about my needs.

how to read the data from google spreadsheet using php

I'm getting confusion to start the code, could you please guide me to complete.
How to read the data from Google spreadsheet and store the data into variable using php
I have spreadsheet in Google Drive, I have data like:
s.no name mobilenumber
1 raghu 888888888
2 ram 777777777
I want to get the mobile number according to name condition:
if(name==ram){
mobile="";// have to store the particular number here
}
From spreadsheet using PHP

data from specific google spreadsheet tabs

I know how to query data from google spreadsheet with the general share link, but I want to pull data from specific tabs in that shared workbook. How do I do this?
It is not clear from your question how you are querying a spreadsheet (there are several ways to do it).
If you are using spreadsheet data source url (e.g: https://docs.google.com/spreadsheets/d/{ss_key}/gviz/tq?tq=...), then you can add gid or sheet url parameters to specify which sheet in the spreadsheet to query by its id or name:
https://docs.google.com/spreadsheets/d/{ss_key}/gviz/tq?gid=0&tq=...
https://docs.google.com/spreadsheets/d/{ss_key}/gviz/tq?sheet=Sheet1&tq=...
You can get the gid number of a sheet from the spreadsheet's url when it is open in your browser. More info here: https://developers.google.com/chart/interactive/docs/spreadsheets#Google_Spreadsheets_as_a_Data_Source
Note: data source url examples above are for new google sheets. If you are still using old sheets, the url format will be different: http://spreadsheets.google.com/a/google.com/tq?key=ABCDE&tq=.... The documentation link above still uses old sheets url format.
If you are querying your spreadsheet via QUERY() formula in another sheet, then just specify the name of the sheet you want to query in the data attribute of the function:
=QUERY('Example Data'!$A$2:$H$7, "select A where (B<>'Eng' and G=true) or (D > "&A2&")")

Import first excel worksheet to access where the worksheet name changes

I have excel data that I want imported into MS Access. The excel data is always on the first worksheet of the excel file. However, the name of the worksheet is constantly changing. The worksheet name is not predictable, as it is basically the last date someone updated it on. This could be the current date or several days earlier.
I want to set up a linked table that wont stop working when the name of the worksheet is changed. Is this possible to accomplish without getting too complicated?

Resources