+ Reply to Thread
Results 1 to 6 of 6

Compare two columns delete duplicates

  1. #1
    Registered User
    Join Date
    07-16-2013
    Location
    roma,italy
    MS-Off Ver
    Excel 2007
    Posts
    4

    Compare two columns delete duplicates

    Hi, can you please post here the macro code that doesn't shift the deleted duplicates? because i need the blank cells. Thank you very much!
    Last edited by arlu1201; 07-16-2013 at 08:05 AM.

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

    Re: Compare two columns-delete duplicates from just ONE column

    If you look in macro code, it doesn't actually delete them, it simply clears the cells, thus creating blank cells all through the data. But near the end of the macro is a SORT line of code that sorts the data, this would move all blanks to the end, making it look like they were deleted.

    To have it NOT do that, just remove the line of code that does the SORT. You'll probably want to delete the MsgBox at the end, too.
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    07-16-2013
    Location
    roma,italy
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Compare two columns delete duplicates

    Thank you very much for the answer JBeaucaire !

  4. #4
    Registered User
    Join Date
    07-16-2013
    Location
    roma,italy
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Compare two columns-delete duplicates from just ONE column

    Sorry but i lost the page of where you posted the code... can you repost here please? Thank you again!

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

    Re: Compare two columns delete duplicates


  6. #6
    Registered User
    Join Date
    07-16-2013
    Location
    roma,italy
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Compare two columns delete duplicates

    Thank you again

+ 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. [SOLVED] Test if a cell is within a name range and return a text value based on the test
    By DraconR in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-24-2013, 02:46 AM
  2. Pull sub-test scores from test w/best overall test score (PSAT)
    By PowerSchoolDude in forum Excel General
    Replies: 0
    Last Post: 11-19-2009, 08:29 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