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.

Finding duplicates Within excel

Im looking to compare two excel 'sheets' which has data in it.

I want to see if there are any entries which are on both sheets (and if os, how many etc etc)

ive tried to do a v lookup, but it seems to be coming back incorrect, as well as conditional formatting is not highlighting the fields, yet i know from three entries that there are entries showing on both...

does anyone have a workaround, or know the correct way to do this with vlookup/pivot table/conditional formatting or alike...?

regards,

Comments

  • Heedtheadvice
    Heedtheadvice Posts: 3,141
    Part of the Furniture 1,000 Posts Name Dropper
    Forumite
    edited 8 November 2020 at 6:20PM
    Could you post how your data is laid out on the two sheets? That would affect how I would approach it.
    If the data layout is the same on each sheet that makes it quite easy but not so if the info is scattered or does not match consistently. Does cell location matter or anywhere within the sheet?
    Do you wish matches to be identical (such as text case) or an entry of one to be found within another sheet (such as locate "Ex" with a sheet that has "Excel" in one or more of it's cells? Wil it include text numerics or both?
    When you say two sheets so you mean two sheets in the same workbook or in different workbooks.
    Plus which version of Excel you need to use (the program rather than the file types/compatibility) the latest versions have some useful addons just for those type of things.
  • How many columns are you wanting to match on?
    A possible solution is to bring the data together onto a single sheet with an additional column indicating the original sheet. Then sort to bring together duplicates.
  • dranzer01
    dranzer01 Posts: 427
    Ninth Anniversary 100 Posts Name Dropper Combo Breaker
    Forumite
    Could you post how your data is laid out on the two sheets? That would affect how I would approach it.
    If the data layout is the same on each sheet that makes it quite easy but not so if the info is scattered or does not match consistently. Does cell location matter or anywhere within the sheet?
    Do you wish matches to be identical (such as text case) or an entry of one to be found within another sheet (such as locate "Ex" with a sheet that has "Excel" in one or more of it's cells? Wil it include text numerics or both?
    When you say two sheets so you mean two sheets in the same workbook or in different workbooks.
    Plus which version of Excel you need to use (the program rather than the file types/compatibility) the latest versions have some useful addons just for those type of things.
    I have two spreadsheet documents. both separate workbooks.

    i have also copied the column into the other workbook/spreadhseet (to see if this would be easier)

    * conditional formatting to me seems to have worked, and it has highlighted the cells in green, with a red boarder, to confirm that 'these are the cells which are duplicates to the other workbook'. however, i dont seem to trust the conditional formatting for some strange reason... I think id rather a v lookup or a pivot table; something more robust which has a formula behind it, rather than just 'highlighting, and then it showing in colours'.....

    * anywhere within the sheet i believe should be fine

    * matches would need to be identical within the same sheet and/or another sheet to extract that out

    * i have got two sheets in the same work book (if this process would be easier) and i also have the two separate workbooks with the data in both (which i can also use)

    * excel version is 2007

    * 
  • dranzer01
    dranzer01 Posts: 427
    Ninth Anniversary 100 Posts Name Dropper Combo Breaker
    Forumite
    example attached - 

    i have copied the columns into one manageable sheet within one workbook - 
  • Done - see attached.
  • Yes if matching on only 1 column, VLOOKUP is the way to go. 
  • dranzer01 said:
    ... (and if os, how many etc etc)
    If you want to know the amount of duplicates you will need to use a COUNTIF function instead of a lookup solution.
    Also, for Excel 2007 you'll need to switch out the IFNA function, which is not supported, to an ISNA or ISERROR


  • dranzer01 said:
    ... (and if os, how many etc etc)
    If you want to know the amount of duplicates you will need to use a COUNTIF function instead of a lookup solution.
    Also, for Excel 2007 you'll need to switch out the IFNA function, which is not supported, to an ISNA or ISERROR


    Good point, I missed the bit about the count, even easier that way, updated the sheet:


  • dranzer01
    dranzer01 Posts: 427
    Ninth Anniversary 100 Posts Name Dropper Combo Breaker
    Forumite
    edited 9 May 2024 at 11:42AM
    dranzer01 said:
    ... (and if os, how many etc etc)
    If you want to know the amount of duplicates you will need to use a COUNTIF function instead of a lookup solution.
    Also, for Excel 2007 you'll need to switch out the IFNA function, which is not supported, to an ISNA or ISERROR


    Good point, I missed the bit about the count, even easier that way, updated the sheet:


    many thanks for this - much appreciated - 

    by any chance, would it be possible to see a screen record video of how you did this? if not thats not a problem and thanks again!
★ ★ ★ Meet your Ambassadors

Categories

  • All Categories
  • 356K Banking & Borrowing
  • 255K Reduce Debt & Boost Income
  • 456.3K Spending & Discounts
  • 248.5K Work, Benefits & Business
  • 606.3K Mortgages, Homes & Bills
  • 179.1K Life & Family
  • 264.1K 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.