INDEX/LARGE Formula Error

rck

New Member
Joined
Nov 17, 2011
Messages
33
I am having trouble with the INDEX/LARGE function in this sheet:


Excel 2000
ABCDEFGHIJK
2District 0District 1District 2District 3District 4District 5District 6District 7District 8Total
3AM29363419423013310241269803666
4AM34491825918438617336153257
5AM511029583613281425171809593341
6AM61414364171078329816352843523753
7Total38822832701231245218862291119850614017
8
9Percentage
10AM223.97%27.77%71.90%13.02%7.30%5.41%17.98%5.76%15.81%26.15%
11AM311.34%40.21%9.59%79.71%1.77%3.23%3.19%3.01%2.96%23.24%
12AM528.35%12.92%3.07%2.64%72.57%75.56%7.46%67.53%11.66%23.84%
13AM636.34%19.10%15.44%4.63%18.36%15.80%71.37%23.71%69.57%26.77%
14
15Max:14191819421843328142516358093523753
16Primary Unit:AM6AM3AM2AM3AM5AM5AM6AM5AM6
17Secondary Unit:#REF!AM2AM6
2012Calls


I would like tex ($A$3:$A$6) associated with the second highest value in range B3:B6 to be displayed in B17. B17 should contain "AM5", but I would like the formula to populate that, not manual entry.

Thanks in advance!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Try:
Just enter formula in B17 and copy across.
Excel Workbook
ABCDEFGHIJKL
1
2District 0District 1District 2District 3District 4District 5District 6District 7District 8Total
3AM29363419423013310241269803666
4AM34491825918438617336153257
5AM511029583613281425171809593341
6AM61414364171078329816352843523753
7Total38822832701231245218862291119850614017
8
9Percentage
10AM223.97%27.77%71.90%13.02%7.30%5.41%17.98%5.76%15.81%26.15%
11AM311.34%40.21%9.59%79.71%1.77%3.23%3.19%3.01%2.96%23.24%
12AM528.35%12.92%3.07%2.64%72.57%75.56%7.46%67.53%11.66%23.84%
13AM636.34%19.10%15.44%4.63%18.36%15.80%71.37%23.71%69.57%26.77%
14
15Max:14191819421843328142516358093523753
16Primary Unit:AM6AM3AM2AM3AM5AM5AM6AM5AM6
17Secondary Unit:AM5AM2AM6AM2AM6AM6AM2AM6AM2
Sheet
 
Upvote 0
Solution
Try this:
[TABLE="width: 396"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Primary Unit:[/TD]
[TD]=INDEX($A$2:$A$5,MATCH(LARGE(B2:B5,1),B2:B5,0))[/TD]
[/TR]
[TR]
[TD]Secondary Unit:[/TD]
[TD]=INDEX($A$2:$A$5,MATCH(LARGE(B2:B5,2),B2:B5,0))[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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