Create a list without duplicates

coccio

Board Regular
Joined
Mar 19, 2002
Messages
156
Office Version
  1. 2016
I have a list of street addresses and want to create a list of street addresses without any duplicate address show for instance in this example
I want to turn column A into Column B

COLUMN ACOLUMN B
ADAMS STADAMS ST
ADAMS STALBERT AVE
ADAMS STALMONT AVE
ALBERT AVE
ALMONT ST
ALMONT ST
ALMONT ST
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
You could do it all in the same column with one line of code:

VBA Code:
    ActiveSheet.Range("$A$1:$A$7").RemoveDuplicates Columns:=1, Header:=xlNo
 
Upvote 0
Knowing your Excel version is important. If you are using a more recent version of Excel, then under the "Data" menu there is a pick called "Remove Duplicates"
 
Upvote 0
Knowing your Excel version is important. If you are using a more recent version of Excel, then under the "Data" menu there is a pick called "Remove Duplicates"
I updated my profile I have 2016
 
Upvote 0
Thanks for that.
How about
Fluff.xlsm
AB
1COLUMN ADistinct
2ADAMS STADAMS ST
3ADAMS STALBERT AVE
4ADAMS STALMONT ST
5ALBERT AVE 
6ALMONT ST 
7ALMONT ST 
8ALMONT ST
9
10
Main
Cell Formulas
RangeFormula
B2:B7B2=IFERROR(INDEX($A$2:$A$100,AGGREGATE(15,6,(ROW($A$2:$A$100)-ROW($A$2)+1)/($A$2:$A$100<>"")/(ISNA(MATCH($A$2:$A$100,B$1:B1,0))),1)),"")
 
Upvote 0
Solution
Thanks for that.
How about
Fluff.xlsm
AB
1COLUMN ADistinct
2ADAMS STADAMS ST
3ADAMS STALBERT AVE
4ADAMS STALMONT ST
5ALBERT AVE 
6ALMONT ST 
7ALMONT ST 
8ALMONT ST
9
10
Main
Cell Formulas
RangeFormula
B2:B7B2=IFERROR(INDEX($A$2:$A$100,AGGREGATE(15,6,(ROW($A$2:$A$100)-ROW($A$2)+1)/($A$2:$A$100<>"")/(ISNA(MATCH($A$2:$A$100,B$1:B1,0))),1)),"")
That worked Thanks
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,696
Members
449,048
Latest member
81jamesacct

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