+ Reply to Thread
Results 1 to 7 of 7

SUMIF using 3 variables

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    SUMIF using 3 variables

    Hello all,

    I would like to use a SUMIF with 3 criteria, ie sum rows where a column is one of three variables (so it is OR, rather than AND).

    The original formula was:

    Please Login or Register  to view this content.
    I would like to replace it with:

    Please Login or Register  to view this content.
    But it only seems to pick up rows with the first variable, "Home". Does anyone know what I should be doing?

    SUMPRODUCT would presumably work, but my bosses are wary of it as a lot of people here do not understand it.

    Thanks
    Rich

  2. #2
    Registered User
    Join Date
    03-13-2013
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: SUMIF using 3 variables

    have you tried SUMIFS?

  3. #3
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: SUMIF using 3 variables

    I think that would apply an AND rather than an OR to the criteria range?

  4. #4
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: SUMIF using 3 variables

    Tried this and it works, not entirely sure why:

    =SUM(SUMIF('Own Staff'!$K$12:$K$111,{"Home","Away","Co-Located"},'Own Staff'!$P$12:$P$111))

  5. #5
    Registered User
    Join Date
    07-16-2013
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: SUMIF using 3 variables

    because this formula create an array combination within curly brackets............

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: SUMIF using 3 variables

    Enclosing SUMIF,COUNTIF in the SUM() formula creates an array that gets summed. Well explained here..

    http://www.mrexcel.com/forum/excel-q...-dog-quot.html
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  7. #7
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: SUMIF using 3 variables

    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. Sumif or ifs? two variables
    By PERE in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-21-2013, 05:03 PM
  2. Using variables in SumIf
    By ngoellner in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-06-2010, 01:55 PM
  3. sumif with 2 variables
    By chris_steiner83 in forum Excel General
    Replies: 15
    Last Post: 09-26-2008, 08:49 AM
  4. SUMIF in VBA on VBA variables?
    By Don Wiss in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2005, 11:06 AM
  5. SUMIF variables
    By Steve in forum Excel General
    Replies: 2
    Last Post: 02-18-2005, 10:06 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