Values only once when multiple values

Nebula2121

New Member
Joined
Apr 1, 2016
Messages
32
Current
Desired Result
A
B
1
Apple
Apple
2
Apple
Banana
3
Mango
Mango
4
Mango
Peach
5
Mango
6
Peach
7
Banana
8
Banana

<tbody>
</tbody>
I need the value only listed once (preferably in Alpha Order) from a data set column that lists that value multiple times. Refer to table for Current Set and the Desired Result; how do I get to the Desired Result?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hey,

Excel has an inbuilt Remove duplicates tool in the Data ribbon tab. Then just sort the column alphabetically ! :)
 
Last edited:
Upvote 0
One simple way it to copy the the list to column B, use Excel's built-in Remove Duplicate Functionality, and then sort that list.
If you wanted VBA to do it, you can turn on your Macro Recorder and record yourself performing the steps above, and then you will have the VBA required to do that.
 
Upvote 0
You could use COUNTIF as such:

=IF(COUNTIF($A$1:A1,A1)=1,A1,"") and drag down the B column.

It will leave spaces however but it will generate a unique list.

Then you can just tidy the spaces up pretty easily by sorting again.
 
Upvote 0
You can create a pivot table, drag the field from column A in Row Lables

8cb50c321ceb387d7e1642d6716fc76e.jpg
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

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