Index and Match lowest nth and highest nth value of a given number from a list

NileshAPatel

New Member
Joined
May 29, 2021
Messages
26
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi All,
I want to workour formula to find lowest decreasing nth value from a list base on a specific value and same for highest increasing nth value as showing in column K

H5 and H14 are figure to be input manually.


Thanks.








How-to-find-nth-closest-match-in-Excel-Updated.xlsx
ABCDEFGHIJKL
1
2
3
4IdNameTypeStats TotalLowest in decreasing order
54CharmanderFire309Match499nthMatched Stat
67SquirtleWater3141405
75CharmeleonFire4052405
88WartortleWater4053314
91BulbasaurGrass499
102IvysaurGrass524
113VenusaurGrass525
129BlastoiseFire530
136CharizardFire534Higher in increasing order
14Match499nthMatched Stat
151524
162525
173530
18
Closest match (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B5:E13Expression=$C5=#REF!textNO
B5:E13Expression=$C5=#REF!textNO
B5:E13Expression=$C5=#REF!textNO
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi, please try:
Book2
ABCDEFGHIJK
1
2
3
4IdNameTypeStats TotalLowest in decreasing order
54CharmanderFire309Match499nthMatched Stat
67SquirtleWater3141405
75CharmeleonFire4052405
88WartortleWater4053314
91BulbasaurGrass499
102IvysaurGrass524
113VenusaurGrass525
129BlastoiseFire530
136CharizardFire534Higher in increasing order
14Match499nthMatched Stat
151524
162525
173530
Sheet1
Cell Formulas
RangeFormula
K6:K8K6=IFERROR(AGGREGATE(14,6,($E$5:$E$13)/($E$5:$E$13<$H$5),J6),"")
K15:K17K15=IFERROR(AGGREGATE(15,6,($E$5:$E$13)/($E$5:$E$13>$H$5),J15),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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