combining unique values

joldfield101

New Member
Joined
Jul 8, 2013
Messages
2
Part 1

I would like to take info in a column and get a list of unique values

eg:

tom
dave
bob
dave
dave
tom
tom
dave
tom
bob


WOULD BECOME:

tom
dave
bob

NOTE: the data is contained on SHEET1 and i will have the formula on SHEET2

PART 2

I would like to sum up the values in column B for each name

eg:


tom5
dave6
bob1
tom5
dave3
dave3
bob13

<tbody>
</tbody>

would become:

tom10
dave12
bob14

<tbody>
</tbody>

NOTE: Again, the data is on SHEET1 and the formula is on SHEET2
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Sheet2

A2, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IFERROR(INDEX(Sheet1!$A$2:$A$11,SMALL(IF(FREQUENCY(IF(Sheet1!$A$2:$A$11<>"",
   MATCH(Sheet1!$A$2:$A$11,Sheet1!$A$2:$A$11,0)),
   ROW(Sheet1!$A$2:$A$11)-ROW(Sheet1!$A$2)+1),
   ROW(Sheet1!$A$2:$A$11)-ROW(Sheet1!$A$2)+1),
   ROWS($A$2:A2))),"")

B2, just enter and copy down:
Rich (BB code):
=IF($A2="","",SUMIF(Sheet1!$A$2:$A$1,$A2,Sheet1!$B$2:$B$11))
 
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,418
Members
449,449
Latest member
Quiet_Nectarine_

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