How do you vlookup two columns in a nested array? - google-sheets

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),)))}

Related

Can I add a floating column to a Sheets query?

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)))

Move column B & Q to new tab & then concatenate into new cell

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})

Is cell value on other tabs?

In sheets I have a workbook with several tabs. I need to be able to determine if the value in column A is found on other tabs to hopefully eliminate duplicates.
How can I put a formula on each tab that will point out if the value in column A is found on other tabs so we can remove duplicates? The formula would need to have the name of tab to enable us to go through and cleanup?
I know in Excel we could do a vlookup for each individual tab but it seems like there should be an easier way of not having to type the vlookup for each tab and return the name of the tab.

How to import data from other sheet and list them?

I have Sheet1 and Sheet2in the same document. In Sheet1 from Row 2 (A2~ZX2) there are names. At Row 5 (A5~ZX5) there are checkboxes with custom values set to either 1 for checked, 0 for unchecked.
At Sheet2 I want to load Sheet1's A2~ZX2 values where their checkbox is unchecked.
I figured out that =Sheet1!$A1 can load from another sheet, but I don't know how to make as a list that automatically filters checkbox value.
I'm not sure that you need Sheet 2. Use the funnel looking icon to set up a filter on Sheet 1.
Please try:
=transpose(query(transpose(Sheet1!A2:ZX5),"select Col1 where Col4 <> TRUE"))
Leave off the outer TRANSPOSE for a list in a column rather than by row as in your source.

find corresponding cell depending on other cell

I'd like to get the value of a cell depending on the value entered in another cell. I have different sheets in my workbook :
Sheet 1: One with a list of people and adresses
Sheet 2: One with a list of orders from these people
In Sheet 2, when I choose a client's name from the dropdown list (created via data-validation list with sheet 1), I'd like his address to display automatically in another cell (same row, different column).
Is there a way to do that ?
Thanks in advance !
A simple vlookup will do this. Assuming you have the dropdown in A2 of Sheet2, put this in Sheet2 in the column you want the address in. If you have a dropdown in each row, drag the formula down:
=iferror(vlookup(A2,Sheet1!A2:B4,2,false))

Resources