+ Reply to Thread
Results 1 to 7 of 7

Macro to check Duplications

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    14

    Macro to check Duplications

    Hi all,

    I'm new to the forum and looking for a little help. I have a spreadsheet that looks like this: -

    Company Name Sub Classification Position

    Under company name is the list of a bunch of different companies, what I want to is have a seperate master worksheet that I can add the names of companies too. If the master list contains the company name I want it to remove the row from the orginial spreadsheet.

    I.E. If Masterspreadsheet Column A contains "Ambition Technology" and the orginial spreadsheet has 5 rows that contain "Ambition Technology" those rows will be deleted.

    Is anyone able to help me please? I tried to figure it out myself by looking around online but quickly got confused!

    Thanks in advance,
    Cheyne

  2. #2
    Valued Forum Contributor
    Join Date
    12-05-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    308

    Re: Macro to check Duplications

    Hi Cheyne

    Welcome to the forum.

    Are you able to upload some sample data so we can see what it looks like? To do this, hit Go Advanced at the bottom, then Manage Attachements.

    It doesn't sound like that difficult a task, but we will need to know sheet names, etc. Also, I'm not clear whether you have two sheets in one file, or two separate files.

    Remember to delete any confidential data before you upload!

    Thanks, Rob.

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Macro to check Duplications

    Masterfile - Delete these.xlsxsample data.xlsx

    Thanks Rob,

    I've attached two sample files, so in this case for instance the "Masterfile - Delete these.xlsx" contains the names of the companies I would like removed from the other file "Sample Data.xlsx"

    So if the macro is working correctly it should use the names in the Masterfile spreadsheet to delete the matches in the sample data speadsheet on both worksheets, my orginial data contains approx 19 worksheets in the one spreadsheet and a hell of a lot more data, haha.

    So if it works on the Architects worksheet in the sample data spreadsheet the only entries left should be "Company B" and on Business_Systems_Analysts the only entry left should be "Company B" also.

    Thanks!

  4. #4
    Registered User
    Join Date
    08-30-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Macro to check Duplications

    Anyone able to help me with this, I've tried a couple of different macros I found on the net but can't get them to do what I want
    Last edited by Cutter; 08-30-2012 at 09:26 PM. Reason: Removed whole post quote

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,591

    Re: Macro to check Duplications

    Try
    Assuming both files are in the same folder.
    Run from "Sample data.xlsx"
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-30-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Macro to check Duplications

    Thanks very much Jindon, that worked great!
    Last edited by Cutter; 08-31-2012 at 09:12 PM. Reason: Removed whole post quote

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,591

    Re: Macro to check Duplications

    You are welcome and thanks for the feedback.

+ 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