I hope that I can explain this clearly. It seems straight forward, but for the life of me, I have spent already 5 hours trying to figure this out. I have a full list of 14 Reason Codes along with their values. Basically, I need to find the TOP 3 (largest) Reason Code Totals (values) from AJ42:AJ55 and add this results in the range AN42:AN45, respectfully, and then pull-in the associated Reason Code Names for each into range "AM42:AM45", respectfully. I am currently using forulas, "=LARGE(AJ42:AJ55,1)" in cell AN42, and changing the Large function Nth value from 1 to 2, and to 3 for the additional fields AN43 and AN44. I am currently using "{=INDEX($K$42:$K$55,MATCH(1,MATCH($AJ$42:$AJ$55,AN42,0),1))}" in cell AM42, and adjusting this formulas for the remaining cells AM43 and AM44. The issue that I have is that there are two Reason Codes Total values that are the same. They both have a value of "1". It does not matter if there are duplicates, because there are going to be duplicate totals, but I need to make sure that it is pulling the next value and not the duplicate value from the same row. Additinoally, as you can see below, in the TOP 3 Reason Code Name table, the name "Distribution Delay" is being pulled-in twice, instead of 1 time along with "Budget", which has the same total value. I cannot tell if it is the formulas that I am using in range: "AM42:AM44" or if the the formulas I am using in range "AN42:AN44" is causing this issue... or both. I guess what I need is after the first total value of a duplicate is found (i.e. AM42), I need the formula in the next rows (AM43 or AM44), to continue the search for the TOP 3 largest Reason Code Total values after the last occurrance/instance of the duplicate value, same thing goes for the Reason Code Names. I hope I explained it well enough and it was not confusing.
Full List:
Reason Codes Names are in range: "K42:K55"
Reason Codes Totals are in range: "AJ42:AJ55"
Top 3:
Top 3 Reason Codes Names are in range: "AM42:AM44"
Top 3 Reason Code Totals are in range: "AN42:AN44"
[TABLE="width: 500"]
<tbody>[TR]
[TD]Reason Code Name[/TD]
[TD]Totals[/TD]
[/TR]
[TR]
[TD]Budget[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Conflict with other work[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Customer Issue[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Distribution Delay[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Engineering[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Engineering & Construction Duration[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Equipment Failure[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]In Service Equipment Failure[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Material Unavailable[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Mobile Unavailable[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Permitting/Easement[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Pre-Approved Outage Declined[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Resource Unavailable[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Telecom Delay[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]TOP3[/TD]
[TD]YTD Totals[/TD]
[/TR]
[TR]
[TD]Reason Codes[/TD]
[TD]Totals[/TD]
[/TR]
[TR]
[TD]Telecom Delay[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Distribution Delay[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Distribution Delay[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Full List:
Reason Codes Names are in range: "K42:K55"
Reason Codes Totals are in range: "AJ42:AJ55"
Top 3:
Top 3 Reason Codes Names are in range: "AM42:AM44"
Top 3 Reason Code Totals are in range: "AN42:AN44"
[TABLE="width: 500"]
<tbody>[TR]
[TD]Reason Code Name[/TD]
[TD]Totals[/TD]
[/TR]
[TR]
[TD]Budget[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Conflict with other work[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Customer Issue[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Distribution Delay[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Engineering[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Engineering & Construction Duration[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Equipment Failure[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]In Service Equipment Failure[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Material Unavailable[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Mobile Unavailable[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Permitting/Easement[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Pre-Approved Outage Declined[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Resource Unavailable[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Telecom Delay[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]TOP3[/TD]
[TD]YTD Totals[/TD]
[/TR]
[TR]
[TD]Reason Codes[/TD]
[TD]Totals[/TD]
[/TR]
[TR]
[TD]Telecom Delay[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Distribution Delay[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Distribution Delay[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]