+ Reply to Thread
Results 1 to 7 of 7

Help nesting an OR function inside a SUMIFS function

  1. #1
    Registered User
    Join Date
    03-13-2014
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    30

    Help nesting an OR function inside a SUMIFS function

    For some reason this isn't working. I want it to sum Column F if Column A has a certain value and if Column B contains one of three possibilities. This function will not work however! I'm getting a sum of 0.

    SUMIFS(F1:F1,A1:A1,8,B1:B1,OR(4,7,9))

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Help nesting an OR function inside a SUMIFS function

    try

    SUMIFS(F1:F1,A1:A1,8,B1:B1,4)+SUMIFS(F1:F1,A1:A1,8,B1:B1,7)+SUMIFS(F1:F1,A1:A1,8,B1:B1,9)

    although your range is only row 1
    is that what you wanted ?
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  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: Help nesting an OR function inside a SUMIFS function

    Hi,

    You've only specified ranges containing a single row. But in any case you are effectively trying to perform an AND.

    Try instead

    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
    03-13-2014
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Help nesting an OR function inside a SUMIFS function

    I know, I'm just trying to keep it simple for the sake of the thread. I know I could add multiple SUMIFS together, but I actually have more than one column where there is more than one possibility, and this would quickly get unwieldy.

  5. #5
    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: Help nesting an OR function inside a SUMIFS function

    Well the syntax you show isn't recognised so you can't do it that way. One way or another you are going to have to use multiple functions.

    Perhaps an easier option would be to use a helper columns which uses an

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


    formula and then use the helper column in the SUMIFS() formula.

  6. #6
    Registered User
    Join Date
    03-13-2014
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Help nesting an OR function inside a SUMIFS function

    I don't understand why "SUMIF/SUMIFS" won't sum a function if the criteria OR(blablabla) is true. It seems so simple. Does A1 = 3 or 4? Yes, great, sum it!

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

    Re: Help nesting an OR function inside a SUMIFS function

    Try it like this...

    Data Range
    A
    B
    C
    D
    E
    F
    1
    1
    8
    Total
    60
    2
    2
    2
    69
    29
    3
    8
    7
    10
    4
    3
    3
    10
    5
    8
    5
    62
    6
    8
    4
    47
    7
    4
    4
    42
    8
    5
    6
    57
    9
    8
    9
    12
    10
    6
    5
    46
    11
    ------
    ------
    ------
    ------
    ------
    ------


    This formula entered in D2:

    =SUM(SUMIFS(F1:F10,A1:A10,8,B1:B10,{4,7,9}))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] Nesting OR() Function in SUMIFS()
    By Publicpenguin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2014, 02:44 PM
  2. Need help nesting an index/match function within a Vlookup function.
    By Christopher135 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2013, 06:16 PM
  3. [SOLVED] MATCH function workaround - nesting ADDRESS function?
    By BishBosh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2013, 03:45 AM
  4. Replies: 0
    Last Post: 01-19-2013, 01:35 PM
  5. [SOLVED] Nesting Networkdays function inside and If function
    By Addison in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2006, 03:10 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