+ Reply to Thread
Results 1 to 2 of 2

Remove Duplicates from 2 columns then auto sort

  1. #1
    Registered User
    Join Date
    06-23-2011
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    2

    Remove Duplicates from 2 columns then auto sort

    Hello,

    I am trying to remove duplicates from 2 columns automatically without using a macro. I have a formula that does this but it replaces the duplicates with blank cells. How would I remove these blanks? I want this to automatically take place whenever the document is opened. I was thinking if I could automatically sort, the blanks would just get moved to the bottom but I am not sure how to do this. I have attached what I have done so far.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Remove Duplicates from 2 columns then auto sort

    See attached.

    Instead of your Concatenate() helper formula, try this helper in C2:

    =IF(COUNTIFS(A$2:A2,A2,B$2:B2,B2)=1,COUNT(C$1:C1)+1,"")

    copied down

    Then in D2 enter:

    =IFERROR(INDEX(A:A,MATCH(ROWS($A$1:$A1),$C:$C,0)),"")

    copied down as far as needed and to next column
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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