Small Function Match

rehberger

Board Regular
Joined
Aug 28, 2013
Messages
52
I was using the small function until I got stuck. Is there a way I can match the name to a value when there are duplicates?
For example, in the chart below, I would like to order these from smallest to largest and then bring in the name next to it also. Since I have two names with $1 how do I write a formula that will bring in both names?

NameAmount
David$1
Mark$5
Jim$7
Tom$1
Ric$4

<tbody>
</tbody>
 

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.
maybe something like....

Unknown
ABCDEF
1NameAmount
2David$111David
3Mark$521Tom
4Jim$734Ric
5Tom$145Mark
6Ric$457Jim

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
E2=SMALL($B$2:$B$6,D2)

<tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
F2{=INDEX($A$2:$A$6,SMALL(IF($B$2:$B$6=E2,ROW($B$2:$B$6)-ROW($B$2)+1),COUNTIF($E$2:E2,E2)))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
maybe something like....

Unknown
ABCDEF
1NameAmount
2David$111David
3Mark$521Tom
4Jim$734Ric
5Tom$145Mark
6Ric$457Jim

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
E2=SMALL($B$2:$B$6,D2)

<tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
F2{=INDEX($A$2:$A$6,SMALL(IF($B$2:$B$6=E2,ROW($B$2:$B$6)-ROW($B$2)+1),COUNTIF($E$2:E2,E2)))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
Thank You, that worked:)
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,792
Members
449,468
Latest member
AGreen17

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