+ Reply to Thread
Results 1 to 2 of 2

Make a sub-list from a main list based on wildcards

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

    Make a sub-list from a main list based on wildcards

    Normally. I do this by using a pivot table and overlaying it with a named range.

    I wanted to give my users the ability to enter part numbers with wildcards in a form, populate a list box and give them a chance to select a part for further analysis. I get as list of unique parts as a data download and want my users to have a way to look at all the 3500-series parts for example.

    The subroutine takes three inputs: an input range (to read from), an output range (to write to) and a pattern to match.

    Here is the code:

    Please Login or Register  to view this content.
    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.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Make a sub-list from a main list based on wildcards

    Hi Daniel,

    I use .Find and .FindNext to solve the problem. See the file associated with post #4 in the following thread as a working example. It uses a ListBox to search for Exact or Partial Match (with wildcards) on 3 Sheets in the Workbook: https://www.excelforum.com/excel-pro...rch-macro.html

    Here is the UserForm Search code:
    Please Login or Register  to view this content.

+ 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. Replies: 2
    Last Post: 02-22-2015, 11:40 AM
  2. Separating an individual list from one main list (Basketball Example)
    By ticky7ock in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-04-2013, 10:35 AM
  3. Replies: 3
    Last Post: 06-24-2012, 02:01 AM
  4. link edits in sub-list to the main list
    By gunnillanelson in forum Excel General
    Replies: 1
    Last Post: 10-21-2006, 04:25 PM
  5. help!Link edits between a sub-list & main list
    By gunnillanelson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-20-2006, 06:08 PM
  6. edits a sub-list have it show in the main list?
    By gunnillanelson in forum Excel General
    Replies: 0
    Last Post: 10-19-2006, 06:09 PM
  7. [SOLVED] How do i delete data from a main xl list using another xl list???
    By jennifer in forum Excel General
    Replies: 1
    Last Post: 04-26-2006, 10:58 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