+ Reply to Thread
Results 1 to 3 of 3

Using a Formula to return a list based on a cellls value.

  1. #1
    Registered User
    Join Date
    12-04-2015
    Location
    Lancashire
    MS-Off Ver
    2010
    Posts
    15

    Exclamation Using a Formula to return a list based on a cellls value.

    I am looking for a formula to return the data from rows b to k into the table (row m) based of cell M6.

    if for example Ks4 Biology is selected in m6 I would like the table to populate with all the rows from that start with Ks4 Biology.
    you will see that in the example document column B is the same as column M in the table I want the data to show. I would like all of the columns to copy over.

    (this is part of a much larger dashboard but I am struggling with returning a list).

    Any help on this is much appreciated.

    Thanks a lot
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,179

    Re: Using a Formula to return a list based on a cellls value.

    In M14

    =IFERROR(INDEX(B$2:B$117,SMALL(IF($A$2:$A$117=$M$6,ROW($A$2:$A$117)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    Enter with Ctrl+Shift+Enter

    Copy across and down

    Ensure entry in M6 matches entries in Column A (M6 had additional full stop in your example)

    Change 117 in range as required

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Using a Formula to return a list based on a cellls value.

    JonWilf,

    Attached has a "Range" of your subjects in Col X which populate the DropBoxc in N5,

    N5 - Select the subject you want

    Data appears in M14 - V31 using "Array" formula

    {=IF($N$4="","",IFERROR(INDEX($A$1:$K$19000,SMALL(IF($A$1:$A$19000=$N$4,ROW($A$1:$A$19000)),ROW($A1)),2),""))}

    (If N4 is blank, cell remains blank. If you select a subject in N4, copy all the data from Col B where Col A equals your choice.)

    As you can see, that is copied across the first row, adjusting the "2" to "3", etc, and then the row copied down.

    Hope this helps

    Ochimus
    Attached Files Attached Files

+ 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. Data Validation List - Formula to Sort and Return Unique Values in List
    By beewketu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2015, 04:18 PM
  2. [SOLVED] excel formula return dynamic list of names based on two criteria
    By deanusa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2015, 02:23 PM
  3. [SOLVED] Formula to return values from another sheet based on list selection.
    By makeeuropeanu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-15-2015, 10:11 AM
  4. Autopopulate cellls based on dropdown
    By El_Duderino in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2014, 12:47 PM
  5. Macro to pull cellls based on text into another worksheet
    By Greed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2012, 06:48 AM
  6. Return a list of names based on IF function formula
    By PRodgers4284 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2009, 08:48 AM
  7. Formula to return a list based on user input
    By TopSlacker in forum Excel General
    Replies: 1
    Last Post: 03-06-2008, 02:20 PM

Tags for this Thread

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