+ Reply to Thread
Results 1 to 7 of 7

Sum values based on mulitple conditional statements with array formula

  1. #1
    Registered User
    Join Date
    02-07-2014
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    5

    Sum values based on mulitple conditional statements with array formula

    Hello,

    I'm trying to sum the values in a table based on several conditions being met and I'm having trouble getting the correct answer. The array formula in the attached file (see cell AA3) sums the values based upon the single condition that the hour is greater than or equal to 8. When I try to add the second condition using the AND formula, I'm getting #Value error (see cell AB3). The second condition is that Z3="On". Any help is greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Sum values based on mulitple conditional statements with array formula

    Not sure why you need an array formula when this would suffice >> =IF(Z3="On",SUMIF(B1:Y1,">=8",B3:Y3),"")
    HTH
    Regards, Jeff

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sum values based on mulitple conditional statements with array formula

    Hi,

    You don't need an array function.
    You could use SUMIF
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then just preface it with an If Test

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    02-07-2014
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Sum values based on mulitple conditional statements with array formula

    Thanks Jeff! I suppose I was overthinking this and making it unnecessarily complex. Appreciate the assist!

    Barry

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Sum values based on mulitple conditional statements with array formula

    Here's another option for the formula in column Z >> =IF(OR(WEEKDAY(A2,2)>5,ISNUMBER(MATCH(A2,$AH$4:$AH$9,0))),"Off","On")

  6. #6
    Registered User
    Join Date
    02-07-2014
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Sum values based on mulitple conditional statements with array formula

    Appreciate the reply Richard. Overthinking something so simple!

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Sum values based on mulitple conditional statements with array formula

    You are very welcome Barry. We are happy to assist.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Sum of unique values with mulitple criteria based on date :/
    By andylee1892 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2017, 11:11 PM
  2. Conditional Formatting Text based on array values of adjacent array.
    By Quasar82 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2017, 09:54 AM
  3. Checking mulitple parts of array for same values and latest date
    By r_catchlove in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2015, 11:23 PM
  4. [SOLVED] Sum by Conditional Formatting based on Array formula
    By ChrisBITGROUP in forum Excel General
    Replies: 4
    Last Post: 06-02-2014, 07:55 PM
  5. Conditional Formatting - Colouring % of mulitple cells based on date range
    By yeahyeah93 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2014, 09:22 AM
  6. Replies: 5
    Last Post: 04-01-2012, 02:48 AM
  7. return mulitple values from array dbase
    By J.Jones in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-20-2005, 08:39 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