+ Reply to Thread
Results 1 to 9 of 9

Multiple lookup values in a single cell

  1. #1
    Registered User
    Join Date
    04-20-2019
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2016
    Posts
    13

    Multiple lookup values in a single cell

    Hi experts.

    I want to get multiple lookup values in a single cell with a comma separator. For instance column A has repetitive area name and B has Agents name under the area name. I want to get the value for all agents name under the same area.

    I already solve the problem in excel 2016 with TEXTJOIN and IF array.

    But in 2013 there is no TEXTJOIN formula. Is that possible with SUMPRODUCT??

    Please help me. Please see the attached workbook for your clear understanding.

    e.g

    a = a1,a2,a3
    Attached Files Attached Files
    Last edited by rahanriad; 09-16-2019 at 03:05 AM. Reason: Attaching the workbook

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Multiple lookup values in a single cell

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Multiple lookup values in a single cell

    You have a choice: either using a helper column, or using VBA. Which do you prefer?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    04-20-2019
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2016
    Posts
    13

    Re: Multiple lookup values in a single cell

    Dear Glenn,

    I prefer with a helper column. And one thing I tried with SUMPRODUCT.

    Is it possible to do it by SUMPRODUCT.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Multiple lookup values in a single cell

    Why the obsession with SUMPRODUCT??

    In F4:
    =IFERROR(E4&", "&INDEX(F5:F11,MATCH(D4,D5:D11,0)),E4)

    copy down.

    Then in I4, copied down:

    =INDEX($F$4:$F$11,MATCH(H4,$D$4:$D$11,))
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-20-2019
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2016
    Posts
    13

    Re: Multiple lookup values in a single cell

    Why I am unable to download the workbook??

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Multiple lookup values in a single cell

    No idea. I will reattach it when I get back. In the meantime copy/paste the formulae ino your sample sheet, as described.

  8. #8
    Registered User
    Join Date
    04-20-2019
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2016
    Posts
    13

    Re: Multiple lookup values in a single cell

    Thank you so much, Glenn. The solution is done but gone over the head.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Multiple lookup values in a single cell

    It's quite clever. Not mine, however! I saw someone else use it here a few months ago and thought "that's neat!!".

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Lookup multiple values from a single cell, return the values to a cell
    By mdvizcay in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-16-2019, 12:57 PM
  2. Replies: 3
    Last Post: 03-10-2017, 07:56 PM
  3. [SOLVED] lookup multiple values(strings) in a single cell with col A & B(diff sheet) & return col B
    By redJohn89 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-12-2016, 04:17 PM
  4. [SOLVED] Potential combination of LookUp and DeDupe to create multiple values in a single cell
    By Bwambale in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-25-2016, 08:51 AM
  5. Replies: 5
    Last Post: 07-07-2013, 03:39 PM
  6. Sum values from multiple cells - multiple lookup values in single cell
    By taxdept in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2012, 04:12 PM
  7. [SOLVED] lookup multiple values of a single cell and return sum of results
    By Zeppelin17 in forum Excel General
    Replies: 7
    Last Post: 08-10-2011, 07:09 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