Excel Formula Based on 2 Criteria

ststern45

Well-known Member
Joined
Sep 17, 2005
Messages
961
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I have the following formula for just 1 criteria but I was trying to figure out how to do this with 2 criteria

=INDEX($AL20:$AL1019,AGGREGATE(15,6,(ROW($AL20:$AL1019)-ROW($AL20)+1)/($BT20:$BT$1019=7),1))
The above formula indexes the row $AL20:$AL$1019 that contain the row numbers 20 through 1019
$BT20:$BT$1019 contain values 6, 7, 8, 9, 10, 11, 12
The 1 at the end of the formula finds the row number for the 1st occurrence of the value 7 from cell range $BT$20:$BT$1019

Is it possible to add to the formula that will calculate a 2nd criteria from cell range $BV$20:$BV$1019 that contain the value 3

Thank you in advance!!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about:

Excel Formula:
=INDEX($AL20:$AL1019,AGGREGATE(15,6,(ROW($AL20:$AL1019)-ROW($AL20)+1)/(($BT20:$BT$1019=7)*($BV20:$BV$1019=3)),1))
 
Upvote 0
Awesome!!
Works like a charm.
Thank you so much
Steve
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,063
Members
449,090
Latest member
fragment

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