Excel, find position in array based on two criteria? - excel-formula

Strugling with this formula:
I tried to combine INDEX and MATCH but no result....

Index has a row and a column criteria. We can use 2 matches to return each individually:
=INDEX($B$15:$N$17,MATCH(A1,$A$15:$A$17,0),MATCH(D2,$B$14:$M$14,0))

Related

excel formula 3 criteria return multiple values

I need to return a list of multiple values that match the criteria set. Right now I have the formula below to get values that match 3 criteria, which works well if I only need one result but now I need a summation/list of all the values that match these criteria.
=INDEX(Table1[[Helper column]:[Helper column]],MATCH(1,INDEX(($B5=Table1[[shelve]:[shelve]])*(D$3=Table1[[rack]:[rack]])*(30=Table1[[box]:[box]]),0,1),0))
Does anyone have any ideas?

Create vlookup or index match with 2 conditions

enter image description here
Hello, how can I create a vlookup or index match to match the exact same date and dimension/page view type? Tried regular vlookup and results do not match with 2nd yellow columns. Also, tried index match and answers #N/A
Can be done with Index-Match. In columns A through C I have the data. In F & G I've written my criteria, and in H2 my formula is:
=INDEX(C:C,MATCH(1,INDEX((F2=A:A)*(G2=B:B),0,1),0))

Excel Match function as array formula serching multiple colums

I've got some problem with this function. I've Tried to find position some cell on the list consisted of two columns. My formula MATCH(A1;D1:E10;0) gives me an #N/D error, but when I change formula for each separate column like e.g. MATCH(A1;D1:D10;0) it works. Is three possibility to do this simultanously for both colums. Maybe some array formula?
Match will not work with 2 dimensional ranges.
You can use AGGREGATE to return the correct ROW:
=AGGREGATE(15,6,ROW(D1:E10)/(D1:E10 = A1),1)

Returning multiple matches with vlookup, offset, match

Hi everyone I have a table of data that contains multiple matches when using vlookup. I was following a lesson that used a combination of vlookup, offset and match to return the second match. However, I am stuck in how I should return the third match.
I know index and match is probably better for this, but I was unable to follow how those expressions work.
My lookup table has 3 columns of data. The first column is a name that repeats with different data in columns 2 and 3. I want to lookup by name and return the content of column 2 and 3.
My expression for the first match is:
Column 2:=VLOOKUP($A3,Sheet1!$J$2:$L$4554,2,FALSE)
Column 3:=VLOOKUP($A3,Sheet1!$J$2:$L$4554,3,FALSE)
The expression for the second match is:
Column 2 data:
=VLOOKUP($A3,OFFSET(Sheet1!$J$2,MATCH($A3,Sheet1!$J$2:$J$4554,0),0,4600,3),2,FALSE)
Column 3 data:
=VLOOKUP($A3,OFFSET(Sheet1!$J$2,MATCH($A3,Sheet1!$J$2:$J$4554,0),0,4600,3),3,FALSE)
How can I use a similar formula to offset for the 3rd match and so on?
Array Formula Requires CTRL+Shift+Enter instead of normal enter
=IFERROR(INDEX(Sheet1!$J$2:$L$10,SMALL(IF(Sheet1!$J$2:$J$10=$A$3,ROW(Sheet1!$J$2:$L$10)-MIN(ROW(Sheet1!$J$2:$L$10))+1),ROWS($1:1)),COLUMNS($A:B)),"")

Excel Vlookup - multiple lookup values?

is it possible to use something like this in vlookup() ?
=vlookup(or(1,2,3,4), a1:c10, 2)
I want to find the first instance in column A that contains the numbers 1-4
You can't use VLOOKUP for this, but you can do it with the help of MATCH.
Try this (using array formula -> ctrl+shift+enter):
{=INDEX(B1:B10,MIN(IFERROR(MATCH({1;2;3;4},A1:A10,0), FALSE)))}
The idea is to match against 1-4 to get the index, convert errors to non-errors (FALSE), then get the minimum row number. Then that row number is used as an index to the values column.

Resources