+ Reply to Thread
Results 1 to 2 of 2

Need to enter one name and get all the corresponding values in adjacent cells

  1. #1
    Registered User
    Join Date
    06-09-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    26

    Need to enter one name and get all the corresponding values in adjacent cells

    Hi,

    I am a new user to Excel, with very little knowledge in Formulas and Functions.

    I have a list of regions and specific destination ids for them. For example, I have Germany as a country, and there are three destination Ids in it.

    What I want to do is, to enter the name "Germany" in a cell, and get all the corresponding destination ids under Germany in the adjacent cells.

    I tried using a vlookup, but did not get the desired result.

    I have attached a sample sheet to explain better.

    Please suggest a possible solution.

    Thanks,
    Asar
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need to enter one name and get all the corresponding values in adjacent cells

    Try:

    =IFERROR(INDEX($E$11:$E$20,SMALL(IF($D$11:$D$20=$G$12,ROW($D$11:$D$20)-ROW($D$11)+1),ROWS($H$2:$H2))),"")

    confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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