Auto-updating "importrange" spreadsheet on Google site - google-sheets

hope someone can help me with this...
I've imported a range from spreadsheet A to spreadsheet B. When I change data on A, it quickly updates on B- all's good there. I embedded both spreadsheets A and B on a Google sites page, and embedded spreadsheet A updates fine, but spreadsheet B doesn't show the new data in Google sites, even though the actual sheet does change.
I notice that if I create a graph or some such change inside of spreadsheet B, the embed on the Google site then updates completely.
Any ideas how to make this happen automatically?
Bill

It's better to use Data Range to update value on the Column on the spreadsheet.
https://developers.google.com/apps-script/reference/spreadsheet/range?hl=FR#setValue(Object)
you import data with Import range , and you take all data with the Class Range and you put data on others columns.

Related

Google Sheets - referencing data from another sheet "DataSheet!A1:A" want to be able to import a new sheet and update that reference... best way?

I'm not well-versed in Google Sheets or anything related to it really, but i'm doing basic google sheet formula stuff at the moment for my business, I am importing data from somewhere else and have copied over data from the import into my stats sheet using the basic copy formula
"DataSheet!A1:A"
later on, the Data Sheet will have to be updated with another imported sheet that will match in rows/columns but with new values...
... How do I reference/copy over columns from another sheet, while making it easy to update with a new import later on?
perhaps try:
={DataSheet!A1:A; DataSheet2!A1:A}

Display last five rows in Google Sheets

I have a simple personal money tracker based on Google form for data input and spreadsheet for calculating, statistics and so.
Everything works just fine but now I need workaround to display the last five entries in sheet that contain raw data from Google form.
This is what the sheet looks like:
What I want to do is create new spreadsheet which displays the last five entries from the sheet with data from Google form. Please help me with right formula for this.
P.S: Would be perfect display this information right in Google form that I used to enter data but as far as I know its impossible.
If there are no gaps in the time column, you could try
=query(A:D,"select * offset "&count(A:A)-5)

Refreshing data used by a query from another sheet

I have three sheets, sheet A, B and C.
Sheet A contains data read from sheet B
Sheet B contains data read from sheet C.
Sheet C automatically builds from a big CSV file that updates every hour.
Sheet B reads parts of the data from sheet C.
Sheet A is used by external people.
The reason sheet A is not looking up data directly from sheet C is privacy and security reasons, that's why I hop through an intermediary sheet which the users of sheet A do not have edit access to.
Long story short: I actually only need to make sure Sheet B is automatically updating it's data from Sheet C, so Sheet A always looks at fresh data.
Is there no way to simply load/recalculate a Google Sheet on a schedule?
I see there are some answers here and there that seem to be ridiculously complicated, like setting up ITTT.com or adding macros that add and remove lines into spreadsheets etc.
Surely there must be an elegant way of doing this?

Using text from a cell in a formula in Google Sheets

I would like to use the text from a cell in a formula in Google Sheets.
I have a document with multiple sheets that a variety of people can edit with a H,M,L (high, medium, low) value from a drop-down list. Each person has their own tab in the Google Sheet.
I then have a dashboard that populates based on their choices of H,M,L. I know that I can use the formula =('Jay Delacruz'!C6) for example to populate a cell in another sheet by manually selecting the cells on the other sheet.
However, I am looking to make quite a few of these documents automatically with another Google Script that I am running that creates the individual sheets from a roster of names on the first tab.
My question is, is it possible to have a =('Jay Delacruz'!C6) type formula that instead of the sheet reference it can pull the name of the person from the roster, as this will match exactly the sheets that are automatically generated by the script I have running.
So I would essentially have a pre-populated dashboard of formulae that would become valid once the sheets are created with the names, as created by the other script.
If it makes it a little clearer, there is a link below to make a copy of the Sheet I am working with. All names were randomly generated, so don't reference any real people or data.
https://docs.google.com/spreadsheets/d/1NiXqko8SibD6VsfrnFcj7e7c99Hg-RoSlHVAYWb0E94/copy
Thank you in advance!
Liam
Try
=INDIRECT(C1&"!C6")
Also see here for more info on INDIRECT() function.

Google Sheets Copy Down Issue

I have a google form that my students fill out daily. All form responses feed into one workbook. From the workbook, I have a spreadsheet for "Clean" data. Which is just the information from the responses sheet needed to graph progress. The formula I am using in A2 is: ='Form Responses 1'!N2
Nothing too complicated right?
However, each day that I want to show the kids their progress on the charts, I have to select the last two entries in the Clean Data worksheet and copydown the formulas in order for the new data to appear. Apparently, every time there is a new form submission, google sheets changes the cell address in the formulas. Is there any way around this?
As JPV commented, the "pushing down of formulae" by form submissions may be counteracted by using an array formula (in row 2):
=ArrayFormula('Form Responses 1'!N2:N)
And as Akshin commented, if you were in fact bringing over a couple of columns for graphing purposes, you can do it all in one with QUERY. For example:
=QUERY('Form Responses 1'!A:N,"select A, N",1)

Resources