+ Reply to Thread
Results 1 to 8 of 8

filtered lists based on another cell value

  1. #1
    Registered User
    Join Date
    03-20-2014
    Location
    staffordshire
    MS-Off Ver
    Excel 2010
    Posts
    7

    filtered lists based on another cell value

    Ok I am trying to return a list of students names and their grades dependent on whether they are in a certain class or not. The idea is that I have a dropdown list for a teacher to pick a class and it will then show their list of students with the different grades.

    I have tried adapting an INDEX formula but can't get it to work.

  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: filtered lists based on another cell value

    See this:

    http://www.excelforum.com/tips-and-t...ml#post3376007
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    03-20-2014
    Location
    staffordshire
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: filtered lists based on another cell value

    That is brilliant thank you. Going to make it more complicated now though.
    this is the formula I am using which works great. =IFERROR(INDEX(Data!A:A,SMALL(IF(Data!I:I=$D$1,ROW(Data!I:I)),ROWS($A$3:A3))),"")

    But I want the search critiera to look more like this =IFERROR(INDEX(Data!A:A,SMALL(IF(Data!I:I="*"&$D$1&"*",ROW(Data!I:I)),ROWS($A$3:A3))),"") so that the cell just has to contain part of the text. but when I do this it just returns a blank

    any ideas

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

    Re: filtered lists based on another cell value

    You should avoid using entire columns as range references in array formulas. Use smaller specific ranges.

    Try it like this...

    =IFERROR(INDEX(Data!A:A,SMALL(IF(ISNUMBER(SEARCH($D$1,Data!I$2:I$100)),ROW(Data!I$2:I$100)),ROWS($A$3:A3))),"")

    Don't forget: array entered!

  5. #5
    Registered User
    Join Date
    03-20-2014
    Location
    staffordshire
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: filtered lists based on another cell value

    thanks very much, bit of tweaking and it is working

  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: filtered lists based on another cell value

    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.

  7. #7
    Registered User
    Join Date
    03-20-2014
    Location
    staffordshire
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: filtered lists based on another cell value

    One last thing on this one. I want to be able to sort the order of the results. for example I want them to be alphabetical . I have put a filter on each of the headings but when I use the sort option it starts to sort them but then immediately reverts back to the original order. Is there anyway I can sort this?

  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: filtered lists based on another cell value

    It may be possible but it would be mind boggling complicated.

    Can you post a SMALL sample file and show us what results you expect?

    A SMALL file will have about 20 rows worth of data.

+ 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. pivot filtered macro based on cell value/active cell
    By koi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-22-2012, 07:36 AM
  2. Filtered Data Validation Lists
    By Nintynuts in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-02-2012, 08:57 AM
  3. calculations on filtered lists
    By gavster in forum Excel General
    Replies: 1
    Last Post: 08-20-2008, 11:44 AM
  4. how do you print filtered lists?
    By shnurgle in forum Excel General
    Replies: 2
    Last Post: 07-01-2007, 09:24 AM
  5. Comparing Filtered Lists
    By Deacon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2007, 11:14 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