We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

Excel identifying duplicates help

misskool
misskool Posts: 12,832
10,000 Posts Combo Breaker
Forumite
Hiya,

I have 7 columns with long lists and some of the items are in all 7 columns. What is the easiest way of highlighting the duplicates in all 7 columns?

Thanks!

Comments

  • DevCoder
    DevCoder Posts: 3,363
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    Forumite
    Could you not just copy paste the columns to a new sheet into one long column and then use the filter->remove duplicates option?

    If you need to then put it back to the 7 columns (minus the duplicates) then as you paste each column into the single column add a cell above each columns list, eg

    ColumnA
    1
    2
    3
    ColumnB
    2
    3
    4
    ColumnC
    3
    4
    5

    Then you can tell which data to put back in which column

    You can also use vlookup but you'd need to do 7 separate tests and have an embedded vlookup within vlookup (6 times) for each test.

    Or one very big vlookup of 42 tests.

    For example

    =if(ISNA(Vlookup(A1,B1:B65535,1,FALSE)),if(ISNA(Vlookup(A1,C1:C65535,1,FALSE)),if(ISNA(Vlookup(A1,D1:D65535,1,FALSE)),0,"Duplicate"),"Duplicate"),"Duplicate"),"Duplicate")

    Note I dont have excel to hand so cant test the formula above.
  • misskool
    misskool Posts: 12,832
    10,000 Posts Combo Breaker
    Forumite
    I've done a vlookup and removed the duplicates manually but one of my columns is 1500 rows so will try the embedded vlookup :)
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

Categories

  • All Categories
  • 356K Banking & Borrowing
  • 255K Reduce Debt & Boost Income
  • 456.3K Spending & Discounts
  • 248.5K Work, Benefits & Business
  • 606.4K Mortgages, Homes & Bills
  • 179.1K Life & Family
  • 264.2K Travel & Transport
  • 1.6M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards
Quick Search

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.