Link to home
Start Free TrialLog in
Avatar of Sandra Smith
Sandra SmithFlag for United States of America

asked on

Extract only unique values from a range in Excel

I have a range of about 7 values in  a column, but some of hte values will repeat.  I need to pull outonly unqiue values and use these in a loop.  For whatever reason, the Data Advance Filter Unique values in Excel 2003 does not work.  Is there any way to do this otherwise?  Has to be done with VBA
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

The advanced filter should work. If it doesn't that would indicate that the values are not really distinct.

Are there perhaps some stray characters in the entries, such as trailing spaces?

When you tried the adv filter, did you perhaps select >1 column?
Avatar of Sandra Smith

ASKER

That was the first thing I checked.  In code and manully, still returns duplicates.  
ssmith94015,

It would be useful to see some sample data and/or a sample file.  EE now allows you to directly upload files to your question.

Please be advised that once you upload a file, it can be publicly accessed, and that it may not be possible to fully and permanently delete it.  The file may also be indexed by the major search engines.

Therefore, be very careful about posting proprietary, confidential, or other sensitive information.  If necessary, use "fake" and/or obfuscated data in your sample.

Please note that at present EE restricts uploads to certain file types.  If your file type does not match those in the list, you can use http://www.ee-stuff.com instead, which is not officially an EE site, but is run by people connected to EE.

Patrick
ASKER CERTIFIED SOLUTION
Avatar of krishnakrkc
krishnakrkc
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am so sorry I did not get back to this.  My contract is up in two days so have been frantically working on other issues.  Thank you for the help as this really was a stumbling block.