+ Reply to Thread
Results 1 to 5 of 5

Need help making inventory that updates quantities on different sheets

  1. #1
    Registered User
    Join Date
    07-20-2021
    Location
    Salt Lake City, UT
    MS-Off Ver
    Excel 2013
    Posts
    2

    Question Need help making inventory that updates quantities on different sheets

    I'm creating an inventory workbook to keep track of supplies at work. The idea is that the supplies will be listed on their own inventory sheets (currently I have 4 sheets, as everything is sorted into their own categories) with current quantities, then there will be a main sheet that will act as an activity log. Any time someone wants an item, they'll go to the activity log, select that item from a drop down, then enter how many they want to remove or add. That amount will then be added or subtracted to the quantity listed on the inventory sheets.

    I want to keep the inventory records as hands-off as possible to avoid inaccuracies with the counts. Ideally, anyone accessing the file will only have to input info on the activity log and inventory will update automatically.

    I've figured out how to create a drop-down menu so someone can pick the supply they want. But I can't figure out how to set up the 'Quantity' cell. I don't want it to display inventory amounts. It should blank. It's just a cell for adding or subtracting. But I want it to detect the item that was selected from the menu, then when someone enters an amount (like -1 or +1), it automatically adds or subtracts that amount from the quantity listed in the inventory for that item.

    If possible, it'd be great if the +/- cell on the activity log would change color based on whether you're removing or adding. Or, if the numbers would display as -1 or +1. I'm not fond of the accounting setting that puts parenthesis around numbers.

    I was originally thinking of having a 'Remove" and "Add" column that would only subtract or only add the numbers entered in the respective column. But I couldn't figure out how to make that work either.

    I'll use either option. Whichever is easiest to program and work with. The demo workbooK has examples of both ideas.

    Any ideas you guys have would be much appreciated. Using Excel 2013. Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need help making inventory that updates quantities on different sheets

    Hi and welcome

    A couple of clarification questions.

    Do you want the inventory sheet to be updated as users change the numbers (i.e. each time a row is updated the inventory sheet is updated?) or do you have another trigger in mind?

    Is the activity log sheet to be an ongoing thing and the list just keeps growing?

    BSB

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need help making inventory that updates quantities on different sheets

    Right click the "Activity Log" sheet tab and select "View Code". Then paste the below code in that sheets module.
    Please Login or Register  to view this content.
    Does this approach will hopefully work as you expect when you add +/- numbers to column D.

    You could use conditional formatting on column D to colour the background based on + or - number entered.

    Any use?

    BSB

  4. #4
    Registered User
    Join Date
    07-20-2021
    Location
    Salt Lake City, UT
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Need help making inventory that updates quantities on different sheets

    Hi-
    Yes, the inventory updates every time someone enters a new line on the activity log. The activity log will be ongoing, the list continually growing.

    I tried out the code and that worked pretty well! Looks like it does what I've been wanting.

    I have another demo option on there too. That one with a single column that subtracts whatever number is entered, and the other column adds. Any thoughts on how to make that option work?
    Last edited by angikoneko; 08-03-2021 at 01:10 PM.

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need help making inventory that updates quantities on different sheets

    Try this:
    Please Login or Register  to view this content.
    If you had a table somewhere in the workbook that you could look up which sheet each ID# can be found on then you could make the code a little tidier as there would be no need for the looping.

    BSB

+ 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] Making certain quantities a set?
    By andrew.ralston98 in forum Excel General
    Replies: 6
    Last Post: 04-12-2020, 10:32 AM
  2. Creating Stock in and out data forms to take or remove quantities from an inventory sheet
    By HarrietEllen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-04-2018, 08:47 PM
  3. [SOLVED] Inventory calculation to predict reorder quantities within max/min constraints
    By AAbrams in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2013, 01:15 PM
  4. [SOLVED] Updating inventory Quantities from invoice...
    By muddbog in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-19-2012, 05:12 PM
  5. Input form that changes inventory quantities
    By Fryguy22 in forum Excel General
    Replies: 2
    Last Post: 03-27-2011, 09:42 PM
  6. Making a chart calculate quantities
    By All InstinX in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-05-2009, 05:36 PM
  7. Are there any inventory forms that change quantities as needed?
    By Nelson in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-01-2006, 01:15 PM

Tags for this Thread

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