+ Reply to Thread
Results 1 to 5 of 5

Array formulae that allow for two conditions

  1. #1
    Registered User
    Join Date
    06-07-2013
    Location
    South Australia
    MS-Off Ver
    Excel 2016
    Posts
    21

    Array formulae that allow for two conditions

    I'm using Excel 2016

    Worksheet "Individuals": numeracy data from students across four year levels. Each student has a status of either "QS" or "C"

    I'm trying to create tables on separate worksheets for each year level and status combination
    (eg Year 4 - QS, Year 4 - C, Year 5 - QS, Year 5 - C ..... etc)

    I have been able to create an array formula on worksheet "Yr4-All "that pulls only the year 4 students and data from worksheet "Individuals"

    BUT ....
    When I can't create an array formula in worksheet "Yr4-QS" that only gets the Year "4" students with a Status of "QS"
    I tried to add AND(Individuals!$C$2:$C204=4,Individuals!$D$2:$D$204="QS) to the formula but I keep getting errors


    I have attached a sample file


    Any help solving this would be greatly appreciated
    Attached Files Attached Files
    Last edited by AceCo55; 12-14-2019 at 01:32 AM. Reason: removed link to file

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: Array formulae that allow for two conditions

    Try using

    (Individuals!$C$2:$C204=4)*(Individuals!$D$2:$D$204="QS")

    instead of AND(...)

  3. #3
    Registered User
    Join Date
    06-07-2013
    Location
    South Australia
    MS-Off Ver
    Excel 2016
    Posts
    21

    Re: Array formulae that allow for two conditions

    Thank you very much for the suggestion - Row 2 works but I get an "N/A" error when I copy the formulae down the rows?
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: Array formulae that allow for two conditions

    That's because of a missing dollar sign:

    (Individuals!$C$2:$C$204=4)*(Individuals!$D$2:$D$204="QS")

  5. #5
    Registered User
    Join Date
    06-07-2013
    Location
    South Australia
    MS-Off Ver
    Excel 2016
    Posts
    21

    Re: Array formulae that allow for two conditions

    Brilliant!!!
    Works just as you knew it would!

    Thank you so much for your help and willingness to share your expertise.
    Very much appreciated

+ 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. [SOLVED] Required formulae for sum with multiple conditions
    By accountant. in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 07-15-2019, 12:13 PM
  2. [SOLVED] If formulae with multiple conditions
    By anilpatni1234 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-18-2018, 10:50 AM
  3. [SOLVED] Array formulae with different sized array, e.g. array-if() or somproduct-if()?
    By hlhans in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2016, 03:59 PM
  4. Help with three specific formulae to match and count several conditions
    By Satele in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-24-2014, 12:18 AM
  5. Array Formulae
    By kbsudhir in forum Excel General
    Replies: 1
    Last Post: 05-05-2009, 02:17 PM
  6. [SOLVED] how to use a IF(AND) formulae for more than seven conditions
    By Mohit in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2006, 09:00 PM
  7. [SOLVED] Array Formulae Problem
    By Neil P in forum Excel General
    Replies: 2
    Last Post: 07-25-2005, 12:05 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