LARGE IF AND Formula

ferr

New Member
Joined
Jun 9, 2022
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Looking to populate the ID with the largest nth Value in L15 :P15 based on the following conditions.

Date is 10/17
location is North

=INDEX(A:A,MATCH(LARGE(IF(AND(D:D=L13,B:B=K15),C:C),1),C:C,0))
formula does not work, looking for the appropriate formula

Copy of Book1.xlsx
ABCDEFGHIJKLMNOP
1IDLocation Value Date
2CA-01North$ 6,940.0010-Oct
3CA-02North$ 466.0017-Oct
4CA-03South$ 46,464.0010-Oct
5CA-04North$ 335,647.0010-Oct
6CA-05South$ 799,930.0017-Oct
7CA-06South$ 30,506.0010-Oct
8CA-07South$ 746,435.0010-Oct
9CA-08South$ 56,777.0010-Oct
10CA-09South$ 503.0017-Oct
11CA-10South$ 353,567.0010-Oct
12CA-11North$ 474,367.0017-Oct
13CA-12North$ 5,754,332.0010-Oct17-Oct
14CA-13South$ 6,267.0017-Oct12345
15CA-14North$ 353,577.0017-OctNorth#N/A#NUM!#NUM!#NUM!#NUM!
16CA-15South$ 10,292.0010-OctSouth
17CA-16North$ 2,030,405.0010-Oct
18CA-17South$ 24,677,788.0010-Oct
19CA-18North$ 35,353,536.0017-Oct
20CA-19South$ 464.0018-Oct
21CA-20North$ 2,403,030.0010-Oct
22CA-21South$ 30,405.0011-Oct
23CA-22South$ 30,530.0010-Oct
24CA-23South$ 22,020.0010-Oct
25CA-24North$ 10,202.0010-Oct
26CA-25North$ 102,045.0017-Oct
27CA-26South$ 35,040,406.0017-Oct
28CA-27North$ 30,340.0017-Oct
29CA-28South$ 34,030.0017-Oct
30CA-29North$ 450,606.0010-Oct
31CA-30South$ 4.0017-Oct
32CA-31North$ 4,357.0018-Oct
33CA-32South$ 867,564.0017-Oct
34CA-33North$ 4,657.009-Oct
35CA-34North$ 243,546.0010-Oct
36CA-35North$ 87,586.0010-Oct
37CA-36South$ 689,965.0011-Oct
38CA-37North$ 4,656,588.0010-Oct
39CA-38South$ 578,585.0011-Oct
40CA-39South$ 5,754,342.0017-Oct
Sheet1
Cell Formulas
RangeFormula
L15:P15L15=INDEX($A:$A,MATCH(LARGE(IF(AND($D:$D=$L$13,$B:$B=$K$15),$C:$C),L14),$C:$C,0))
Named Ranges
NameRefers ToCells
_FilterDatabase=Sheet1!$A$1:$D$44L15:P15
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
The AND() will collapse your two vectors to a single value (unless you apply it BYROW).

Try L15: =INDEX($A:$A,MATCH(LARGE(IF(($D:$D=$L$13)*($B:$B=$K15),$C:$C),L$14),$C:$C,0))

Or you could replace L15: P15 with L15:=TRANSPOSE(TAKE(SORT(FILTER(A$2:C$40,(B$2:B$40=K15)*(D$2:D$40=L$13)),3,-1),5,1))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,952
Messages
6,175,596
Members
452,657
Latest member
giadungthienduyen

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