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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,215
Members
448,554
Latest member
Gleisner2

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