Formula for multiple variable row find

aqibi2000

New Member
Joined
Oct 19, 2017
Messages
9
Office Version
  1. 2013
  2. 2010
Platform
  1. Windows
  2. MacOS
I have been playing with INDEX Match and Vlookup, however am struggling to solve my problem, I normally end up using 10+ multiple column filters to reach my results.

Made an example below where I input 3 variables and wish to find a Row which matches all the criteria, in the example the results would be H.

Would really appreciate the help



Data1.xlsx
ABCDEFGH
1
2Row FoundHRowVar1:Var2:Var3:
3Input Var1:1A024
4Input Var2:3B124
5Input Var3:5C034
6D134
7E025
8F125
9G035
10H135
11
12
Sheet1

Thank you
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Wish to achieve this with using only a single formula, I can solve this by using variables and if statements:

Data1.xlsx
ABCDEFGHIJKLM
1
2Row FoundHRowVar1:Var2:Var3:if Var1if Var2if Var3AND(Var1&Var2&Var3)
3Input Var1:1A024000FALSE
4Input Var2:3B124100FALSE
5Input Var3:5C034010FALSE
6D134110FALSE
7E025001FALSE
8F125101FALSE
9G035011FALSE
10H135111TRUE
11
12True =H
13
14
Sheet1
Cell Formulas
RangeFormula
I3:I10I3=IF($B$3=E3,1,0)
J3:J10J3=IF($B$4=F3,1,0)
K3:K10K3=IF($B$5=G3,1,0)
L3:L10L3=AND(I3:K3)
L12L12=INDEX(D3:D10,MATCH(TRUE,L3:L10,0))
 
Upvote 0
With to do this without using an additional column:
Data1.xlsx
ABCDEFGH
1
2Row FoundHRowVar1:Var2:Var3:
3Input Var1:1A024FALSE
4Input Var2:3B124FALSE
5Input Var3:5C034FALSE
6D134FALSE
7E025FALSE
8F125FALSE
9G035FALSE
10H135TRUE
11
12H
Sheet1
Cell Formulas
RangeFormula
H3:H10H3=IF($E$3:$E$10=$B$3,IF($F$3:$F$10=$B$4,IF($G$3:$G$10=$B$5,TRUE,FALSE)))
H12H12=INDEX(D3:D10,MATCH(TRUE,H3:H10,0))
 
Upvote 0
Maybe you did not see post#2?
Please update you profile to show what version of Excel you are using.
 
Upvote 0
Thanks for that.
A couple of options
+Fluff 1.xlsm
ABCDEFG
1
2Row FoundHHRowVar1:Var2:Var3:
3Input Var1:1A024
4Input Var2:3B124
5Input Var3:5C034
6D134
7E025
8F125
9G035
10H135
11
Lists
Cell Formulas
RangeFormula
B2B2=INDEX(D3:D10,AGGREGATE(15,6,(ROW(D3:D10)-ROW(D3)+1)/(E3:E10=B3)/(F3:F10=B4)/(G3:G10=B5),1))
C2C2=INDEX(D3:D10,MATCH(1,(E3:E10=B3)*(F3:F10=B4)*(G3:G10=B5),0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thanks for that.
A couple of options
+Fluff 1.xlsm
ABCDEFG
1
2Row FoundHHRowVar1:Var2:Var3:
3Input Var1:1A024
4Input Var2:3B124
5Input Var3:5C034
6D134
7E025
8F125
9G035
10H135
11
Lists
Cell Formulas
RangeFormula
B2B2=INDEX(D3:D10,AGGREGATE(15,6,(ROW(D3:D10)-ROW(D3)+1)/(E3:E10=B3)/(F3:F10=B4)/(G3:G10=B5),1))
C2C2=INDEX(D3:D10,MATCH(1,(E3:E10=B3)*(F3:F10=B4)*(G3:G10=B5),0))
Press CTRL+SHIFT+ENTER to enter array formulas.

Thank you very much, this is perfect!

I was wondering if I had more than 1 match is there anyway to display this too?
 
Upvote 0
How about
+Fluff 1.xlsm
ABCDEFG
1
2Row FoundFRowVar1:Var2:Var3:
3Input Var1:1HA024
4Input Var2:3 B124
5Input Var3:5C034
6D134
7E025
8F135
9G035
10H135
Lists
Cell Formulas
RangeFormula
C2:C4C2=IFERROR(INDEX($D$3:$D$10,AGGREGATE(15,6,(ROW($D$3:$D$10)-ROW($D$3)+1)/($E$3:$E$10=$B$3)/($F$3:$F$10=$B$4)/($G$3:$G$10=$B$5),ROWS(C$2:C2))),"")
 
Upvote 0
How about
+Fluff 1.xlsm
ABCDEFG
1
2Row FoundFRowVar1:Var2:Var3:
3Input Var1:1HA024
4Input Var2:3 B124
5Input Var3:5C034
6D134
7E025
8F135
9G035
10H135
Lists
Cell Formulas
RangeFormula
C2:C4C2=IFERROR(INDEX($D$3:$D$10,AGGREGATE(15,6,(ROW($D$3:$D$10)-ROW($D$3)+1)/($E$3:$E$10=$B$3)/($F$3:$F$10=$B$4)/($G$3:$G$10=$B$5),ROWS(C$2:C2))),"")
Amazing thank you! ?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,173
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top