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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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