Sorting duplicate entries based on ranges

fdrgiit

New Member
Joined
Sep 4, 2014
Messages
2
</SPAN></SPAN></SPAN></SPAN>Hey Guys,
Consider this scenario.</SPAN>
Consider the following table with these entries:</SPAN>

Name</SPAN></SPAN>
number1</SPAN></SPAN>
number2</SPAN></SPAN>
Abhinav</SPAN></SPAN>
1</SPAN></SPAN>
1</SPAN></SPAN>
Abhinav</SPAN></SPAN>
1</SPAN></SPAN>
4</SPAN></SPAN>
Abhinav</SPAN></SPAN>
1</SPAN></SPAN>
1</SPAN></SPAN>
Abhinav</SPAN></SPAN>
2</SPAN></SPAN>
6</SPAN></SPAN>
Abhinav</SPAN></SPAN>
1</SPAN></SPAN>
9</SPAN></SPAN>
Singh</SPAN></SPAN>
2</SPAN></SPAN>
3</SPAN></SPAN>
Singh</SPAN></SPAN>
5</SPAN></SPAN>
5</SPAN></SPAN>
Singh</SPAN></SPAN>
6</SPAN></SPAN>
8</SPAN></SPAN>
Singh</SPAN></SPAN>
7</SPAN></SPAN>
7</SPAN></SPAN>
Singh</SPAN></SPAN>
9</SPAN></SPAN>
9</SPAN></SPAN>

<TBODY>
</TBODY>

As you can see there are duplicate entries.</SPAN>
I want to sort it in such a way that under the name column I have</SPAN>
All the unique entries and under the other two columns, number1 displaying the</SPAN>
Least value and number2 displaying the highest value pertaining to each unique entry.</SPAN>
Here is an example:</SPAN>

Name</SPAN></SPAN>
number1</SPAN></SPAN>
number2</SPAN></SPAN>
Abhinav</SPAN></SPAN>
1</SPAN></SPAN>
9</SPAN></SPAN>
Singh</SPAN></SPAN>
2</SPAN></SPAN>
9</SPAN></SPAN>

<TBODY>
</TBODY>

If this is possible, it can really help me in generating daily reports.</SPAN>
Please look into this issue and reply asap.</SPAN>

Thank You</SPAN>
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

azumi

Well-known Member
Joined
Jun 4, 2013
Messages
555
Assumed your table in ranges A1:C11 (Include Table Header),

Put in A13, for unique names:
=IFERROR(INDEX($A$2:$A$11,MATCH(0,COUNTIF($A$2:$A$11,"<"&$A$2:$A$11)-SUM(COUNTIF($A$2:$A$11,"="&A$12:A12)),0)),"")

This Array Formula, when ENTER press CTRL-SHIFT-ENTER button together, and then copied down.

For Least Number, put in B13:
=MIN(IF($A$2:$A$11=$A13,$B$2:$B$11))

Array Formula too, and copied down

For Big Number, put in C13:
=MAX(IF($A$2:$A$11=$A13,$C$2:$C$11))

Array Formula and copied down
 

Watch MrExcel Video

Forum statistics

Threads
1,130,169
Messages
5,640,552
Members
417,151
Latest member
ChickenTenderer

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
Top