LARGE Function

Jar888

Board Regular
Joined
Jan 15, 2022
Messages
61
Office Version
  1. 2016
Platform
  1. Windows
I might be missing something stupid, but I can't work out when two numbers are of the same value how to make it display both in sequential order rather than the same item twice then the 3rd;

Cell Formulas
RangeFormula
AH12:AH17AH12=L7
AI12:AI17AI12=IF(SUM(M7:N7)=0,"",SUM(M7:N7))
Z12Z12=IFERROR(INDEX($AH$12:$AH$17,MATCH(LARGE($AI$12:$AI$17,1),$AI$12:$AI$17,0))&" - "&LARGE($AI$12:$AI$17,1)&"hrs","")
Z13Z13=IFERROR(IF(LARGE($AI$12:$AI$17,1)>0,INDEX($B$41:$B$46,MATCH(LARGE($AI$12:$AI$17,1),$AI$12:$AI$17,0))&" - "&INDEX($F$41:$F$46,MATCH(LARGE($AI$12:$AI$17,1),$AI$12:$AI$17,0)),""),"")
Z15Z15=IFERROR(INDEX($AH$12:$AH$17,MATCH(LARGE($AI$12:$AI$17,2),$AI$12:$AI$17,0))&" - "&LARGE($AI$12:$AI$17,2)&"hrs","")
Z16Z16=IFERROR(IF(LARGE($AI$12:$AI$17,2)>0,INDEX($B$41:$B$46,MATCH(LARGE($AI$12:$AI$17,2),$AI$12:$AI$17,0))&" - "&INDEX($F$41:$F$46,MATCH(LARGE($AI$12:$AI$17,2),$AI$12:$AI$17,0)),""),"")
Z18Z18=IFERROR(INDEX($AH$12:$AH$17,MATCH(LARGE($AI$12:$AI$17,3),$AI$12:$AI$17,0))&" - "&LARGE($AI$12:$AI$17,3)&"hrs","")
Z19Z19=IFERROR(IF(LARGE($AI$12:$AI$17,3)>0,INDEX($B$41:$B$46,MATCH(LARGE($AI$12:$AI$17,3),$AI$12:$AI$17,0))&" - "&INDEX($F$41:$F$46,MATCH(LARGE($AI$12:$AI$17,3),$AI$12:$AI$17,0)),""),"")
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
For Z12 try
Excel Formula:
=IFERROR(INDEX($AH$12:$AH$17,AGGREGATE(15,6,(ROW($AH$12:$AH$17)-ROW($AH$12)+1)/(LARGE($AI$12:$AI$17,1)=$AI$12:$AI$17),1))&" - "&LARGE($AI$12:$AI$17,1)&"hrs","")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,950
Messages
6,122,436
Members
449,083
Latest member
Ava19

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