+ Reply to Thread
Results 1 to 4 of 4

Formula to add percentages from the next positive percentage above the given row

  1. #1
    Forum Contributor
    Join Date
    10-05-2016
    Location
    orange, ca
    MS-Off Ver
    0365 2209
    Posts
    148

    Formula to add percentages from the next positive percentage above the given row

    Hello add

    I wanted to create a formula that simply adds the percentages of the same row to the next positive percentage above the specified row and same column.

    In the example given, I manually added the percentages of columns G-I to the percentage in column E of the given row. For example, in row 18 the percentage in column E is added to the row 16 column G making 0.717%.

    To making it simplier, I just wanted to use a formula that simply adds the percentage in the same row column E to the next positive percentage above it in same the column as the formula. This would be easier since the next positive percentage can be several rows above.

    Thank you and please let me know any farther clarification is needed.
    Attached Files Attached Files
    Last edited by lar9149; 06-17-2021 at 10:06 AM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,477

    Re: Formula to add percentages from the next positive percentage above the given row

    There are several rows with negative %, but manual input in F,G,H. (row 7,8,14,19)
    Assum all negative % would be ignored, try in F6:

    Please Login or Register  to view this content.
    Drag down and accross.
    Attached Files Attached Files
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    10-05-2016
    Location
    orange, ca
    MS-Off Ver
    0365 2209
    Posts
    148

    Re: Formula to add percentages from the next positive percentage above the given row

    Quote Originally Posted by bebo021999 View Post
    There are several rows with negative %, but manual input in F,G,H. (row 7,8,14,19)
    Assum all negative % would be ignored, try in F6:

    Please Login or Register  to view this content.
    Drag down and accross.
    Thank you for the help again bebo

    I tested the formula and it works for the said comparison. But I wanted the formula to be adjustable. For example, I included another copy and attach it.

    Looking at the red, I manually put in the 0.044 on row 20, in my actual work, sometimes I will do that and override the formula for various reasons. In green under row 23 I put what the answer should be..but the formula doesn't account for that.

    Is there a way for modify the formula so it would still work in this situation?
    Attached Files Attached Files

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,477

    Re: Formula to add percentages from the next positive percentage above the given row

    Quote Originally Posted by lar9149 View Post
    in my actual work, sometimes I will do that and override the formula for various reasons.
    Instead of overriding the formula, a helper column help to to define override ("Y") or not (blank)

    Then in G6:

    =IF(AND($E6<0,$D6<>"Y"),"",G$5+SUMIF($E$6:$E6,">0",$E$6:$E6))
    Attached Files Attached Files

+ 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] How to use icon sets for positive and negative percentages
    By cmorten82 in forum Excel General
    Replies: 10
    Last Post: 06-16-2021, 12:20 AM
  2. [SOLVED] Formula or macro that will count the first positive in a set of percentages
    By lar9149 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-06-2021, 03:41 PM
  3. [SOLVED] Percentage of a list of Percentages Excel formula?
    By Gingie1967 in forum Excel General
    Replies: 4
    Last Post: 04-03-2020, 11:26 AM
  4. Replies: 4
    Last Post: 02-10-2018, 01:31 AM
  5. [SOLVED] Percentage OF Time Positive (dynamic formula) Help
    By Excel15 in forum Excel General
    Replies: 3
    Last Post: 10-10-2017, 11:48 AM
  6. Percentages between positive and negative numbers
    By PISTOLERO in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-27-2014, 07:09 AM
  7. Rank Positive Percentages Only
    By markrennolds in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-07-2010, 06:10 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