+ Reply to Thread
Results 1 to 4 of 4

Match data from year 1 with year 2 data (Vlookup?)

  1. #1
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Match data from year 1 with year 2 data (Vlookup?)

    In the first blue column I have inventory names. I want to match these with the first pink column names so that on the individual rows there will be the same inventory lines for blue and pink.
    Attached Files Attached Files
    Last edited by Xx7; 06-17-2011 at 04:14 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Match data from year 1 with year 2 data (Vlookup?)

    Are you trying to append 4 columns of info to the "blue" table?

    If so insert a couple more column between the "blue" and "pink" tables.

    So now first "pink" column is in column P..

    Add formula to L7:

    =IFERROR(INDEX(Q:Q,MATCH($A7,$P:$P,0)),0)

    copy across 4 columns and down the table.

    Is that what you're after?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: Match data from year 1 with year 2 data (Vlookup?)

    beauty, works great.

    Additional issue: Since there are more pink items than blue. Is there a way to figure out what items are in pink, but not in blue. Then maybe list them below?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Match data from year 1 with year 2 data (Vlookup?)

    In U7 enter: =IF(ISNA(MATCH(P7,$A$7:$A$43,0)),COUNT(U$6:U6)+1,"") copied down to get count of matches

    in V7 enter: =MAX(U:U) to get total count

    in A44 enter: =IF(ROWS($A$1:$A1)>$V$7,"",INDEX(P:P,MATCH(ROWS($A$1:$A1),$U:$U)))

    copied down

    in L44 enter: =IF(ROWS($A$1:$A1)>$V$7,"",INDEX(Q:Q,MATCH(ROWS($A$1:$A1),$U:$U)))

    copied down and across.

+ 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