Unique List

Salt1972

New Member
Joined
Nov 10, 2014
Messages
10
I need a formula to create a unique list from a column with duplicates, preferably an alphabetical list. I've tried a formula posted here:

=INDEX($A$2:$A$11,MATCH(0,COUNTIF($A$2:$A$11,"<"&$A$2:$A$11)-SUM(COUNTIF($A$2:$A$11,"="&B$1:B1)),0))

The trouble is that my range is 20,000 rows and my spreadsheet bogs down / stops. Google Spreadsheets has a BEAUTIFUL function called "Unique" that will do this. Is there an Excel equivalent?

Thank you!

Matt
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
hi, Matt

Superior to formulas, I find, is using SQL. Such as

SELECT DISTINCT field_name
FROM data_reference
ORDER BY 1

In Excel this can be a query table and additionally via Excel there is the option of using ADO. Or in VBA without SQL there are many approaches

If the sort is the opposite way, tag DESC on the end so the last clause becomes : ORDER BY 1 DESC

HTH
 
Upvote 0
Fazza-

Thank you for your response. I gather there are a lot of ways to accomplish my goal... and while, in some circles, consider myself reasonably adept with Excel, I get here and realize that I know NOTHING. I'm afraid the basis for your suggestions lies beyond my knowledge. Are there people on the board (maybe you?) that would do fee based consult/assist on this?
 
Upvote 0
It isn't how the forum operates, Matt. Asking (more) questions & google might answer all your questions. Mr Excel (business) does offer services & training, I believe.

To search for more info google for Excel external data queries. And look in Excel help. There is a wizard that you can explore, start it with ALT-D-D-N

There are plenty of helpers here, just keep asking. :-)
 
Upvote 0
Assuming you have Excel 2007 or later, let us know if these four steps help:

1. Copy the entire list to a columns where you want the unique values (in any order you like)
2. Select the list just copied and from the Data Tools tab on the Data ribbon click Remove Duplicates
3. If asked, click the Continue with the Current Selection radio button and then click Remove Duplicates
4. Click OK

A meesage box then appears telling you how many duplicates were removed as well as how many unique items remain.

HTH

Robert
 
Upvote 0
The trouble is that my range is 20,000 rows and my spreadsheet bogs down / stops. Google Spreadsheets has a BEAUTIFUL function called "Unique" that will do this. Is there an Excel equivalent?

Yes, it can be found under data tab, Data Tools, Remove duplicates

An alternaitive may be to use this non-array formula...
=IFERROR(INDEX($B$4:$B$49,MATCH(0,INDEX(COUNTIF($D$4:D4,$B$4:$B$9),0,0),0)),"")
 
Upvote 0

Forum statistics

Threads
1,224,091
Messages
6,176,298
Members
452,720
Latest member
Quazlat

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