+ Reply to Thread
Results 1 to 7 of 7

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

    I'm looking to match 2 columns to generate a master list, which will show matched and unmatched (in column A not in B, and also column B not in A).

    See the example spreadsheet
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

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

    Put this formula in D1, then copy it down and across to column E:

    =IF(ISNUMBER(MATCH(ROW(A1),A:A, 0)), ROW(A1), "")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

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

    With a macro (using the NoDups function)
    Attached Files Attached Files

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

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

    Thanks...perfect...:-)

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

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

    Thanks, this works for these numbers, but what if my lists were

    10001
    10010
    10082
    10090

    &

    10009
    10010
    10080
    10100
    10101

    Should be
    10001
    10010 10010
    10080
    10082
    10090
    10100
    10101

    I wouldn't necessarily want 10000 blanks before the 1st number?
    Could this be changed just to use the numbers given?

    Thanks

  6. #6
    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

    Thanks...if the original columns were D&E and outputting to m&n, how would the macro change?

    Also, what if columns A & B were on different sheets within the current spreadsheet...say Column A on sheet1 and Column B on sheet2??

    Thanks again

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

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

    Quote Originally Posted by Niper View Post
    ...if the original columns were D&E and outputting to m&n, how would the macro change?..
    Find these lines in the code
    Please Login or Register  to view this content.
    If columns A and B are on different sheets then it will be easier to copy them onto one sheet.

+ 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