+ Reply to Thread
Results 1 to 4 of 4

How to record a macro that removes duplicates and sorts the cells?

  1. #1
    Registered User
    Join Date
    01-05-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    16

    How to record a macro that removes duplicates and sorts the cells?

    Hi,

    I have spreadsheet that contains values in various columns (and may include blank cells) and I was wondering if you can help:
    1. Remove duplicates from all the columns
    2. Copy all the cells into one column
    3. Once again check for any duplicates
    4. Sort the cells in ascending order

    I have attached a sample spreadsheet for your reference.

    Note: I am assuming I would require a macro, but if there is any alternative that would work, please do let me.
    Thanks in advance,

    Streetcat
    Attached Files Attached Files
    Last edited by streetcat; 01-25-2012 at 02:33 AM.

  2. #2
    Registered User
    Join Date
    01-05-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: How to record a macro that removes duplicates and sorts the cells?

    Can someone please help me?

    Please provide any variation that may work for my problem.
    All I require is to remove duplicates and sort the cells in ascending order

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to record a macro that removes duplicates and sorts the cells?

    This macro will examine columns A:C and assemble a unique list for you in column G:

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 01-23-2012 at 03:58 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to record a macro that removes duplicates and sorts the cells?

    This macro will examine columns A:C and assemble a unique list for you in column G:

    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)

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