+ Reply to Thread
Results 1 to 7 of 7

problem adding positive numbers

  1. #1
    Registered User
    Join Date
    10-13-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    3

    problem adding positive numbers

    Currently, I'm using a formula to add only positive numbers on my worksheet. the formula I am using in cell B19 is... =sumif(b12+b15+b18,">0", b12+b15+b18). There will be times that any one of these values may be negative and I only want to add positive values. I receive the infamous 'the formula you typed contains an error'. Would someone please assist with a correct formula syntax so I can get past what should be a seemingly easy solution.

    Thanks

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: problem adding positive numbers

    Not sure what you have between cells b12, b15 and b18, but the formula below will sum only the cells in the range of b12:b18 that are positive.

    =SUMIF(B12:B18,">0")

  3. #3
    Registered User
    Join Date
    10-13-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: problem adding positive numbers

    Yes, that formula does work, however, in that range are numbers I don't want to add anything but the dark green cells.

    B12 280.00
    B13 TRUE
    B14 25950.00
    B15 1,505.10
    B16 FALSE
    B17 (41,050.00)
    B18 (2,463.00)
    B19 $27,735.10

    In my example, I don't want to add row B18 because it is a negative number. I can use =sumif(b12:b18,">0") but I need a way to make sure ONLY B12, B15 and B18 are taken into consideration AND only added if positive. Lastly, I must be able to eliminate the other cells as part of the total. Long story short, I only need to concentrate on these 3 cells.

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: problem adding positive numbers

    Well, there is this... pretty ugly though.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-13-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: problem adding positive numbers

    You nailed it kind sir! And, it's not ugly as long as it works. Thank you very much for your help.

  6. #6
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: problem adding positive numbers

    You're welcome! It's a formula only a mother could love... but you're right, it works!

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: problem adding positive numbers

    @ michaelwoosley

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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