+ Reply to Thread
Results 1 to 9 of 9

Update inventory worksheet by adding/subtracting stock with the quantity.

  1. #1
    Registered User
    Join Date
    08-18-2013
    Location
    canberra, australia
    MS-Off Ver
    Excel 2007
    Posts
    17

    Update inventory worksheet by adding/subtracting stock with the quantity.

    ATTACHMENT has
    inventory.sheet (inventory list)
    incoming.sheet (add stock to inventory)
    outgoing.sheet (subtract stock from inventory)


    Can someone show me how to update 'inventory.sheet' sheet by adding stock in 'incoming.sheet' and subtracting stock in 'outgoing.sheet'

    'incoming.sheet' and 'outgoing.sheet' consists of two columns. First column will have the ItemNum and the second column will have the Quantity. If the Quantity is empty beside a ItemNum, then assume it is "1"

    'incoming.sheet' and 'outgoing.sheet' can also have the same product code appear multiple times but NOT in the inventory.sheet.

    If a product code is missing in the 'inventory.sheet' can it indicate an error with a statement appearing in the missing (incoming.sheet or outgoing.sheet) ItemNum's row?

    I think that covers the basic, any additional features I can't think of yet would be very welcome, thank you for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Update inventory worksheet by adding/subtracting stock with the quantity.

    So you want to add a quantity next to a number on the outgoing sheet and have that number subtracted from inventory?

    Add a quantity next an incoming part number and have that number added to inventory?

    If it can't find the part number in inventory then you want a message saying the part number can't be found?

    This is what I will assume and will check back in a few minutes and see what your reply is.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Update inventory worksheet by adding/subtracting stock with the quantity.

    Okay I just wrote regarding my assumption in post #2.

    This code has to go in a specific place.

    For the first code right click on the "Incoming" sheet tab and choose view code and paste the code in the white window.

    For the second code right click on the "Outgoing" sheet tab and choose view code again and paste the code in the window.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    The line in each code that says Application.Goto rngFound will take you to the part number on the inventory sheet. You can use this to show you that it's working correctly. You can remove that line if you want it's just there for testing purposes.
    Last edited by skywriter; 12-16-2015 at 11:39 PM.

  4. #4
    Registered User
    Join Date
    08-18-2013
    Location
    canberra, australia
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Update inventory worksheet by adding/subtracting stock with the quantity.

    Sorry, I mean to say

    how to update 'inventory.sheet'

    by matching the ItemNum and adding stock into Inventory.sheet's "In_Stock" Column FROM 'incoming.sheet' data

    and matching the ItemNum and subtracting stock from Inventory.sheet's "In_Stock" Column using 'outgoing.sheet' data

  5. #5
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Update inventory worksheet by adding/subtracting stock with the quantity.

    Yeah, that's what I did.

  6. #6
    Registered User
    Join Date
    08-18-2013
    Location
    canberra, australia
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Update inventory worksheet by adding/subtracting stock with the quantity.

    Hi Skywriter, thanks for your help.

    It does work, but it is not quite there yet.

    It works only if you enter the information in incoming/outgoing.sheet individually and press enter. I need this to work, by cutting and pasting a chunk of data in at a time.

    And with the ELSE, msgbox. Can it write 'not found' in the incoming/outgoing.sheet instead?

  7. #7
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Update inventory worksheet by adding/subtracting stock with the quantity.

    It works only if you enter the information in incoming/outgoing.sheet individually and press enter.
    Well you have to push enter any time you enter a number, so what's the issue? How are you entering a chunk of numbers at a time? What's wrong with just having it update when you enter a number?

  8. #8
    Registered User
    Join Date
    08-18-2013
    Location
    canberra, australia
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Update inventory worksheet by adding/subtracting stock with the quantity.

    I will collect data using a mobile device and then at the end of day or end of week
    I will transfer (cut.paste) the collected data into the necessary sheets (incoming or outgoing) to then run/update the inventory.sheet

  9. #9
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Update inventory worksheet by adding/subtracting stock with the quantity.

    I need some way to tell the code which numbers to update.
    Is there a date column with the date, or are you going to highlight the numbers that need to be updated, your example was very basic, I really don't want to go back and forth because something isn't the same as what's on your sheet etc.

    If you are going to copy and paste a bunch of numbers onto those sheets the code has to know which are those in question.

    If there's a date column with the current date when you push a button that would work or you would have to highlight the cells.

    If the data you posted isn't an accurate representation of your actual data there may be issues so you might want to post a better workbook.

    What would you specifically like to do if an item doesn't exist in inventory. Add it to the inventory if it's incoming, give you a message that the item doesn't exist if you are trying to remove it from inventory?

+ 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. I need a stock order sheet to be created from a stock inventory
    By tamhav in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-20-2014, 10:40 AM
  2. Replies: 1
    Last Post: 08-09-2013, 07:35 PM
  3. adding/subtracting inventory between the sheets
    By non-pro in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-07-2013, 05:27 PM
  4. Subtracting and adding from a stock sheet according to the item code
    By Dyls in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2013, 11:49 AM
  5. Replies: 4
    Last Post: 01-29-2013, 02:26 AM
  6. Adding and Subtracting quantity to an inventory list
    By theJARRETconcept in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-09-2011, 12:43 PM
  7. Inventory Stock Balancing with Inventory Data
    By bingbangboom in forum Excel General
    Replies: 2
    Last Post: 01-30-2011, 11:06 PM
  8. How to Update Stock quantity if I sold items?
    By saad3000 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 12-11-2007, 06:18 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