Google Sheets - copy to another cell - google-sheets

I have a workbook that I need to use to upload files automatically to a point, basically, it resolves around taking a sku from master sheet A2 and then copying it exactly six times on a different sheet before moving to A3 and copying that SKU 6 times.
Right now I am using an array formula to just autofill, so I would want it something like that, but just copy 6 times for each filled cell. I used the following for different sheets to autofill.
=ArrayFormula(Magento!A2:A)
Array formula wouldn't work for my image tab, Here is a copy of the sheet I already populated by hand, but basically it is from the first sheet tab, Magento and going to the Image_Extras sheet. Each Sku needs 6 rows for 6 image positions.
https://docs.google.com/spreadsheets/d/107Va2LStSyz3My7Jcb9di4DsZtt_am40_grg0q_wIXQ/edit?usp=sharing

use:
=INDEX(TRIM(FLATTEN(SPLIT(QUERY(REPT(
IF(Magento!A2:A="",,"×"&Magento!A2:A), 6),,9^9), "×"))))

Related

Copying specific cell data to a new sheet and filling next available row Google Sheets

I have a Google Sheets file with specific data in 3 cells on Sheet 1. When a trigger happens that I have setup, I want the data in those 3 cells copied to a specific cell on Sheet 2. However, I need the data to fill in the next available row on Sheet 2 so that it doesn't overwrite data that is already present. (I.e. first time data gets copied from Sheet 1 cell A1 to Sheet 2 cell A1. Next time I want the data from Sheet 1 cell A1 to be copied to Sheet 2 cell A2...and so on). How can I indirectly address the row, column on Sheet 2? I do NOT want to use Google Apps Script to accomplish this.
If you use a "IF" with a "ISBLANK" or something like that?
https://support.google.com/docs/answer/3093290
I also found this guide https://www.3pieanalytics.com/excel-and-google-sheets-formulas-and-example/get-the-first-non-empty-cell-in-a-column-in-excel-and-google-sheets
Also, I understand that you do not want to use Apps script, just in case you want to give it a try, you can use this article as reference https://yagisanatode.com/2019/11/16/how-to-automatically-navigate-to-the-first-empty-row-in-a-google-sheet-using-google-apps-script/

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)

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.

Creating a totals page for timesheet

I have a spreadsheet that we use as a Time sheet.
It's made up of approx 80 tabs (Names of employees)
We have a front page, simply called "Totals"
This adds up a fortnights worth of hours into several Columns
When we make changes, we have several scripts to help make life easier
(Delete old sheets, duplicate master sheet, rename duplicate sheets, protect ranges etc...)
One script that we don't have though is one to create the totals page faster.
Our totals page has the name of every employee in column A,
We use these names in our scripts to rename tabs etc...
I would like a script to link the calculations on the Totals Page, to the sheet and cell of every individuals tab.
We do this by manually by entering =nameoftab!C47 in the cells of the totals page.
What i want to do is =Totals!A3 C47
So the cell pulls the sheet name from the name list on the left hand side, and points to C47 in the appropriate tab.
This would allow us to add new people to our time sheet by simply adding their name to column A and not the formulas for ordinary time/overtime/travel time/allowances etc...
Can this be done?
I have played with several formulas/scripts to make this easier but to no avail
(Please let me know if you need me to be more specific)
Try this simple formula:
=indirect("'nameoftab'!C47")
or in your case:
=indirect("'" & Totals!A3 & "'!C47")
where Totals!A3 is cell with sheet name.

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