+ Reply to Thread
Results 1 to 6 of 6

Updating Inventory Macro

  1. #1
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Updating Inventory Macro

    Hi,
    I need a button in sheet 1 which will update inventory for UPC in column B with the greater inventory in Sheet 2 since there are 2 UPCS with different SKUS which are technically the same item but different packaging.
    I have attached the sheet.

    For example:
    I vlookup Inventory for UPC- ABC123

    and in sheet 2 there 2 of the same UPC, I need it to take the greater number.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Updating Inventory Macro

    You state that you have Excel 2003 but attached a file in 2007+ format. What version do you truly have? This issue can be solved with a pivot table. If you have Excel 2010 or later, you could use a slicer to control it making it a lot easier to manipulate.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Updating Inventory Macro

    Hi,
    Sorry for the confusion, Please see attached I would like a VBA code implemented within a button on sheet 1 to return result of greater number from sheet 2 even though they have the same UPC.
    The issue is every time I vlook up the inventory it shows me the lower number instead of the higher.


    I have attached a sheet and made it simpler with just 2 items, when I vlookup it gives me the lower number result and not the higher.


    Please see attached.
    Attached Files Attached Files

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Updating Inventory Macro

    The pivot table picks the maximum value for the item selected.

  5. #5
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Updating Inventory Macro

    That will not give me the result I need since I need to input information in sheet 1

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Updating Inventory Macro

    You could try this.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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. Updating inventory stock using a macro
    By ktyoung009 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2017, 11:16 AM
  2. [SOLVED] Updating Inventory Price Changes between two Sheets
    By DanCurran1 in forum Excel General
    Replies: 5
    Last Post: 09-04-2014, 12:26 PM
  3. [SOLVED] (updating inventory using user form) : Assign macro to "Çheck Availibility" command button
    By pyol17 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-08-2012, 06:50 AM
  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. Excel 2007 : Macro for updating dynamic inventory
    By f1.moony in forum Excel General
    Replies: 2
    Last Post: 01-08-2011, 12:48 AM
  6. Updating Inventory for Assemblies
    By hpmachining in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-24-2010, 02:47 PM
  7. [SOLVED] Updating inventory quantity
    By kuansheng in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2006, 09:55 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