I need to move columns B (email) & Q (SKUs) into a new tab and then create another column in said tab with the info from B & Q merged or concatenated. All of this triggered when document is opened.
https://docs.google.com/spreadsheets/d/1hUaJ3u5T678C9bFauJJLtb8FPVM9BSHLRm8gCxYr624/edit#gid=0
On tab2, cell A1:
=arrayformula({'TAB1'!B:B,'TAB1'!Q:Q,'TAB1'!B:B&" "&'TAB1'!Q:Q})
Related
I have a Sheet like this [minimal] example. The "Data" tab is a running list of points different groups have scored. This is constantly updating. The "Results" tabs gets a list of all the unique group names from the Data tab and add them as a row in Column A. So, if an entry for "Group5" is entered on the Data tab, a row with that name will appear on the Results tab. Similar for the columns on the results tab. Each unique action on the Data tab becomes a column on the results tab.
I would like to add a "Total" column to the last column on the Results tab. The problem is, if a new "action" category appeared on the data tab, it would take up the last column and the Total column would need to shift over one. Is there a way to get the "Total" column to float so that it is always on the end without conflicting with the query formula?
In B1 cell put below formula-
={TRANSPOSE(UNIQUE(QUERY(Data!C2:C, "SELECT C where C is not null",0))),"Total"}
In B2 cell put below formula then drag down and right as needed.
=IF(OR($A2="",B$1=""),"",IF(B$1="Total",SUMIFS(Data!$D$2:$D,Data!$B$2:$B,$A2),
SUMIFS(Data!$D$2:$D,Data!$C$2:$C,B$1,Data!$B$2:$B,$A2)))
Trying to get all results from sheet 2 where colum A contains the value of cell A24 in current sheet.
=QUERY('SHEET2'!1:997, "select B where A contains A24")
In place of A24 you would use '"&A24&"'
I am trying to do a vlookup for two columns in another tab and return the results of the source tab. This function is meant to do the following:
Is the cell in column A of the "Aggregate" tab blank
If so, add a "0" in column F of the "Aggregate" tab
If not, check cell in column A and B of the "Aggregate" tab and see if this combination exists in the datasource "BrightEdge" tab column A and B
If the contents of column A and B in the "Aggregate" tab do not exist in the "BrightEdge" tab column A and B add a "0" to column F of the "Aggregate" tab
Otherwise, collect the Min value in the "BrightEdge" tab under column C and add it to the "Aggregate" tab column F
={"Rankings";ArrayFormula(IF(A2:A="","",VLOOKUP(IFNA(REGEXEXTRACT(A2:A,"[^/]+//(.+)"), "/"),BrightEdge!$A$8:$F,3,FALSE)))}
This formula currently does not check to make sure both column A and B match to the "BrightEdge" tab column A and B. It only references column A
Please Advise
Here is a link to the working Google Sheet: https://docs.google.com/spreadsheets/d/1iHkU-rNtNhoOKvW_CWY7WU5OLsMFVqEFNRZlx_R-7RY/edit#gid=0
Try:
={"Rankings";ArrayFormula(IF(A2:A="","",iferror(VLOOKUP(IFNA(REGEXEXTRACT(A2:A,"[^/]+//(.+)"), "/")&"|"&B2:B,{BrightEdge!A:A&"|"&BrightEdge!B:B,BrightEdge!C:C},2,FALSE),)))}
I have two tabs in a google sheet. Tab A and Tab B
From Tab A, I am using the following statement in a cell:
=iferror(query('TabB'!$A$2:$H$50000,"select sum(E) where G = 'name#emailaddy.com' label sum(E) ''",0))
THIS WORKS
I want to make the name#emailaddy.com dynamic so it pulls from a cell in Tab A
ex. =iferror(query('TabB'!$A$2:$H$50000,CONCATENATE("(select sum(E) where G = ","'name#emailaddy.com'"," label sum(E) ''",0)))
DOES NOT WORK - I just get a blank field
I have tried to simply aggregate the strings with "+" signs as well that does not work.
How can I achieve the result?
I'm dumb. Figured it out.
=query('TabB'!$A$2:$H$50000,"select sum(E) where G = '" & TABA!E4 & "' label sum(E) ''",0)
I hava a cell which is b30 in sheet sheet-alpha, I want get reference as string into clipboard, literally I want my clipboard contains string 'sheet-alpha'!B30
How do I do that in google sheet?
One solution to your need can be achieved in 2 steps:
First, open [top menu] Extensions > Apps Script and copy&paste the following function:
function getSheetName() {
var sheetName = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getName();
return sheetName;
}
The above code enables you to call the sheet name from wherever you need it by using the formula =getSheetName() in any cell.
Then, add another column to the right of column B (new Column C) and copy&paste the following array formula at the top most cell:
={"Ref 2 Str"; ARRAYFORMULA(IF(B2:B="","","'"&getSheetName()&"'!B:"&INDEX(ROW(INDIRECT("A"&(ROW()+1)&":A")))))}
The above function looks for non-empty cells on column B and for each non-empty cell it puts in column C the string reference for the corresponding cell in column B (in the format you need).
Pressing
Ctrl `
(the backtick under the tilde, top left of most keyboards) will toggle between showing or hiding the formulas in your worksheet. When the formula is showing you can copy in the normal way with Ctrl C.