Lookup 1st , 2nd , 3rd Maximum value

skhaliq

New Member
Joined
Dec 24, 2011
Messages
17
[TABLE="width: 384"]
<colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl64, width: 64, align: center"]Data[/TD]
[TD="width: 64, align: center"][/TD]
[TD="width: 64, align: center"][/TD]
[TD="width: 64, align: center"][/TD]
[TD="width: 64, align: center"][/TD]
[TD="width: 64, align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Names[/TD]
[TD="class: xl63, align: center"]SKU1[/TD]
[TD="class: xl63, align: center"]SKU2[/TD]
[TD="class: xl63, align: center"]SKU3[/TD]
[TD="class: xl63, align: center"]SKU4[/TD]
[TD="class: xl63, align: center"]SKU5[/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Ali[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Butt[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]16[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Adnan[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]25[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]15[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="width: 64"]Result[/TD]
[/TR]
[TR]
[TD]Ali[/TD]
[TD="class: xl65"]20[/TD]
[/TR]
[TR]
[TD]Ali[/TD]
[TD="class: xl65"]15[/TD]
[/TR]
[TR]
[TD]Butt[/TD]
[TD="class: xl65"]?[/TD]
[/TR]
[TR]
[TD]Butt[/TD]
[TD="class: xl65"]?[/TD]
[/TR]
[TR]
[TD]Butt[/TD]
[TD="class: xl65"]?[/TD]
[/TR]
[TR]
[TD]Adnan[/TD]
[TD="class: xl65"]?[/TD]
[/TR]
[TR]
[TD]Adnan[/TD]
[TD="class: xl65"]?[/TD]
[/TR]
[TR]
[TD]Adnan[/TD]
[TD="class: xl65"]?[/TD]
[/TR]
[TR]
[TD]Adnan[/TD]
[TD="class: xl65"]?[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
My very crude and swift mock-up; perhaps:


Excel 2010
ABCDEFGHIJ
1SKU1SKU2SKU3SKU4SKU5IndexNameResult
2Ali02015001Ali20
3Butt15016302Ali15
4Adnan0251510151Butt15
52Butt16
63Butt30
71Adnan25
82Adnan15
93Adnan10
104Adnan15
Sheet1
Cell Formulas
RangeFormula
H2=COUNTIF($I$2:I2,I2)
J2{=INDEX($B$2:$F$4,MATCH(I2,$A$2:$A$4,0),SMALL(IF(INDEX($B$2:$F$4,MATCH(I2,$A$2:$A$4,0),0)>0,COLUMN($B$1:$F$1)-COLUMN(A2)),H2))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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