+ Reply to Thread
Results 1 to 7 of 7

extract unique list

  1. #1
    Registered User
    Join Date
    01-21-2015
    Location
    hyderabad
    MS-Off Ver
    2007
    Posts
    73

    extract unique list

    HI


    Pls go through the attachment. after running the code one number coming two times in the unique list. Pls help me.


    regards
    ajay
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: extract unique list

    The AdvancedFilter function uses the first cell in the filter range as a header. Your filter range starts at row A2. So the first value 101 is the header and not part of the unique list.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: extract unique list

    As @AlphaFrog mentions, start your range at the headers not the first row of values.

    Also not sure I see the need to use 2x For loops instead of a single one.

    Please Login or Register  to view this content.
    Would the above work in place of both For loops?

    Also instead of:

    Please Login or Register  to view this content.
    I would recommend:

    Please Login or Register  to view this content.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  4. #4
    Registered User
    Join Date
    01-21-2015
    Location
    hyderabad
    MS-Off Ver
    2007
    Posts
    73

    Re: extract unique list

    Dear AlphaFrog,

    Still i'm getting error. Pls rectify it.

    Please Login or Register  to view this content.
    thank you in advance

    regards
    ajay
    Attached Files Attached Files
    Last edited by ajaypal.sp; 02-15-2018 at 04:04 AM. Reason: Attachment Added

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,336

    Re: extract unique list

    Are you not wanting to compare unique values to Col A and if > 1 then color???
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,912

    Re: extract unique list

    Just an alternative.
    Please Login or Register  to view this content.
    Last edited by bakerman2; 02-15-2018 at 05:48 AM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  7. #7
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: extract unique list

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Extract Unique Values from List using VBA
    By musicman1985 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-03-2018, 05:24 AM
  2. [SOLVED] Extract a unique list from 2 columns
    By rlowry in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 09-28-2017, 02:47 AM
  3. Replies: 6
    Last Post: 07-04-2016, 04:52 PM
  4. Extract unique list from column
    By lamdl in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-25-2014, 05:17 AM
  5. [SOLVED] automatically extract unique values from a list
    By labogola in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-07-2014, 10:54 AM
  6. Extract unique numbers from a list
    By excelbee in forum Excel General
    Replies: 7
    Last Post: 08-11-2012, 09:00 AM
  7. Extract Data From a list with unique value
    By sunflowers in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 12-22-2011, 08:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1