+ Reply to Thread
Results 1 to 3 of 3

Find / delete duplicate cells in colum B based on data in column A

  1. #1
    Registered User
    Join Date
    11-04-2008
    Location
    Home
    Posts
    22

    Find / delete duplicate cells in colum B based on data in column A

    Hi all,

    I have a spreadsheet with a list of data in column A
    I am looking for a formula that I can use on data I put in column B to delete cells that are the same as any cell in column A

    E.G

    Column A
    hello
    data
    hotel
    mind
    them

    Column B
    farm
    wonder
    hello
    them

    So, basically, I enter a formula in column C, copy down, and I would be left with 'farm' and 'wonder' in Column C.

    Hope that makes sense!

    Thanks for any help on this.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Find / delete duplicate cells in colum B based on data in column A

    Hello murphy,

    someone here may come up with a single formula solution, but here's my approach with a helper column.

    In cell C1 enter

    =IF(COUNTIF($A:$A,B1),"",ROW())
    copy down

    then, in another column enter

    =IF(ISERROR(INDEX(B:B,SMALL(C:C,ROW(A1)))),"",INDEX(B:B,SMALL(C:C,ROW(A1))))
    copy down.

    You can hide the helper column C if you want.

    cheers,

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Find / delete duplicate cells in colum B based on data in column A

    http://www.cpearson.com/excel/ListFunctions.aspx
    has some methods
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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