+ Reply to Thread
Results 1 to 5 of 5

Sum until a condition

  1. #1
    Registered User
    Join Date
    12-16-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Sum until a condition

    Basically I have a large column of positive and negative numbers. I want to sum the consecutive negative numbers and consecutive positive numbers in the column. I have attached an example.

    sumex.xlsx


    any help would be greatly appreciated.

    thanks!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Sum until a condition

    Using your posted workbook...
    This regular formula, copied down, begins the list of totals of consecutive same-sign values
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    12-16-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Sum until a condition

    That works fantastic. Thanks Ron. This is a great forum.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Sum until a condition

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Registered User
    Join Date
    01-09-2014
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Sum until a condition

    Hi, I have a series of values which needs to be conditionally checked. For example, out of 28 days, if the values meet consecutively a certain condition. Then it should display as yes or else as no.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Help for if condition formula result only either hit or miss from mulitple condition
    By breadwinner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-09-2013, 07:29 AM
  2. open a comment to cell range upon true condition then removing comment on false condition
    By ferrum_equitis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 12:55 AM
  3. Replies: 6
    Last Post: 05-06-2010, 10:06 PM
  4. Running an if condition looped with another if condition in VBA
    By anuj.agarwal in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-04-2010, 08:12 PM
  5. multi condition format? lookup and date condition valid for.
    By D_Rennie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-13-2009, 11:37 AM

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