# Row of the Second Largest Number

#### chris000

##### New Member
Hi,

I have an array in cell A1:A6 with integers. Some of the number have duplicates. How can I know the row number of the second largest number if the first largest number and the second largest number are the same?

for example, I have
A1: 2
A2: 5
A3: 5
A4: 2
A5: 1

if I use match and large,
= MATCH(LARGE(A1:A6,1),A1:A6,0) = 2
= MATCH(LARGE(A1:A6,2),A1:A6,0) = 2, this should return 3.

Thank you very much

### Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Control+shift+enter, not just enter:

=SMALL(IF(A1:A5=LARGE(A1:A5,2),ROW(A1:A5)),COUNTIF(A1:A5,LARGE(A1:A5,2)))

Code:
``=SMALL(IF(A1:A5=LARGE(A1:A5,2),ROW(A1:A5)),[B][COLOR="#FF0000"]2-[/COLOR][/B]COUNTIF(A1:A5,[B][COLOR="#FF0000"]">"&[/COLOR][/B]LARGE(A1:A5,2)))``

Replies
4
Views
209
Replies
5
Views
298
Replies
10
Views
695
Replies
5
Views
200
Replies
9
Views
190

1,216,130
Messages
6,129,058
Members
449,484
Latest member
khairianr

### 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.

### Which adblocker are you using?

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

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