+ Reply to Thread
Results 1 to 6 of 6

Match multiple columns with different values to make a master list of both

  1. #1
    Registered User
    Join Date
    02-19-2010
    Location
    Stafford
    MS-Off Ver
    Excel 2003
    Posts
    20

    Match multiple columns with different values to make a master list of both

    Hi All,

    Looking at a merge/match VBA macro (200,000+ matches). Which would take two colums, match them and where there is no match include a blank...like the enclosed spreadsheet.

    Thanks
    Niper
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Match multiple columns with different values to make a master list of both

    Should the output be given in 2 separate columns or should the changes be directly made to columns A & B?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    02-19-2010
    Location
    Stafford
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Match multiple columns with different values to make a master list of both

    Hi Arlette,

    Either or really...don't really need the original data once its been matched...so whichever is easier.

    cheers
    Niper

  4. #4
    Registered User
    Join Date
    02-19-2010
    Location
    Stafford
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Match multiple columns with different values to make a master list of both

    I have built the following (from an older script which did something similar)...but excel keeps hanging??

    My data is in Col A (200988 Entries) and Col B (205849 Entries), with a merged/de-duped list in Col L (221436 Entries).

    But excel keeps hanging? any ideas?

    Please Login or Register  to view this content.
    Last edited by Niper; 04-28-2012 at 07:44 AM.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Match multiple columns with different values to make a master list of both

    I worked out some logic for you, but one cell has to be checked with the entire column on the right side and this can be very messy.

    Is there any reason why you want this matching to be done? Maybe we can think of another way to do it for you which might not make it memory intensive for the system.

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

    Re: Match multiple columns with different values to make a master list of both

    Try
    Alter "f1" for output to suite.
    Please Login or Register  to view this content.
    Last edited by jindon; 05-07-2012 at 06:55 AM.

+ 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