+ Reply to Thread
Results 1 to 11 of 11

Lookup, find, match and list text from multiple cells

  1. #1
    Registered User
    Join Date
    07-19-2014
    Location
    northern ireland
    MS-Off Ver
    2007
    Posts
    9

    Lookup, find, match and list text from multiple cells

    Hi,

    Any help with the problem detailed below will be much appreciated.


    MK1- A
    MK2- A
    MK3- B
    MK4- C
    MK5- B
    MK6- C

    Look up letter A in column B and list text from column A in a single cell =

    SINGLE CELL ENTRY
    Look up A = MK1-MK2-
    Look up B = MK3-MK5-
    Look up C = MK4-MK6-

    I do not need spaces or comma's between each linked text I will be listing from column A.

    I apologize if I have not explained this query simply, any help will be much appreciated.

    Thanks

    JSTR250

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

    Re: Lookup, find, match and list text from multiple cells

    Is there always 2 corresponding entries per letter or is the number variable?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Lookup, find, match and list text from multiple cells

    Try the attachment...
    I have used array formula..
    So use ctrl + shift + enter to enter the formula..
    Don't use only enter..




    Don't forget to click *
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-19-2014
    Location
    northern ireland
    MS-Off Ver
    2007
    Posts
    9

    Re: Lookup, find, match and list text from multiple cells

    The number of corresponding letters is variable.

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Lookup, find, match and list text from multiple cells

    Then you can drag my formula horizontally to include other duplicates as well and finally concatenate them..
    in the desired form...



    Don't forget to click *

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

    Re: Lookup, find, match and list text from multiple cells

    Quote Originally Posted by JSTR250 View Post
    The number of corresponding letters is variable.
    Ok, the best option is to use a VBA function. Are you open to that?

  7. #7
    Registered User
    Join Date
    07-19-2014
    Location
    northern ireland
    MS-Off Ver
    2007
    Posts
    9

    Re: Lookup, find, match and list text from multiple cells

    Yes but I am a novice.

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

    Re: Lookup, find, match and list text from multiple cells

    Quote Originally Posted by JSTR250 View Post
    Yes but I am a novice.
    That's OK. It's pretty easy once you see how it works.

    With your file open...

    Press the key combination of Alt+F11 to open the Visual Basic Editor

    Goto the menu Insert > Module

    Copy the VBA code at the below link and paste it into the window that opens on the right side of the screen

    https://www.excelforum.com/showthread.php?p=3096647

    Press the key combination of ALT+Q to close the Visual Basic Editor and return to Excel.

    Then...

    Data Range
    A
    B
    C
    D
    E
    1
    ------
    ------
    ------
    ------
    ------
    2
    MK1-
    A
    A
    MK1-MK2-MK7-
    3
    MK2-
    A
    B
    MK3-MK5-
    4
    MK3-
    B
    C
    MK4-MK6-MK9-
    5
    MK4-
    C
    D
    MK8-
    6
    MK5-
    B
    7
    MK6-
    C
    8
    MK7-
    A
    9
    MK8-
    D
    10
    MK9-
    C


    Enter this array formula** in E2:

    =concatall(IF($B$2:$B$10=$D2,$A$2:$A$10,""))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down as needed.

    You can use advanced filter to create the list of unique letters in column D:

    http://contextures.com/xladvfilter01.html#FilterUR

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Lookup, find, match and list text from multiple cells

    Please find the attached sheet to see if this works as per your requirement.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  10. #10
    Registered User
    Join Date
    07-19-2014
    Location
    northern ireland
    MS-Off Ver
    2007
    Posts
    9

    Re: Lookup, find, match and list text from multiple cells

    Excellent Tony thanks for your time and help, its much appreciated.

    Thanks again have a great day.

    Cheers

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

    Re: Lookup, find, match and list text from multiple cells

    You're welcome. Thanks for 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. [SOLVED] Trying to find multiple ID numbers which match a particular name from a list.
    By thevolv in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2014, 06:45 PM
  2. Formula to lookup data in multiple columns, find a match and provide output.
    By dwitherow in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-31-2012, 12:24 PM
  3. Aargh! Help - Find cells, multiple text match
    By fallwire in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2010, 05:50 AM
  4. Replies: 3
    Last Post: 07-11-2009, 02:58 PM
  5. [SOLVED] Sum values in multiple sheets using Lookup to find a text match
    By CheriT63 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-03-2005, 10:35 PM

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