+ Reply to Thread
Results 1 to 2 of 2

Need help with a running total macro

  1. #1
    Registered User
    Join Date
    05-06-2009
    Location
    Phoenix
    MS-Off Ver
    Excel 2003
    Posts
    13

    Need help with a running total macro

    Hello everyone, and thanks in advance for the help.

    I sell a number of items and am using an excel sheet to keep track of them. I currently have it set so that a number of buttons I click increment a column of numbers that show how many I need to make of that item (to replenish stock). I then have a 3rd column keeping track of how many I have sold of that item. Here is an example:

    Item A | 5 | 103

    In this example, I have recently sold (and need to make) 5 of item A. In the past I've sold 103 total.

    Currently, I'm doing it all manually. I need a macro that will add the numbers in column B into column C and then delete column B.

    So in the example above, after running the macro, it would look like:

    Item A | 0 | 108

    I have a large number of rows I need this done on, and more rows may be added in the future.

    If you need any more information, please let me know.
    Last edited by Onyx; 05-10-2009 at 12:22 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Need help with a running total macro

    The code below should get you started:
    Please Login or Register  to view this content.

    ==================
    Copy the code above
    Right click the sheet tab
    Select View Code...
    Paste into the code pane of the VB Editor
    Ben Van Johnson

+ 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