+ Reply to Thread
Results 1 to 5 of 5

Sum multiple conditions

  1. #1
    Registered User
    Join Date
    05-06-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    24

    Post Sum multiple conditions

    Hi All,

    I am wanting to sum data in column C based on specific conditions in column A & B.

    If column A (Full / Split Case) = "VP" & If column B (Temp) = "2", then sum the value in column C.

    I have attached an example file for reference.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by creativefusion; 05-13-2009 at 01:40 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sum multiple conditions

    One way with a SUMPRODUCT() formula:

    =SUMPRODUCT(--($A$2:$A$12="VP"),--($B$2:$B$12=2),$C$2:$C$12)

    If you replace the red values with cell references you could dynamically change that formula by changing those cell values.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Sum multiple conditions

    Hello Creativefusion,

    Try this formula on for size:

    =SUMPRODUCT(--(UPPER($A$2:$A$12)="VP")*($B$2:$B$12=2),$C$2:$C$12)

  4. #4
    Registered User
    Join Date
    05-06-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    24

    Smile Re: Sum multiple conditions

    Formula's work a treat. Its exactly what I was looking for.

    Thanks heaps guy's.


  5. #5
    Registered User
    Join Date
    05-06-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Sum multiple conditions

    Quote Originally Posted by JBeaucaire View Post
    One way with a SUMPRODUCT() formula:

    =SUMPRODUCT(--($A$2:$A$12="VP"),--($B$2:$B$12=2),$C$2:$C$12)

    If you replace the red values with cell references you could dynamically change that formula by changing those cell values.
    Please disregard previous
    Last edited by creativefusion; 05-13-2009 at 02:02 AM. Reason: Error

+ 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