+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Trying to match like items in multiple columns

  1. #1
    Registered User
    Join Date
    06-14-2012
    Location
    Tulare, CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Trying to match like items in multiple columns

    I need to take column C and match to column B so that they are aligned but I also need to have columns D-G follow column C.

    10386 AMRA309-20 AMR A315-20 C-HEAVY DUTY ADHESIVE 12/20 OZ 9.89 74.85 6/15/2012
    10386 AMRA313-20 AMR A328-16 GLIDE SILICONE LUBRIC12/16OZ 13.28 71.24 6/15/2012
    10386 AMRA314-20 AMR A361-12 ADVANCED ELECTRONICSDUSTER 9.57 115.19 6/15/2012
    10386 AMRA315-20 AMR A363-16 CONTACT & CIRCUIT BOACLEANER 12/16 23.92 190.55 6/15/2012

    can this be done with a formula or do I have to do it manually?

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

    Re: Trying to match like items in multiple columns

    Not sure if there is a space in column 3 where column B doesn't have one...

    But assuming that there is that difference, and that the codes are consistent (i.e. 3 chars, space, 7 chars)... then try in new column:

    =INDEX(C:C,MATCH(LEFT($B2,3)&" "&RIGHT($B2,7),$C:$C,0))

    copied down and across.

    You can then copy these and paste special >> Values over original column D to G and delete the formula columns...
    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
    Registered User
    Join Date
    06-14-2012
    Location
    Tulare, CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Trying to match like items in multiple columns

    Ok, that is awesome but I have one more question. what if the second set of characters are more or less than 7? they range from 4-10.

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

    Re: Trying to match like items in multiple columns

    Try:

    =INDEX(C:C,MATCH(LEFT($B2,3)&" "&MID($B2,4,100),$C:$C,0))

  5. #5
    Registered User
    Join Date
    06-14-2012
    Location
    Tulare, CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Trying to match like items in multiple columns

    Thank you very much for all your help.

+ 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