+ Reply to Thread
Results 1 to 4 of 4

adding up numbers with multiple conditions

Hybrid View

  1. #1
    Registered User
    Join Date
    06-21-2007
    Posts
    5

    adding up numbers with multiple conditions

    ive tried using the sumif function and the dsum function without success, please help me, thank you.

    i need to add up the $ value of something if 2 conditions are true, note attached.

    \1

    so the 2 conditions would be, if a1:a5 = yellow & b1:b5 = r2d2 then add the cells in c1:c5 so answer would be 2700.

    yeah im not sure sorry.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565
    Hi there,

    The following array formula (i.e. don't press Enter after you've type the formula; instead press Ctrl+Shift+Enter, which signifies this is an array formula. If the formula is entered correctly, you'll see braces {} around the formula in the Formula bar) will do the trick:

    {=SUM(IF(A1:A5="yellow",IF(B1:B5="r2d2",C1:C5,0),0))}

    HTH

    Robert

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Using SUMPRODUCT

    =SUMPRODUCT(--(A1:A5="yellow"),--(B1:B5="r2d2"),(C1:C5))

    rylo

  4. #4
    Registered User
    Join Date
    06-21-2007
    Posts
    5
    thank you that works perfectly.

    (love this website!!!)

+ 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