I need to embed sheets to docs so what I change in sheets gets changed over to docs. I can do it by copying the table in the sheet and pasting it in docs and select the 'link to spreadsheet', the doc gets changed when I click 'update' over the table.
However, if I make a copy of both files and move them, the doc's link is still with the original sheet. The sheet I copied and moved does not do anything.
If there any way to copy both files and keeping all the formatting and links so I can have backups and not rely on one master sheet storing all the tables?
Or how can I manually 'link' the copied sheet to the copied docs without going through copying and pasting all the individual tables?
Thanks
Alex
Related
The original working sheet is .xlsx and I would like to query that file into my personal working sheet. However the importrange doesn't seem to work and it returns 'You don't have permission to access that sheet'. Can anyone share how to fix this.
I.e the original working file belongs to another (not mine) and I'm not allowed to do any change especially change the file from .xlsx to gsheet file.
I have a Google spreadsheet which compiles scheduling info for an event. The file has five worksheets. There are two worksheets which I want to publish to the web; the other three are for my use and to drive calculations.
I can see how to publish the entire file, and how to publish an individual worksheet. However, I cannot figure out how to publish say, sheet1 and sheet2 to a single document.
As a short-term workaround I have tried the following, which works after a fashion but I'm not a fan:
Create a new file with two sheets
Sheet1 uses an importrange call to grab the data from the original sheet1
Sheet2 uses an importrange call to grab the data from the original sheet2
I then publish the entirety of the new document
The finished product must be in Google Apps; that is a requirement I cannot dodge.
Solution 1:
You can hide the sheets that you don't want to publish, and then publish the entire document:
Published sheet:
Solution 2:
You can publish selected sheets using the Published Content & Settings options on the Publish to the Web dialog box. In the dropdown menu you can select which sheets to include:
The published spreadsheet would look like this:
Note: It seems that the web page may not display all the selected sheets, only the first sheet. You can file a feature/bug request here:
https://support.google.com/a/answer/6284762?hl=en
What worked for me is that after publishing the spreadsheet, copy the link, then through "Published content & settings" remove the check next to "entire document" and select the ones you want to share.
The details in the upper part of the window will disappear including the link, and the publish button will be green again "pressable".
Your copied link is still active, you can still use it, and only the selected sheets will be seen on the web. It is also modifiable; if you checked different sheets, web share will be updated accordingly.
I'm investigating if it's possible for a user to: Pick a file on disk, automatically upload it to Google Sheets, do some edits, and write the changes back to the file.
I basically want to use Google Sheets as the Editor of the local file.
Has anyone tried something like this, or can confirm if it's a feasible idea?
My rough idea:
Install a script or program, that a user (on our team) can execute with the appropriate file they pick.
Typically they right-click a file and pick "Open with MyGoogleSheetsCreate".
The ToSheets-script does the following:
Generates a temporary Spreadsheet on the user's Google Drive (or possibly a Team Drive/Folder for temp files)
Reads the custom data in the local file and enters it into the Spreadsheet.
Opens a Browser window with the generated spreadsheet.
The user makes some changes to the spreadsheet.
The user exports the changes back to the file.
User initiates this how? Some ideas:
Perferably: I build a button or menu option to "Export back to Local Disk". This would only be viable if we could explicitly say where to save this custom file, i.e. where it came from.
Optionally: They right-click the original file and pick "Open with MyGoogleSheetsRetrieve". The importer would need to know the address of the Google Sheet the local file was last exported to.
FromSheets-Script converts the Spreadsheet into our custom data format and overwrites the old file.
Bonus: The temporary Google Sheet would be automatically moved to the Bin within a couple of days (without user interaction).
I think I've got a good idea of how to convert our custom format to Sheets and vice versa. The steps I'm most unsure of are: 3.1 and 5.1
Is there a way to link to another sheet within a Google Sheets workbook using the target's sheet name?
I've seen other posts that show how to do this but they rely on getting the sheet's gid. I can't use that because I need this to work in Excel and Google Sheets and my workbooks are being created dynamically with a Node script.
In Excel I can write =HYPERLINK("#'NameOfSheet'!A1", "Click here"). But this doesn't work in Google Sheets. It creates a link but when you click it nothing happens.
Just try to use the sheet's URL instead, to link to other sheet or tab. Just for example:
=HYPERLINK("https://docs.google.com/spreadsheets/d/10HufqWRKiK_iR45Z52ABTiba0Lq1wVMIRxdefSI3NA/edit#gid=0", "Link text here")
Notice that this also changes when you link to another tab:
#gid=0
To import an entire sheet of data from another spreadsheet using IMPORTRANGE I'd do something like this:
=importrange("google-drive-id-for-spreadsheet","A:AR")
This works fine for a Google Sheets spreadsheet source, but if the source file is an Excel spreadsheet, I get a #Ref! error in the cell and the hover comment is:
Error Spreadsheet cannot be found.
I'm presuming this is because IMPORTRANGE doesn't work with Excel files, so how can I achieve the same thing?
I don't mind working with scripts but would prefer a formula solution if possible.
Edit: This happens whether I use the full URL or just the spreadsheet key and if I use the sheet name with the range or not. I've tried several files and it always works with the Google Sheets files and never works with Excel files.
Something occurred to me about the ownership and location of these files. Somebody else is the owner of the spreadsheet that I want the IMPORTRANGE formula in. I have full edit permissions. The folder that the spreadsheet resides in is owned by the same guy, it has been shared with me and I have added it to my Drive. In a subfolder of this folder is where the source files are. I am the owner of the subfolder and the source files within, both Excel and Google Sheets files.
Could this setup have anything to do with the results I'm getting?
Edit: I've had the ownership of the folders (all the way up the hierarchy) and relevant files transferred to me and it's still doing the same thing.
This is clearly only a work around and not an answer, but I had to do something so that I could move on. The only way I could get what I wanted is to code a convert to .gsheet format first and point imortrange to that new sheet. Might help someone else get their project pointing in a working direction until this can be answered.
There are there way to fix this problem:
Convert the Excel spreadsheet to a Google spreadsheet. You can then use the importrange() function to import the data from the converted file.
Export the Excel spreadsheet to a CSV file first, then you can use a different function called the importdata() function to import that data into a Google spreadsheet.
Using Add-on: "Sheetgo"
You should watch this video:
How to automatically import Excel Data to Google Sheets?