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),";"))
Related
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), "×"))))
I have a requirement please, I want to copy formulas from one cell to another Example:
I have 4 sheets in my spreadsheet, E.g. Sheet1, Sheet2, Sheet3 & Sheet4 now let’s assume that in the 1st sheet I write a formula in A7 Cell
=If(G7=1,"True","False")
where G7 has either 1 or 0.
I want the same to get copied in 2nd, 3rd and 4th sheet in A7 Cell.
I know I can copy and paste them however in the real use case the formula is called so many times at different places that any change in the formula makes it really difficult to copy them to all the places.
So I want that I will change the formula in Sheet1 ONLY and the change will get replicated in the other 3 Sheets.
I have tried creating a custom function however since it’s a lot of data and so many calls to the function, makes it really slow. I don’t know what could be the best option for my problem. Hence need your help, please.
Any help would be really appreciated.
that's not possible but you can do this:
put your formula in G7
copypaste this formula on 1000 different locations (where you need them)
then press CTRL + H and:
You can't 'send' a formula with a formula, only 'fetch' its result, so you would need something like Google Apps Script (and questions about that here should routinely show an attempt at writing the code).
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.
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? :)
My goal is to write information in one column, and have it duplicated to another column. Lets say I have my data in cell =A3. I would like this data to automatically be copied into cell =Z50. The only way I know to do this without manually and writing the data or copy and pasting the cells is to go to cell =Z50 and in the function bar set it equal to =A3. I was hoping someone might know of a way to automate this process. By setting the column Z equal to the A column with the same row.
I was looking for the same thing, and even though I haven't tried the ArrayFormula solution, this could be another way to get this automatically copying done:
=QUERY(MySheet!B1:B100,"SELECT *")
Use this formula where you have planned to get the information copied.
"MySheet!B1:B100" = This will be the sheet you want to get data copied from.
"SELECT *" = This will get everything in this interval copied, in case you want any specific data into the interval, you have the option of choosing as well.
I found this tip at: https://productforums.google.com/forum/#!topic/docs/31xTcOHNRJM
This formula might work in cell Z50 (or anywhere else on the sheet that you want the data copied to):
=ArrayFormula(IF(A3:A="",,A3:A))