+ Reply to Thread
Results 1 to 6 of 6

Displaying data based on list selection

Hybrid View

  1. #1
    Registered User
    Join Date
    09-10-2014
    Location
    Dublin
    MS-Off Ver
    2010
    Posts
    18

    Displaying data based on list selection

    Hi all,

    Could anyone assist in what is probably a fairly simple thing but one which I can't figure out despite much research.

    I have a table containing supervisors and the corresponding executive they report to. I have a drop down list in a separate sheet of those same executives and I need to return the list of supervisors under that executive when selected. i.e. when Exec1 is selected, the entire list of corresponding supervisors will be displayed underneath.

    See the example attached. Sheet 1 contains the table. Sheet 2 contains the drop down list and I need to display the corresponding supervisors there depending on the exec selected. Can anyone help?List selection example.xlsx

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

    Re: Displaying data based on list selection

    =IFERROR(INDEX(Sheet1!$A:$A,SMALL(INDEX((Table2[Exec]<>$B$2)*10^10+ROW(Table2[Exec]),0),ROW(1:1))),"")
    Try this in Cell B5 of Sheet2 and copy towards down
    Samba

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

  3. #3
    Registered User
    Join Date
    09-10-2014
    Location
    Dublin
    MS-Off Ver
    2010
    Posts
    18

    Re: Displaying data based on list selection

    Thanks! After a bit of modification to work with the larger data set I have, that worked a treat!

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

    Re: Displaying data based on list selection

    Thanks for your feedback

  5. #5
    Registered User
    Join Date
    09-10-2014
    Location
    Dublin
    MS-Off Ver
    2010
    Posts
    18

    Re: Displaying data based on list selection

    Sorry one other question - do you know why this formula will not return #N/A values from the supervisor list? Is it possible to include these?

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

    Re: Displaying data based on list selection

    =IFERROR(INDEX(Sheet1!$A:$A,SMALL(INDEX((Table2[Exec]<>$B$2)*10^10+ROW(Table2[Exec]),0),ROW(1:1))),"")
    Here we used iferror function when the #N/A occurs iferror formula returns "" (Blank)
    see the Blue color part "", you can change as per your requirement

+ 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. displaying list based on data selection in drop down of data validation
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-16-2014, 12:51 AM
  2. Replies: 1
    Last Post: 06-03-2013, 06:30 AM
  3. Replies: 5
    Last Post: 03-14-2013, 02:38 PM
  4. Replies: 8
    Last Post: 07-02-2009, 07:13 PM
  5. Displaying Data Based on Selection
    By Vance in forum Excel General
    Replies: 3
    Last Post: 01-09-2009, 03:56 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