+ Reply to Thread
Results 1 to 6 of 6

Attempting to auto update and sort an inventory list - need help

  1. #1
    Registered User
    Join Date
    10-22-2013
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2012
    Posts
    3

    Attempting to auto update and sort an inventory list - need help

    Hello,

    I am trying to help a family business out. I am attempting to do in Excel what should be done in a database program. I need to find a way to have different sheets in Excel match the master sheet and sort by part number (STK Code) one sheet for each type of part. Each part number has a prefix eg. 01-3732 or 10-64873. I am attempting to create a sheet for each prefix 01 - 11 and a master list.

    I am trying to find a way to make it so when they enter something in the master list, it also puts it in the correct sheet for the part that is it. I have tried both vlookup and pivot tables, but I have never attempted this before and have no clue where to begin. I have tried a few macros that I have found around on the forums, but none of them seemed to work for my situation. I am most likely doing something very wrong.

    I have attached a sample of what they want it to look like.

    I know Excel is not exactly the best option for this, however this is what they want and they dont want to learn a database program.

    I would appreciate any and all help you could provide.
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Attempting to auto update and sort an inventory list - need help

    Place the following code in the worksheet code module. Right click the "Master" tab. Click 'View Code'. Copy and paste the macro into the empty code window that opens up. Close the window to return to your worksheet. The critical point that you must remember is that the appropriate data will be copied automatically to the right sheet when you enter the 'Stk Code' and then exit that cell. This means that the 'Stk Code' must be the last item entered in each row, so enter all the data and leave the code until the end. You could move the code column (currently column B) to the end so that it is the last item entered, but if you do this the Range("B:B") in the code must be changed to Range("M:M"). Please let me know how it works out.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-22-2013
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2012
    Posts
    3

    Re: Attempting to auto update and sort an inventory list - need help

    Thank you so much! So far it is working great. Just a few questions though...

    1) If they have to change something, for example quantity, even if I edit the quantity and then go into STK Code and make sure that is the last thing entered, will it not update the change?

    2) Do I have to go through the entire list STK Code by STK Code and press enter to make it show up on the sorted list? There are a staggering amount of rows.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Attempting to auto update and sort an inventory list - need help

    If you have to make a change in any data after it has been copied to its specific sheet, you make the changes and then you have to re-enter the STK Code because the code is what triggers the macro. The row previously copied will be deleted and a new row with the changes will be added at the bottom of the sheet. In order to accommodate this change, I've had to modify the code. Please use the following:
    Please Login or Register  to view this content.
    The macro was designed to start with a blank Master sheet. If you want to copy any existing data from your Master sheet to the other sheets, use the macro below. Make sure all the other sheets are blank before you run the macro. Please note that this macro goes into a regular module not the worksheet module and you run it only once from there. It will copy over the existing data and from that point on you should just add one row of data at a time entering the TSK Code last.
    Please Login or Register  to view this content.
    Last edited by Mumps1; 10-28-2013 at 01:48 PM.

  5. #5
    Registered User
    Join Date
    10-22-2013
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2012
    Posts
    3

    Re: Attempting to auto update and sort an inventory list - need help

    Awesome! Thank you very much! You have done in 1 day that I have been trying to do for 2 weeks

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Attempting to auto update and sort an inventory list - need help

    It was my pleasure.

+ 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. Attempting to develop an inventory spreadsheet.
    By bdmedic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-21-2013, 10:24 AM
  2. Non-Programmer attempting to auto sort in multiple sheets
    By smatchymo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2012, 12:17 AM
  3. Linking two Excel spreadsheets together to update inventory list
    By Thoraine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-09-2010, 01:48 AM
  4. how to automatically update inventory list with sales
    By lalani in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-20-2006, 02:40 AM
  5. update prices in inventory based on downloaded price list??
    By Wilk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2006, 10:00 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