+ Reply to Thread
Results 1 to 5 of 5

Stock Inventory Amendments using vlookup?

  1. #1
    Registered User
    Join Date
    10-05-2017
    Location
    Brisbane
    MS-Off Ver
    2010 & 360
    Posts
    2

    Stock Inventory Amendments using vlookup?

    Apologies if I've put this in the wrong section -

    I have a spreadsheet which I'm hoping someone can help me with.

    I have a sheet in my workbook that uses VLOOKUP to locate: Products, Stock on Hand and Location in warehouse from an inventory list on a seperate sheet. What I would like to do is search for a product and once the results are returned, I would like to edit (increase or decrease) the stock on hand count and have the edited value updated on the inventory list.

    Is there a simple way to do this?

    Any help would be very much appreciated!

    Thanks in Advance!

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Stock Inventory Amendments using vlookup?

    Quote Originally Posted by btlewy View Post
    Is there a simple way to do this?
    That all depends on your definition of "simple". If I'm understanding you correctly - you have a lookup sheet that you want to be able to alter to update the source sheet - then this can't be done without vba. I don't think it's particularly complicated vba, but it's vba nonetheless, so you'd be left with a macro-enabled workbook. Assuming you're okay with that, you can certainly find help here, but you'll need to post a small sample workbook (Use: Go Advanced --> Manage Attachments to access the upload window) with all private data altered or removed.
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Stock Inventory Amendments using vlookup?

    Hi btlewy and welcome to the forum,

    I think you shouldn't work between two different sheets. If you have your data in an AutoFilter Table you could simply add a row on the bottom of the Stock Inventory and it would be included automatically.

    https://www.timeatlas.com/excel-autofilter/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    10-05-2017
    Location
    Brisbane
    MS-Off Ver
    2010 & 360
    Posts
    2

    Re: Stock Inventory Amendments using vlookup?

    Hi CAntosh - Thank you very much for responding

    I had assumed that vba would be involved somehow but I'm not very confident with it at all, so wouldn't know where to start

    I uploaded an example as requested-
    Sheet 1 (Location by Product Search) - When you type a SKU number in the search results will display the location and quantity on hand of that product. Some SKU's are stored in multiple locations throughout the warehouse which is why it provides the space for up to 30 search results. This sheet uses VLOOKUP to obtain the data from sheet 3 (inventory).

    What I would love to do if its possible - On sheet 2 (Inventory Management) I would like a user form where I could enter a SKU number, Location, and then either a number to add or subtract from the current count located on sheet 3 (inventory) Once I hit update the fields would clear and then allow a new entry and the new stock count would be reflected in the 'inventory' sheet for that particular sku at its unique location. I hope this makes sense.

    Might be pushing my luck but... if this is achievable by vba is it possible for the SKU field to accept both manual entry or entry via barcode scanner???

    Thanks again for looking at this - i really appreciate it!!
    Attached Files Attached Files
    Last edited by btlewy; 10-13-2017 at 01:31 AM. Reason: typo

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Stock Inventory Amendments using vlookup?

    MarvinP's idea of keeping your data in a table and using filters and pivots to display it is one that's worth exploring. I don't know how familiar you are with tables, but it's generally easier to learn to manipulate tables to your liking than to have to tweak VBA code whenever you need to change the structure of your workbook.

    That said, a VBA solution shouldn't be too tricky. When I tried to envision the "user form" you requested for sheet2, it kept looking like sheet1, so I blended the update into sheet1 - take a look at the attachment to see if it's to your liking. I ignored sheet2 and simply added a "New Quantity" column to sheet1. Enter whatever the new quantities should be in that column, click the "Update Qty." button, and the VBA procedure should find the location on your inventory sheet and update the associated quantity. The code used is as follows:

    Please Login or Register  to view this content.
    I did some unmerging that may have disrupted some of the aesthetic choices on your initial sheet, so you may have to re-merge some areas to get back to your original "look". Just don't do any merging that involves the location or new quantity columns; VBA doesn't like merged cells.
    Attached Files Attached Files

+ 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. stock Inventory cover
    By eriksan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2013, 02:35 PM
  3. Stock inventory problem.
    By SwiftandSure in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-28-2013, 05:15 AM
  4. How to use Excel to create the Inventory Stock
    By fong in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-05-2013, 11:49 PM
  5. Replies: 4
    Last Post: 01-29-2013, 02:26 AM
  6. inventory stock and consumed
    By hyderabadi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-27-2011, 05:38 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. Stock Inventory
    By larry_saudi in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-18-2006, 01:00 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