View Poll Results: 1

Voters
0. This poll is closed
  • 1

    0 0%
  • 1

    0 0%
+ Reply to Thread
Results 1 to 12 of 12

Excel 2007 : Need to find if duplicate values exist in a Master sheet, compare in New generated sh

  1. #1
    Registered User
    Join Date
    11-02-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    14

    Smile Need to find if duplicate values exist in a Master sheet, compare in New generated sh

    Hi All,

    I hope I'm posting in the right section. I have a problem that I think is quite difficult, but maybe not. I was going to attach the spreadsheet I was working with.

    Need to find if duplicate values exist in a Master sheet, compare in New generated sheet and then display the newly added datas in output sheet.

    What I want to do, is search for duplicates by comparing master and new sheet by matching the columns datas. Once that is complete, it needs to delete the row of duplicate entries and update the new entries in output sheet.

    I have attached the example file for the reference. Which the output should look like.
    Attached Files Attached Files
    Last edited by mutkumram; 11-03-2011 at 09:25 PM.

  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: Need to find if duplicate values exist in a Master sheet, compare in New generate

    Hello,

    use a helper column in sheet New, starting in H2

    =IF(ISNUMBER(MATCH(A2&B2&C2&D2&E2&F2,INDEX(Master!$A$1:$A$100&Master!$B$1:$B$100&Master!$C$1:$C$100&Master!$D$1:$D$100&Master!$E$1:$E$100&Master!$F$1:$F$100,0),0)),ROW(),"")

    On the Output sheet, use in A2

    =IFERROR(INDEX(New!A$1:A$100,LARGE(New!$H$2:$H$100,ROW(A1))),"")

    copy across to column G and then copy down.

    Adjust ranges to suit.

    And for your next question, please don't start a poll.

    cheers,

  3. #3
    Registered User
    Join Date
    11-02-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Need to find if duplicate values exist in a Master sheet, compare in New generate

    Hi Thank you,

    It would be nice if you provide the macro for this output file. Since I have large number of data's to be input and everytime i have to manually compare the master sheet and new sheet which is taking long time.
    Also the output should be result as I mentioned in the attached example. Hence all the columns should be matched with the master sheet and new sheet and the new entries alone should be displayed in the out put sheet. I will be really happy if you provide the solution for this.
    Last edited by mutkumram; 11-02-2011 at 09:04 PM.

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

    Re: Need to find if duplicate values exist in a Master sheet, compare in New generate

    I used formulas to achieve what you describe, not VBA. You don't need to compare anything manually. The formulas will do that and will create the result in the Output sheet.
    Have you tried it? Do you get errors? If so, which?

  5. #5
    Registered User
    Join Date
    11-02-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Need to find if duplicate values exist in a Master sheet, compare in New generate

    Hi,

    I have tried as you said above but I am getting error message as "#NAME? in the A2 column in the output sheet.

    For better understanding I have attached the example 2 spreadsheet which I followed from your instructions. And if you found that this is incorrect.

    correct the mistake and attach with the correct formula. It will helps me a lot.

    Also I should use this for nearly 2000 cells.
    Attached Files Attached Files
    Last edited by mutkumram; 11-02-2011 at 09:43 PM.

  6. #6
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Need to find if duplicate values exist in a Master sheet, compare in New generate

    Teylyn's formulas work perfectly. The only problem was that you copied column H too far down.

    Cheers,
    Attached Files Attached Files
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  7. #7
    Registered User
    Join Date
    11-02-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Need to find if duplicate values exist in a Master sheet, compare in New generate

    Hi,

    I have opened the attached spreadsheet mutkumram 2011-11-02 xls files and added five datas in master sheet and five datas in new sheet and followed the instructions given in the spreadsheet but i am getting same error message as #NAME?
    in the output file. Can any one update me with the attachment by adding some more datas in the master and new sheet and upload. Thanks for your precious time.

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

    Re: Need to find if duplicate values exist in a Master sheet, compare in New generate

    Post the file that shows the error message.

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

    Re: Need to find if duplicate values exist in a Master sheet, compare in New generate

    Your profile states that you are using Excel 2007.

    Iferror() is not available before 2007. So use 2007 with the file and it will be fine.

    Or change your profile to reflect your real Office version.

    We ask that for a reason.

    Replace the formula on the Output sheet. Start in A2 with

    =IF(ISERROR(INDEX(New!A$1:A$100,LARGE(New!$H$2:$H$100,ROW(A1)))),"",INDEX(New!A$1:A$100,LARGE(New!$H$2:$H$100,ROW(A1))))

    copy across and down.

  10. #10
    Registered User
    Join Date
    11-02-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Need to find if duplicate values exist in a Master sheet, compare in New generate

    Hi,

    Thanks for the solutions yes its working fine in excel 2007.

    I am having another question that is there any possible of H column (OPID) being displayed on New sheet in the column H, when it matches the data with the master sheet. And as usual the output file should only contain the newly added datas without the Column OPID. Let me know since I am very curious to apply this to my work.

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

    Re: Need to find if duplicate values exist in a Master sheet, compare in New generate

    Insert a new column H, so the helper column with the numbers is pushed to the right.

    Into the new cell H2 enter

    Please Login or Register  to view this content.
    Copy down.

  12. #12
    Registered User
    Join Date
    11-02-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Need to find if duplicate values exist in a Master sheet, compare in New generate

    Thank you to all.

    Its working fine and you have reduced my ton work by doing manually.

+ 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