+ Reply to Thread
Results 1 to 3 of 3

Matching part of one cell to an array of other cells to display the corresponding cell

  1. #1
    Registered User
    Join Date
    06-13-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Matching part of one cell to an array of other cells to display the corresponding cell

    I'm trying to make a spreadsheet for corresponding part numbers to colors, and can't quite figure out the proper formula/syntax to use. I haven't used excel much at all over the past few years, so I'm pretty rusty.

    Basically, if I've got a part number in cell A2 that contains something like this: RD110, where RD corresponds to a color indicator in Column A of a sheet I have named "Colors XY", and I want the solution of the formula to output the corresponding value in Column B of the sheet I have named "Colors XY". How can I do this?

    I'd also like to be able to output that the first number in "110" corresponds to a finish. As in, 110 means gloss, and 210 means matte finish. Is this possible to do as well?

    Thanks in advance for any help you can give me.

  2. #2
    Registered User
    Join Date
    06-13-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Matching part of one cell to an array of other cells to display the corresponding cell

    You can use a concantenate function with a vlookup for the left "RD" and a vlookup for the right "110" so data in A2 (RD110) would return "Red Gloss". The only problem is the corresponding finish numbers would have to be formatted as text (preceded by an apostrophe) in order to match it with the value in Cell A2. Your formula would look something like this:

    =CONCATENATE(VLOOKUP(LEFT(A2,2),Sheet2!A1:B2,2,0)," ",(VLOOKUP(RIGHT(A2,3),Sheet3!A1:B2,2,0)))

    This assumes Sheet 2 contains your color indicators and Sheet 3 contains your finish indicators. Hope this helps.

  3. #3
    Registered User
    Join Date
    06-13-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Matching part of one cell to an array of other cells to display the corresponding cell

    Quote Originally Posted by Maureen405 View Post
    You can use a concantenate function with a vlookup for the left "RD" and a vlookup for the right "110" so data in A2 (RD110) would return "Red Gloss". The only problem is the corresponding finish numbers would have to be formatted as text (preceded by an apostrophe) in order to match it with the value in Cell A2. Your formula would look something like this:

    =CONCATENATE(VLOOKUP(LEFT(A2,2),Sheet2!A1:B2,2,0)," ",(VLOOKUP(RIGHT(A2,3),Sheet3!A1:B2,2,0)))

    This assumes Sheet 2 contains your color indicators and Sheet 3 contains your finish indicators. Hope this helps.
    Awesome! That works perfectly.

    Thank you very much!

+ 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