+ Reply to Thread
Results 1 to 7 of 7

Return multiple looked up text values?

  1. #1
    Registered User
    Join Date
    02-23-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    49

    Return multiple looked up text values?

    Hello,

    Appreciate if someone could help me to create a formula so that multiple and unique text values are returned in a transpose/horizontal format for 1 looked up value in Sheet 1.

    See an example spreadsheet attached.

    Sheet 1 - "Types" text values in column B that are supposed to be looked up in Sheet 2 and return multiple Disciplines from Sheet 2 to Sheet 1 in rows in front of each looked up value.

    As I understand I need to use Index and Match functions? Unfortunately, having read a few excel-related articles on the internet I still can't figure it out.

    Thanks in advance

    Examp.xlsx

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Return multiple looked up text values?

    c3=IFERROR(INDEX('Sheet 2'!$B:$B,SMALL(INDEX((('Sheet 2'!$A$2:$A$15575<>$B3)+(COUNTIF($B3:B3,'Sheet 2'!$B$2:$B$15575)>0))*10^10+ROW('Sheet 2'!$B$2:$B$15575),0),COLUMNS($A1:A1))),"")
    try this and copy across
    try this your system may take some time to calculate the pross
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Return multiple looked up text values?

    try in C3 sheet1:
    =INDEX('Sheet 2'!$B$2:$B$15575,MATCH('Sheet 1'!$B3,'Sheet 2'!$A$2:$A$15575,0))
    and copy down

  4. #4
    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,150

    Re: Return multiple looked up text values?

    To be honest, I'd do some sorting first.

    DATA/FILTER and select blans in column A. Delete those rows.

    Remove filter

    In C2 = A2 +b2

    Select data. Data/Dat tools/remove duplicates.

    This gives you something that Index Match will process BEFORE you grow old.

    In Sheet 1 C3, =IFERROR(INDEX('Sheet 2'!$B$2:$B$12463, SMALL(IF('Sheet 1'!$B3='Sheet 2'!$A$2:$A$12463, ROW('Sheet 2'!$A$2:$A$12463)-MIN(ROW('Sheet 2'!$A$2:$A$12463))+1, ""), COLUMN(A1))),"")

    Arry enter this (CTRL + SHIFT + ENTER). Drag across and down.

    See attached.
    Attached Files Attached Files
    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

  5. #5
    Registered User
    Join Date
    02-23-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Return multiple looked up text values?

    Thanks a lot for help to everyone.

    Glen, nflsales, looks like your formulas return different amount of values. Glen's solution returns more unique values. Formulas are slightly different. Glen, I respect your advice regarding deleting blanks and some sorting first however, I would prefer to have a formula for an original layout because this is a dump from different system and for ease of future use I would prefer formula to work with an original dump.
    May I ask you to kindly update your formula so it works with the original dump without "Combo" column?

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Return multiple looked up text values?

    Sorry, I found some mistake in my formula
    pleas try below formula and copy across
    =IFERROR(INDEX('Sheet 2'!$B:$B,MIN(INDEX((('Sheet 2'!$A$2:$A$15575<>$B3)+(COUNTIF($B3:B3,'Sheet 2'!$B$2:$B$15575)>0))*10^10+ROW('Sheet 2'!$B$2:$B$15575),0))),"")

  7. #7
    Registered User
    Join Date
    02-23-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Return multiple looked up text values?

    nflsales, perfect! exactly what I need! Thank you!
    Thanks to everyone once again for prompt assistance!

+ 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: 3
    Last Post: 12-03-2014, 05:43 PM
  2. Help! Formula: Look up multiple text string and return multiple values
    By Kchiolero in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-23-2014, 03:06 PM
  3. [SOLVED] VBA to Replace looked up values on Multiple worksheets
    By dhiresh in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-19-2013, 11:49 AM
  4. [SOLVED] Look Up Col A in a Range and Return Value Adjacent to Looked Up Value
    By lashrman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2013, 05:07 PM
  5. Replies: 2
    Last Post: 06-13-2012, 11:20 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