+ Reply to Thread
Results 1 to 4 of 4

Returning multiple cells based on criteria of other cells

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    14

    Returning multiple cells based on criteria of other cells

    I have a student data sheet currently feeding subject summary tabs picking out key parts.

    Currently, I have the following formulae to pick out names and their associated data from a list based on the value attached to those names in a given cell (Currently N6). See the separate English or Maths tabs attached.

    =IFERROR(INDEX(Transition!$DY$1:$EK$207,SMALL(IF(Transition!$EK$1:$EK$207=$N$6,ROW(Transition!$EK$1:$EK$207)),ROW(2:2)),A$5),"")

    I am trying to extend this to now return the names, AND the values, from two areas on the data sheet (English AND Maths) based on whether those values meet criteria specified in the summary sheet. So on the English & Maths tab, I have set in AL6 & AL7 boxes to specify values I wish to look between. Then I am trying to get the sheet to return ALL students for whom the data on the Transition sheet (Columns EK for English & BT for Maths) matches that criteria, together with the values associated for those students in EK & BT from the transition sheet.

    Any suggestions much appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: Returning multiple cells based on criteria of other cells

    Not exactly certain what you were looking for....where exactly you wanted the results.
    I assume you wanted to replace the existing ones, so maybe this is what you need.

    It lists all students that fit the criteria in AL6:AL7 for BOTH English AND Math.
    I removed the -1 from N6 since it isn't used now.
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,569

    Re: Returning multiple cells based on criteria of other cells

    I had a different interpretation, quite possibly incorrect, of the querry from that of Beamernsw. I take it that you want a list of students that have a value of 0 or 1 for either Math or English.
    The values stored in the transitions sheet columns BT and EK would not lend themselves to evaluation of falling into a range between two numbers. I think that you may have meant BR for English and EI for Maths. Going on that assumption, this solution takes advantage of there not being any fractional values in those columns so a simple IF(OR... formula is used to identify the names of the students in a helper column (English & Math!AT):
    Please Login or Register  to view this content.
    The names are then filtered, to remove blanks, into column A using the formula:
    Please Login or Register  to view this content.
    The Maths values are then input with the formula:
    Please Login or Register  to view this content.
    Similarly the English values with:
    Please Login or Register  to view this content.
    Here is a copy of your file with the formulas applied:
    Copy of Forum upload.xlsx
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Registered User
    Join Date
    04-04-2013
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Returning multiple cells based on criteria of other cells

    Massive, massive thanks! I can't tell you how long I had been trying to nail that for.

    And while I had been aiming for the top one the second will be a very good fit for a slightly different project also, awesome! Thank you both.

+ 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. Returning value of cells based on another cells background colour
    By Prankster182 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-04-2015, 09:19 AM
  2. [SOLVED] Returning a YES or NO based on the condition of multiple other cells
    By Coubs3 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-01-2014, 10:53 AM
  3. Populating fields in multiple cells based on criteria in multiple columns
    By excelalways in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2014, 08:17 AM
  4. [SOLVED] Sum of Cells Based on Multiple Criteria
    By pugsly8422 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2013, 11:30 AM
  5. Returning multiple values in multiple cells based upon one input
    By ccoonsk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2012, 10:01 AM
  6. Replies: 2
    Last Post: 04-18-2012, 05:10 AM
  7. Replies: 2
    Last Post: 06-24-2010, 04:53 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