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>
 

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
 

Forum statistics

Threads
1,081,986
Messages
5,362,561
Members
400,681
Latest member
mariscann

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top