Index match large problem

ebea

Active Member
Joined
Jul 12, 2008
Messages
302
Office Version
  1. 2021
Platform
  1. Windows
Hi! I run into problems, to get get the highest values in a range, listed correctly. The code I use, are originally grabbed from: Index Match Duplicate Values With No Helper Cells [SOLVED]

I have changed the code, delivered from T. Valko (in the Link) a bit, to fit into my use. But when I try to list the highest values, I do only get the value listed as they comes from the match, and not the highest values, as they should be.
I put in here, the example, below!
I only need the 6 highest values.

Do anyone have an idea, how to correct this?
Thank you!

Book1
ABCDEFGHIJKLMNOP
1200200198200200200200200199199198200200200199199
21511151212151016121191110181714
3
4Large 1Large 2Large 3Large 4Large 5large 6
5151112121510<---------Formula result
6
7181615151212<---------Should be
Sheet1
Cell Formulas
RangeFormula
A5:F5A5{=INDEX($A2:$P2,MATCH(LARGE($A1:$P1-COLUMN($A1:$P1)/10^10,COLUMNS($A5:A5)),$A1:$P1-COLUMN($A1:$P1)/10^10,0))}
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Ok, I understand what you are trying to do, but unfortunately that is beyond my meagre knowledge of formulae.
 
Upvote 0

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Ok, bit of a bodge, but it seems to work
Code:
=AGGREGATE(14,6,$A2:$P2/($A1:$P1=LARGE($A1:$P1,COLUMNS($R2:R2))),IF(COLUMNS($R2:R2)<=COUNTIF($A1:$P1,LARGE($A1:$P1,1)),COLUMNS($R2:R2),COLUMNS($R2:R2)-COUNTIF($A1:$P1,">"&LARGE($A1:$P1,COLUMNS($R2:R2)))))
 
Upvote 0
Hi Fluff! I do not know, in which part of your brain, you did pick that solution out; But I'm impressed. It works, and it's very nice. So a great thanks from me, and that you did'n gave up :)
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,198
Members
453,022
Latest member
RobertV1609

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