+ Reply to Thread
Results 1 to 3 of 3

creating a running inventory

Hybrid View

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    Owen Sound, Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Post creating a running inventory

    I want to be able to enter a nuber in G3 and have it add to the number already in H3. Then when I enter a new number in G3, I want it to overwrite and accumulate in H3. Any help would be greatly appreciated. I have attached a copy of the file.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: creating a running inventory

    You'll need VBA
    Right click on the sheet tab and "View Code"
    Paste this code into the VBA Editor and then close it.
    Private Sub Worksheet_Change(ByVal Target As Range)
    
    If Target.Column = 7 Then
        Target.Offset(0, 1) = Target.Offset(0, 1) + Target
    End If
    
    End Sub
    Is that what you were looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    Owen Sound, Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: creating a running inventory

    That is exactly what I've been trying to do. Thank you so much. I've been going nuts trying to figure it out.

+ 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