+ Reply to Thread
Results 1 to 2 of 2

Need help to Loop Backwards and count totals in two different columns...

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Need help to Loop Backwards and count totals in two different columns...

    Hi guys,

    I was wondering if someone can show me how to achieve the following...

    Attached is the spread sheet.

    my goal is to use the starting total in cell D13

    I want to add the values from column A BUT if I am adding a POSITIVE number to the starting total I want the result to be shown in column B.

    If I am adding a NEGATIVE number from the starting total, the result should show in column D.

    So essentially there are two independent calculations going on simultaneously based off the starting total.

    Any Help would be greatly Appreciated.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,967

    Re: Need help to Loop Backwards and count totals in two different columns...

    For the plus's, in B12, copied upwards...
    =$D$13+SUMIF(A12:$A$12,">0")
    Repeat for the minuses...
    =$D$13+SUMIF(A12:$A$12,"<0")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Running loop through range backwards.
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-11-2014, 05:39 AM
  2. [SOLVED] For loop backwards
    By grkchakri in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2013, 07:49 AM
  3. [SOLVED] Set Loop Backwards
    By Jiptastic in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2013, 02:21 PM
  4. loop backwards for searching a string
    By abhimaan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2012, 02:06 AM
  5. Reading Class Information Backwards with a loop
    By moericus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2008, 09:27 PM

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