+ Reply to Thread
Results 1 to 5 of 5

Matching row of SOURCE table against TARGET table (array)

  1. #1
    Registered User
    Join Date
    11-30-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Matching row of SOURCE table against TARGET table (array)

    Hi all, I have two tables combined onto one sheet for simplicity; one is Source and the other is Target. I'm trying to see if each row from the Source table is found in the Target table. If possible, flag the rows of each table upon a match.

    (e.g. the first match will have a corresponding "1" by each row on each table that matches, the next match will have a corresponding "2" or some other way to identify the line of each table that matches.)

    NOTE: the actual files are two different spreadsheets.

    Any help would be greatly appreciated!
    Attached Files Attached Files
    Last edited by tmwcarl; 03-06-2012 at 05:15 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Matching row of SOURCE table against TARGET table (array)

    tmwcarl,

    Attached is a modified version of your example workbook. I inserted a row (column I) for the matching numbers for the TARGET table.

    In cell D6 and copied down is this formula for the SOURCE table:
    Please Login or Register  to view this content.

    In cell I6 and copied down is this formula for the TARGET table:
    Please Login or Register  to view this content.


    Note that I used excel an 2003 and lower compatible formula because you uploaded a .xls file, even though you have excel 2007 listed as your excel version. You could use a countifs formula instead of the sumproduct, but that is only excel 2007 and higher.

    Is something like that what you were looking for?
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Matching row of SOURCE table against TARGET table (array)

    Hi tmwcarl,

    Welcome to the forum.
    See the attached file and let me know if this is what you were loooking for. Thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    11-30-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Matching row of SOURCE table against TARGET table (array)

    Thanks tigeravatar, yes i have an older version and this works great. Thanks a bunch.

    Thanks dilipandey, this works great also. I appreciate it! I'm so glad i found this forum, there are a lot of helpful people here. I glad to be aboard. Searching through this site, i have learned a lot about Excel and i have a lot more to learn. . .

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Matching row of SOURCE table against TARGET table (array)

    You are welcome tmwcarl . .
    Cheers . .

    Regards,
    DILIPandey

    <click on below star if this helps>

+ 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