Closed Thread
Results 1 to 3 of 3

How to do summation with 2 conditions?

  1. #1
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Question How to do summation with 2 conditions?

    Hi,

    This may look like the "How to Count with 2 conditions" but it is different.

    How do I do summation with 2 conditions?

    Example:
    A1 = Apple
    A2 = Pear
    A3 = Orange
    A4 = Starfruit
    A5 = Apple
    A6= Apple

    C1 = 1
    C2 = 2
    C3 = 3
    C4 = 4
    C5 = 5
    C6= 6

    D1 = SUM(C1:C6) if A1:A6="Apple" = 12

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: How to do summation with 2 conditions?

    Lewis Koh,

    The formula in D1:
    =SUMIF($A$1:$A$6,"Apple",$C$1:$C$6)

    Or, the formula in D1 copied down:
    =SUMIF($A$1:$A$6,$A1,$C$1:$C$6)

    Or:
    =SUMPRODUCT(--($A$1:$A$6="Apple"),$C$1:$C$6)
    Last edited by stanleydgromjr; 04-18-2010 at 10:36 AM.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: How to do summation with 2 conditions?

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed 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