+ Reply to Thread
Results 1 to 9 of 9

Associating specific text in a cell to return values from a table

Hybrid View

  1. #1
    Registered User
    Join Date
    01-03-2016
    Location
    Ardmore, AL
    MS-Off Ver
    2010
    Posts
    3

    Associating specific text in a cell to return values from a table

    All right,

    So my problem is thus:

    I am exporting data from a inventory control system. This system gives me a material description. Our work area has 3 different zones that the material is run in.

    Here is what I need. I need to be able to paste my information in and based off the material description I want a formula to look in a 2 column table and match up the description with the zone number.

    I have attached the sheet.
    Attached Files Attached Files
    Last edited by reddragonbc; 01-03-2016 at 06:42 PM. Reason: Added test sheet

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: Associating specific text in a cell to return values from a table

    hi reddragonbc,

    Welcome to the forum. Edit BTW many of us cannot read pics and screenshots. You usually get faster / better solutions if you upload an Excel spreadsheet file ... desensitized of course. I improvised below from your description.

    See if this is something you can work with.

    Put your Description in E1

    In column C a helper column ... formula in C2 and filled down.
    Formula: copy to clipboard
    =IF(B2=$E$1,ROWS($1:1),"")


    In F2 and filled down until you get blanks ...
    Formula: copy to clipboard
    =IFERROR(INDEX($A$2:$A$21,SMALL($C$2:$C$21,ROWS($1:1))),"")



    Row\Col
    A
    B
    C
    D
    E
    F
    1
    Zones
    Descript Description 14 Zone2
    2
    Zone3 Description 3 Zone2
    3
    Zone2 Description 3
    4
    Zone1 Description 1
    5
    Zone2 Description 2
    6
    Zone1 Description 2
    7
    Zone2 Description 14
    6
    8
    Zone1 Description 8
    9
    Zone1 Description 9
    10
    Zone2 Description 12
    11
    Zone2 Description 6
    12
    Zone3 Description 6
    13
    Zone1 Description 2
    14
    Zone2 Description 11
    15
    Zone2 Description 8
    16
    Zone2 Description 8
    17
    Zone2 Description 12
    18
    Zone3 Description 13
    19
    Zone2 Description 4
    20
    Zone2 Description 14
    19
    21
    Zone2 Description 3
    Last edited by FlameRetired; 01-03-2016 at 06:01 PM.
    Dave

  3. #3
    Registered User
    Join Date
    01-03-2016
    Location
    Ardmore, AL
    MS-Off Ver
    2010
    Posts
    3

    Re: Associating specific text in a cell to return values from a table

    Alright, I have attached the file as requested. I will work with what you have sent as well.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: Associating specific text in a cell to return values from a table

    Try this in D2 and filled down.
    Formula: copy to clipboard
    =INDEX($B$2:$B$13,MATCH(E2,$A$2:$A$13,0))

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Associating specific text in a cell to return values from a table

    Quote Originally Posted by FlameRetired View Post
    =INDEX($B$2:$B$13,MATCH(E2,$A$2:$A$13,0))
    Another way...

    =VLOOKUP(E2,$A$2:$B$13,2,0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: Associating specific text in a cell to return values from a table

    Double posted.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: Associating specific text in a cell to return values from a table

    @ Tony Valko,

    Yup! Fewer function calls.

  8. #8
    Registered User
    Join Date
    01-03-2016
    Location
    Ardmore, AL
    MS-Off Ver
    2010
    Posts
    3

    Re: Associating specific text in a cell to return values from a table

    Thank you all for your help. I have had success.

    Much thanks!

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Associating specific text in a cell to return values from a table

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 06-10-2015, 12:12 AM
  2. Replies: 2
    Last Post: 06-09-2015, 11:20 PM
  3. Look up several values in a cell and return a specific text
    By peterromer in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-27-2014, 12:03 PM
  4. [SOLVED] How do I return specific values from table with multiple entries
    By BigSpeekaz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2014, 03:31 PM
  5. Replies: 12
    Last Post: 12-17-2013, 12:35 PM
  6. Replies: 3
    Last Post: 06-20-2012, 07:16 AM
  7. Store cell values in an array and return values on specific condition
    By gmalpani in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 11-27-2011, 06:43 AM

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