+ Reply to Thread
Results 1 to 4 of 4

Summing based on 2 criteria

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Summing based on 2 criteria

    Hi,

    I would like to sum the values in column C if the values in column E are >=25 AND <50. This is easily accomplished in Excel 2007 using the SUMIFS function but how can one do this in Excel 2003?

    Thanks

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Summing based on 2 criteria

    Hello,

    use Sumproduct()

    =sumproduct(--(E1:E100>=25),--(E1:E100<50),C1:C100)

    cheers,

  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: Summing based on 2 criteria

    Hi,

    A couple of ways.

    You could either introduce a helper column and add a formula like:
    Please Login or Register  to view this content.
    copied down

    Then use a standard
    Please Login or Register  to view this content.
    or alternatively use
    SUMPRODUCT((C1:C100)*(E1:E100>=25)*(E1:E100<50))
    changing the 100 as appropriate

    Regards
    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
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Summing based on 2 criteria

    Or

    =SUM(IF((E1:E100>=25)*(E1:E100<50),C1:C100,0))

    this is an array formula and needs to be confirmed with CTRL-SHIFT-Enter

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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