+ Reply to Thread
Results 1 to 5 of 5

Creating a Macro that makes a list of missing items

  1. #1
    Registered User
    Join Date
    12-08-2019
    Location
    Shrewsbury
    MS-Off Ver
    2016
    Posts
    32

    Creating a Macro that makes a list of missing items

    Hi,

    I'm trying to create a macro for a list of stock items that are missing from different stores. If a stock item is missing from a particular store the shop is listed in the next column. I have attached a file to highlight what I mean. I want the macro to be able to pull through each store with the missing item into a sequential list if possible.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Creating a Macro that makes a list of missing items

    This macro will compile your list of missing stock items/shops in the last column. This should work for a table of any size, it presumes the last two columns are the STOCK list and ShopsToListMissingItems.

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-08-2019
    Location
    Shrewsbury
    MS-Off Ver
    2016
    Posts
    32

    Re: Creating a Macro that makes a list of missing items

    That works fantastically! Thank you.

  4. #4
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: Creating a Macro that makes a list of missing items

    If you want to go the VBA route, Jerry's code is always spot on!

    However, you can also do this with in-cell formulae, but they're long...

    I've attached your sample with the requisite formulae in column F. This is very inelegant, but it does what you asked for.

    Personally, I'd set up a second table with shops in columns, and items in rows, then mark for each shop what needs ordering. That way, you'll avoid both having to run a macro to update, and also you'd avoid the ridiculously long formulae! I've included such a solution, too.

    Just a thought!

    Tim
    Attached Files Attached Files
    Never stop learning!
    <--- please consider *-ing !

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Creating a Macro that makes a list of missing items

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Formula for checking what items are missing from a list
    By tukae in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-22-2019, 12:09 AM
  2. [SOLVED] Macro to find missing items
    By elgato74 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 06-26-2017, 09:42 AM
  3. [SOLVED] Creating a grocery list in a new worksheet based on selected items in a master list
    By jacolli4 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2012, 07:53 AM
  4. Macro / VBA that makes list's
    By grinch247 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2011, 08:45 AM
  5. Compare two columns and produce a list of 'missing' items
    By woodsonline in forum Excel General
    Replies: 5
    Last Post: 08-05-2008, 04:39 AM
  6. Macro Makes List Box Selection
    By CWillis in forum Excel General
    Replies: 0
    Last Post: 07-06-2006, 11:50 AM
  7. [SOLVED] Drop-down list items are missing after reopen Workbook
    By Compnerd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2005, 02:06 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