index match large

ste33uka

Active Member
Joined
Jan 31, 2020
Messages
471
Office Version
  1. 365
Platform
  1. Windows
Hi would anyone have a formula that would return highest value and second highest value where match if found ?
formulas would be in cell d1 and d2
So as in example imige, match if found column A to cell a1, coloumn B to cell b1
D1 would return lagest
D2 second largest
But i only want it to look at range A100:A1000 , range b100:b1000
Thanks
EXCEL.PNG
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Change ranges to suite your example

Book1
ABCD
1Max2nd max
2redpeter76
3
4
5
6redpeter1
7redpeter2
8redpeter3
9redpeter4
10redpeter5
11redpeter6
12redpeter7
13bluejohn8
14
Sheet1
Cell Formulas
RangeFormula
C2C2=MAXIFS(C6:C100,A6:A100,A2,B6:B100,B2)
D2D2=AGGREGATE(14,6,C6:C100/(A6:A100=A2)/(B6:B100=B2),2)
 
Upvote 0
D1, D2:
Excel Formula:
=LARGE((A100:A109=A1)*(B100:B109=B1)*(C100:C109),1)
Excel Formula:
=LARGE((A100:A109=A1)*(B100:B109=B1)*(C100:C109),2)
 
Upvote 0
Solution
D1, D2:
Excel Formula:
=LARGE((A100:A109=A1)*(B100:B109=B1)*(C100:C109),1)
Excel Formula:
=LARGE((A100:A109=A1)*(B100:B109=B1)*(C100:C109),2)
Thanks alot for that, appreciate it
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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