+ Reply to Thread
Results 1 to 4 of 4

Subtracting cells

  1. #1
    Registered User
    Join Date
    09-05-2006
    Posts
    13

    Subtracting cells

    I have a spreadsheet, which is attached. What I am looking to do is create a column next to "On-Hand" qty column so when a number is entered into the new column it will subract from the on-hand qty. I then want the ability to clear out the new column, but have the on-hand qty remain the new number. If this is possilbe to do, I would also like it to work with addition, as well. Any and all help is much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Try this:

    Insert the column next to your On Hand quantity column (this will create a blank column I).

    Right-click on your Rack #1 sheet tab and choose View Code. Copy and paste the code shown below into the code window. Close the VBA editor.

    On your Rack #1 sheet, type a positive number in any cell in column I to increase the On Hand quantity in column H for that item. To reduce the On Hand quantity, type a negative number in column I. If you delete the number from column I, nothing will happen to the values in column H.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-05-2006
    Posts
    13
    Thank you , That is exactly what I was looking for..

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    You're welcome. Glad I could help 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