Breaking a tie in a large function

Devge

New Member
Joined
May 2, 2016
Messages
22
I am doing an index match with a large formula, however I have duplicates values in AT1-BE1


=INDEX($AT$1:$BE$1,MATCH(LARGE($AT2:$BE2,COLUMNS($BF2:BF2)),$AT2:$BE2,0)) Is there a way to show the values that have duplicates?

Thanks!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Are the values in AT2:BE2 integers? If so, you can use the column number to break the tie:

=INDEX($AT$1:$BE$1,MATCH(LARGE($AT2:$BE2+COLUMN($AT2:$BE2)/1000,COLUMNS($BF2:BF2)),$AT2:$BE2+COLUMN($AT2:$BE2)/1000,0))
confirmed by pressing Control+Shift+Enter.

If the values are arbitrary fractional numbers, there are more complicated ways to do it.
 
Upvote 0
I had not even thought of using the column number to break ties, Eric, thank you very much I will try this and get back to you!!
 
Upvote 0
One more to try: this one doesn't require the values to be integers, but it's a bit longer and still requires the CSE:

=INDEX($AT$1:$BE$1,SMALL(IF($AT2:$BE2=LARGE($AT2:$BE2,COLUMNS($BF2:BF2)),COLUMN($AT2:$BE2)-COLUMN($AT2)+1),COLUMNS($AT2:AT2)-COUNTIF($AT2:$BE2,">"&LARGE($AT2:$BE2,COLUMNS($BF2:BF2)))))
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,139
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