Large Function + Search Criteria + Ignore Duplicate values

Aldonin

New Member
Joined
Jan 27, 2012
Messages
28
Hi all gurus:

Quick question here, I have a data table like the one below. For this, id like to be able to pull the result in column "C" this is, the second highest time for each specific code only. The challenge I've had so far is that Large does not account for duplicate values, so for Code 2000 I will always get 65 as the 2nd highest time.

Any suggestions?

Thanks all!!


<colgroup><col><col></colgroup><tbody>
</tbody>


A
B
C
D
E
1
Code
Time
Personal Second Best
2
2000
65
47
3
2000
65
47
4
2000
47
47
5
2000
65
47
6
2000
33
47
7
2000
65
47
8
2001
33
12
9
2001
33
12
10
2001
12
12

<tbody>
</tbody>
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
One possibility but I'm sure there's a more efficient way:


Book1
ABC
1codetimepsb
220006547
320006547
420004747
520006547
620003347
720006547
820013312
920013312
1020011212
Sheet1
Cell Formulas
RangeFormula
C2{=MAX(IF($A$2:$A$10=$A2,IF($B$2:$B$10<>MAX(IF($A$2:$A$10=$A2,$B$2:$B$10)),$B$2:$B$10)))}
Press CTRL+SHIFT+ENTER to enter array formulas.


WBD
 
Upvote 0

Forum statistics

Threads
1,215,906
Messages
6,127,665
Members
449,397
Latest member
Bastbog

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