+ Reply to Thread
Results 1 to 4 of 4

Sum formula with conditions

  1. #1
    Registered User
    Join Date
    05-22-2009
    Location
    Shirland, IL
    MS-Off Ver
    Excel '00 & '03
    Posts
    51

    Sum formula with conditions

    Hello all,

    I'm having toruble developing a formula to allow me to add all the values in cells A1 through A100 if their respective quantities are more than 0.

    What i mean is if i have the following columns of data:
    A B
    6 2
    2 1
    4 0

    A being the values added and B being the quantity then i only want A1 and A2 Added together. Therefore the value would be 8.

    Any help to get a formula for this would be great.

    Thanks
    Last edited by fire_water; 06-17-2009 at 01:53 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: Sum formula with conditions

    Use SUMIF

    =SUMIF(B:B,">0",A:A)

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Sum formula with conditions

    You could use:
    =SUMIF($B$2:$B$4,">0",$A$2:$A$4)
    Remember what the dormouse said
    Feed your head

  4. #4
    Registered User
    Join Date
    05-22-2009
    Location
    Shirland, IL
    MS-Off Ver
    Excel '00 & '03
    Posts
    51

    Re: Sum formula with conditions

    Hey those worked Great. Thanks to both of ya!

+ 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