Duplicate a sheet everday - google-sheets

I need to do a script that duplicates a sheet (only with values and format, I don't want to copy the formulas) on a daily basis and gives to the new sheet (copy values) a name that is in the source sheet (today date). Is that possible?
Thank you!

Yes it is possible, you will first need to create a program which will only copy the values and format and make sure that the program has assess to the sheet. Then add a function that will do this everyday.
click here to look at a example of a program to copy and paste
By the way I created this program for Excel since I don't really use Google Sheets but it's basically the same thing.

Related

Google Sheets Function Autofill

I'm looking for a solution to a problem that seems minor at first, but if you end up having spreadsheets with 1000's of rows, it involves a lot of dragging. I need an autofill for a formula for a column that pulls information from the first sheet.
Here is what I have so far.
=if(SUMPRODUCT(--(Magento!A2:A<>""))=0,"",Magento!A2)
I suppose I could do the same thing with =(Magento!A2).. but I was trying to get it to detect and auto-fill based on what is input into the first sheet.
Basically, if there are 29 SKUs in the first sheet which is the master, I'd like it to populate the information in the second sheet. At the same time if there ended up being 2000 skus on the first sheet, I'd like the 2000 skus to be populated on the second sheet column A without having to drag and drag the autofill.
It sounds to me like you just want to bring in a copy of whatever is in Magento!A2:A, exchanging any zeros for nulls. If that is the case:
=ArrayFormula(IF(Magento!A2:A=0,,Magento!A2:A))
If that isn't what you had in mind, please share a direct link to your sheet (or a copy of it), using File > Share.
Addendum (after comment clarification)
You just needed this:
=ArrayFormula(Magento!A2:A)

Need help in creating a macro for extracting data from list of web url

Need to write a macro for importing a table from all URLs present in column A of Symbols sheet, each URL table should be written to a new sheet with the sheet being named as per the names in column B of Symbols sheet.
Using the below formula to extract table information from URL, which is working.
=IMPORTHTML(symbols!A1, "table",1)
=IMPORTHTML(symbols!A1, "table",3)
A sample sheet URL is below.
https://docs.google.com/spreadsheets/d/1uJPjfAZLRCwafetbH4-nPJPSpTvvgixlFvGG6gYITBU/edit?usp=sharing
Need to customize a few rows and columns which are not required. I believe this can be done by recording a macro and copy-pasting those modification lines to macro.
Edit: I am able to achieve this in MS Excel, one click does the job of importing table, creating a new sheet, copying the table, little formatting. Want to achieve the same in googlesheets.
check the INDEX and ARRAY_CONSTRAIN functions (probably also QUERY and FILTER function too) which are able to trim off the input exactly as you need to.

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.

Copy sheet to another document to replace existing

I have such problem and half-of-solution already.
I've an active document with couple of sheets referring to each other. I need to do some changes in formulas, test it and ably implement the changes.
I've figured to make a copy of the sheet where I need to make changes to the side draft. There I make changes and tests and after that I'd like to copy the sheet back to the original document.
For now Google copies the sheet to the destination document as "Copy of Sheetname". Then I delete Sheetname sheet and rename the copy to Sheetname.
The problem is that the cells in other sheets which were referring to the original Sheetname now return #REF! error and I can't see any way to recalculate them efficiently.
Any (great) ideas? :)

Google spreadsheet complex formula

I am really new to the Google spreadsheet formulas. I have searched and searched and what I try I fail at in making this complex formula. I would appreciate any help given.
I am trying to get cells copied from sheet1 into a sheet3 based on answers/criteria in various cells in the row. If the project is completed then there are 6 Yes/No answers in each row. I need to copy the row information if it has "completed" in ColA along with copying specific cells if there is a Yes.
For instance: Copy B and D:F plus if E=Yes copy E-J, if K=Yes copy K-L, if M=Yes copy M-Z, if AA=Yes copy AA-AD and so on. If there is a No to any of those just disregard do not copy.
I have tried this but it does not work:
=IF(Sheet1!M2="Yes", Sheet1!M2:W2, IF(Sheet1!X2="Yes", Sheet1!X2:AK2, IF(Sheet1!AL2="Yes", Sheet1!AL2:AS2, IF(Sheet1!AT2="Yes", Sheet1!AT2:AW, IF(Sheet1!AX2="Yes", Sheet1!AX2:AZ2, "")))))
My Google spreadsheet is here, showing the content I want to move to Sheet3 :
Testing spreadsheet
Your if statement is structured fine, the problem is that you cant refer to an array that way to pull in the row, however you could structure each portion of your if statement like this:
=if(Sheet1!A1="Yes",SPLIT(JOIN(";",Sheet1!1:1),";"))

Resources