Searching the values with mulltiple condition

Kiran1683

New Member
Joined
Apr 13, 2013
Messages
7
Hello Champions,
I have a query, where I need to search a value from table with multiple condition. Using the Vlookup, I can get only look/search only one value, however, I need to search with two conditions.

Here is Example:

Database:
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Col A
[/TD]
[TD]Col B
[/TD]
[TD]Result
[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]1[/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]2[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]3[/TD]
[TD]Z[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]4[/TD]
[TD]Q[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]4[/TD]
[TD]P[/TD]
[/TR]
</tbody>[/TABLE]

Calculation:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Ref 1
[/TD]
[TD]Ref 2
[/TD]
[TD]Result
[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]4[/TD]
[TD]P
[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]2[/TD]
[TD]Y
[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]4[/TD]
[TD]Q[/TD]
[/TR]
</tbody>[/TABLE]


I need to get the results as marked in red. Where I need to search Ref 1 and Ref 2 with database table and get the corresponding result to calculation table, result column. Both Ref 1 and Ref 2 conditions should be true. Please help me to get this values :)
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Another possibility:


Excel 2010
ABCDEF
1Col ACol BResultRef 1Ref 2Result
2A1XA4P
3B2YB2Y
4C3ZB4Q
5B4Q
6A4P
Sheet2
Cell Formulas
RangeFormula
F2=INDEX(C$2:C$6,MATCH(1,INDEX((A$2:A$6=D2)*(B$2:B$6=E2),),FALSE))
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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