find nth smallest value with multiple criteria

aghaffar82

Board Regular
Joined
Jun 13, 2019
Messages
65
Office Version
  1. 365
Platform
  1. Windows
Hello everyone, I am stuck to find nth smallest value from a range of cells with multiple criteria. I have a formula to extract nth largest values but not being able to reverse that formula to get the nth smallest value.

The formula i'm using to extract nth largest value is as follows:
=SUMPRODUCT(LARGE(($I$2:$I$11>=A17)*($I$2:$I$11<=B17)*($L$2:$L$11),2))

I need to get nth smallest value for the exact same ranges.

Kindly help. Best Regards
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi, welcome to the forum!

Here are a couple of alternatives:

For nth largest:
=AGGREGATE(14,6,$L$2:$L$10/(($I$2:$I$10>=$A$17)*($I$2:$I$10<=$B$17)),2)

And nth smallest:
=AGGREGATE(15,6,$L$2:$L$10/(($I$2:$I$10>=$A$17)*($I$2:$I$10<=$B$17)),2)
 
Upvote 0
Hi, welcome to the forum!

Here are a couple of alternatives:

For nth largest:
=AGGREGATE(14,6,$L$2:$L$10/(($I$2:$I$10>=$A$17)*($I$2:$I$10<=$B$17)),2)

And nth smallest:
=AGGREGATE(15,6,$L$2:$L$10/(($I$2:$I$10>=$A$17)*($I$2:$I$10<=$B$17)),2)

Thank you for the welcome and your response. It worked :)

Much love and respect for quick and accurate help.
Best Regards
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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