+ Reply to Thread
Results 1 to 3 of 3

Auto-adjust stock levels based on drop-down input

  1. #1
    Registered User
    Join Date
    02-24-2016
    Location
    Canada
    MS-Off Ver
    MS OFFICE 2013
    Posts
    5

    Question Auto-adjust stock levels based on drop-down input

    Hello,

    I am attempting to create a shipping request form for a department in my company to use. At this point, I have it set up so that the user can fill out relevant fields, select what they want to ship based on a drop down, and have it email and save itself using a unique reference. This all works exactly as it should.

    Please bear with me while I attempt to explain my question.

    There are two worksheets in this file. The first sheet of this spreadsheet contains the ship request. The second worksheet contains a list of part numbers in column A, a detailed description of these part numbers in column B, and the quantity of that item that is in stock in column F. When the user selects their part number from the drop down in the ship request, the description is pulled from the part number sheet column B using VLOOKUP and auto-populated into the ship request. After that, the user enters the quantity of the item that they want to ship. Here is where my problem lies:

    What I would like is when the user selects the part from the drop down, and then enters the quantity to ship, I need that entered quantity to be subtracted from the quantity in stock (column F on the part number sheet), based off the value selected in the drop down. I've been trying all sorts of things, but my difficulty lies in having the drop down value dictate which cell the subtraction takes place in. I understand that this must be done in VBA, as I cannot have a cell contain both a value and a formula. How do I have this form recognize that the quantity needs to be subtracted from the appropriate row in Sheet 2, based on the value selected from the drop-down?

    Hopefully this makes sense! Can any skilled Excel users out there help me out?

    This is a link to a Dropbox example of my question. This is obviously quite simplified, but illustrates exactly what I need to have take place:

    https://www.dropbox.com/s/rajpzh2ur8...mple.xlsx?dl=0

    Thank you in advance for any help you can provide!

    1.jpg
    2.jpg

  2. #2
    Registered User
    Join Date
    06-03-2014
    Location
    Brazil
    MS-Off Ver
    Office 365
    Posts
    52

    Re: Auto-adjust stock levels based on drop-down input

    Hey, I made a system with a funcionality very similar to what you need some weeks ago, so what you need to do is add a button that will trigger the macro to do what you need.

    You could even go ahead and make the button/macro print too to make things easier

    This code even saves the sale in another sheet, I left it in case you want to add that to your system
    Please Login or Register  to view this content.
    I tried my best to adapt it to your variables, see if it works!

    If it doesn't, just tell me and we'll figure it out
    Last edited by ppgab; 02-25-2016 at 12:46 PM.

  3. #3
    Registered User
    Join Date
    02-24-2016
    Location
    Canada
    MS-Off Ver
    MS OFFICE 2013
    Posts
    5

    Re: Auto-adjust stock levels based on drop-down input

    ppgab,

    This is beautiful - thank you very much for the extra effort!!

    I will attempt to integrate this into my file and see if I can't tweak it to get it to work for what I need. I'm backlogged with some other stuff at the moment, but I'm sure you'll hear from me soon. Again, thank you very much!!

+ 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. Auto-adjust stock levels based on drop-down input
    By generalxmayhem in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-25-2016, 12:09 PM
  2. How to check stock levels using a CSV?
    By Mikec087 in forum Excel General
    Replies: 1
    Last Post: 02-08-2015, 09:58 PM
  3. Identify the earliest expiry date on stock based on current stock levels
    By julie86xx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-10-2013, 01:08 AM
  4. [SOLVED] Stock Control - Alert user to low stock levels.
    By Kaies in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-29-2013, 08:56 AM
  5. Macro to adjust graphs based on input
    By geotr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2010, 03:31 PM
  6. Stock levels
    By penzer in forum Excel General
    Replies: 17
    Last Post: 04-01-2008, 05:14 AM
  7. stock levels
    By jamie1234 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-13-2007, 05:40 AM

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