I have a google sheets doc linked to another sheets document via IMPORTRANGE.
I wish to have a duplicate which mantains Values only without the link data, since i am lookin to update the data and make like monthly reports based on that.
Is there a way to duplicate the sheets via script or another function or either break the links but mantain the values?
Make the copy and enable the IMPORTRANGE(s).
Then select the entire sheet by clicking the blank rectangle just above the left-hand row numbers and to the left of the top column letters. With the sheet selected, click Ctrl-C to copy to clipboard.
With the full-sheet selection still active, hit Ctrl-V for "Paste Special." Look for a clipboard icon to appear lower-right on the visible screen area. Click it and choose "Paste values only."
Related
This is quite a hard question to explain. Here is how it looks.
I have a script on Google Sheets that exports data to Google Form quiz. There are 500+ questions in quiz, properly filled with that script. To put the Right answers (Key answers) in Google Form I need to fill right cells in Google Sheet in green colour, then the script will do its job.
Key answers are filled in column M. Digits: 1=(right key answer) in column 1 (I), 2=J, 3=K and 4=L.
Can I use a formula or a macro that will check column M and fill in green colour Right answer cells on the same row?
If I'm understanding you correctly, this can be done with a custom Conditional Format formula. Do the following:
Click on cell I4. Select from the menu Format > Conditional
Formatting
When the CF window opens, the "Apply to range" field
will say I4. Change it to I4:L.
Under "Format rules / Format
cells if..." click the dropdown arrow and select the last option:
"Custom formula is"
In the blank field that appears below that (it
will show a "Value or formula" placeholder), enter the following
custom formula: =(ISNUMBER($M4))*(COLUMN(I4)=COLUMN($I4)+($M4-1))
In the "Formatting style" panel, click the paint bucket icon and
select the background color of your choice.
Click the "Done" button and close the Conditional Formatting dialog
window.
I have a sheet that is shared with quite a few people. They are supposed to fill in 5 cells, click the script button and it will insert the text below and sort it by date.
I created the script and assigned it to the button for this.
I need to protect the entire sheet except the 5 cells and the button.
When I add the protection nobody can click on the button. Is there a workaround?
Answer:
You can use Protected Ranges to protect the sheet from edit with the exception of pre-defined cells.
Steps:
Follow the menu item Data > Protected sheets and ranges from the Sheets User Interface.
Click on the + Add a sheet or range button in the newly-opened sidebar.
Click the Sheet tab.
Select which of the Sheets you wish to have protected.
Mark the Except certain cells check-box with a click (✓) and select in A1 notation the 5 cells you wish for users to edit. For example D1:D6.
Click Ok
Click Set permissions
Keep Restrict who can edit this range selected with Only you as the selection in the drop-down, and press Done.
This is enough - from here anyone you share the sheet with will have edit access to the specific five cells you specified in the exception rule. The button is also clickable as long as the user has authenticated the function to run as them.
References:
Docs Editors Help - Protect, hide, and edit sheets
I have a very long google sheets document. I often have to go to a specific area of that document to input data. I want to have a sidebar with designated hyperlinks to areas in the document to minimize the time it takes to get to the area I need to edit. How can I create a sidebar that reads links from a hidden tab displaying all the links I want displayed in the sidebar?
most likely it's not possible as you imagine it. instead, take a look on hyperlink jumps... right-click the cell you want to jump in and select Get link to this cell:
then just paste it in your separate sheet or side column/frozen row
to make it nicer you can use HYPERLINK formula and assign some short alias
Say I have the string "1,2,3,4". Is it possible to paste that string into Google Spreadsheets in such a way that each of the comma-separated values goes into a different cell to the right of the selected one?
This is what the spreadsheet would look like after pasting.
Since the file is a CSV. Ensure it is saved with the .CSV extension and upload the file to google sheets.
You also have the option of opening it with Microsoft excel and then pasting the cell formatted text into the google sheet.
Also You can paste the comma separated values into the google sheet and then click the paste icon that appears below the cell and select the 'Split text into columns' Option
Enter into the spreadsheet
=SPLIT("1,2,3,4", ",")
No. If you try inserting any formula by overwriting the selected cell the data the formula needs will be overwritten, hence not be available to the formula.
You could use say:
=split(A1,",")
to obtain the results you want to the right of the cell with data in, but this would have to be placed to the right of the cell with data, not in it.
#Treyten's A would also achieve the result you seek except that it would not be to the right of the chosen cell (etc) but in the chosen cell (and to its right etc, assuming the usual LTR).
Similarly with #tks.tman's A. The contents spill out to the right but they do not start in a "cell to the right of the selected one" but in the selected one.
First select the cell on of your action and click Data
1st step
Now, select 'split text to column', it will name it a number
2nd step
now, again goto data and select split text to column open it will transfer every comma separated element into individual columns
3rd step
I'm curious if there's a way to “assign script” to an image inserted into a cell using the =IMAGE(“URL”) method for Google Sheets? If not, is there a way to “assign script” to a hyperlink?
What I’d like to do is create a table of contents tab inside a Google Sheet that has many other tabs. On the table of contents, I’d love to have inserted images that act as buttons to navigate to these different tabs. I can “assign script” to images that have been inserted through the menu toolbar (e.g., Insert > Image or Insert > Drawing). However, it’s extremely clunky to have to realign my images if a new row is inserted into the table of contents.
I could always just use hyperlinks to navigate to each tab, but I don’t like how it opens a new window every time you click on the hyperlink. And I don’t like how it requires two clicks of a hyperlink (one click for the hyperlink, and then another click for the web address that pops up) to arrive at the desired tab.
So I guess, is there any option that exists to insert an image inside a cell, which can then be assigned a script?
This functionality would be so helpful.
Thanks for you time!
I've been searching and haven't found a way to insert a link to anything with an Image placed with the =IMAGE () option. I've resorted to text and formatting .
You can assign a script to change tabs via "floating" Images that are Inserted via insert menu. then on the picture on the top right corner click the arrow and assign the script " goToPage1 " or whatever you decide to call your function and page. it's not as fast as Excel but it works
var ss = SpreadsheetApp.getActiveSpreadsheet();
function goToPage1(){
ss.setActiveSheet(ss.getSheetByName("Page1"));
}
My only solution to this problem is to insert image within cell, then insert a transparent drawing and assign the script to that. It's not ideal, but at least it means the images are aligned perfectly, the transparent floating image just needs to be in the general area
At this time, only to OverGrid images.