+ Reply to Thread
Results 1 to 3 of 3

Search for Multiple Values

  1. #1
    Forum Contributor
    Join Date
    11-21-2017
    Location
    USA
    MS-Off Ver
    2016
    Posts
    150

    Smile Search for Multiple Values

    Overview. If you open the attached spreadsheet, the routine works as follows:

    (1) Click on "G12"on the PointCount tab to activitate the userform.
    (2) Type a miscelleanous letter to activate a list of options. The routine searches from the Parts tab under the named range "PNT_DESC" (highlighted in yellow).
    (3) Select random items on the userform and hit the add button (+). An input box will then appear asking where to place the items selected. Select any row in B14:B and hit "ok". The list will generate...this is where it gets a little tricky, two additional things need to happen.

    Step 1: The routine must look at each match to generate additional information. For example, if the user selected "Proof" to generate on the spreadsheet, the routine must then look at the item listed for its corresponding match on the Parts tab, shift over one row which in the case of "PRF Proof" would be a letter "M". The letter "M" indicates the column on the PointCount tab to place the number "1" on the active row (where PRF Proof was inserted).

    Step 2: The routine would then return to the Parts tab for the same match, shift over two rows and insert the part number, which in the case for "PRF Proof" would be "2401B" and insert that information in column "AH" on the PointCount tab. Then it would do the same thing by returning to the Parts tab for the same match and shifting over three rows and inserting the notes which in the case for "PRF Proof" would be "xyz" ....whew, then we are done...

    This process would repeat for each item listed from the userform. I created a rudimentary prototype which worked well as a simple proof of concept on another spreadsheet, but I can't seem to manipulate it to work from the userform. Any help would be appreciated!

    Please Login or Register  to view this content.
    Last edited by Neuk; 05-11-2018 at 08:14 AM.

  2. #2
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: Search for Multiple Values

    For Each x In [PNT_DESC]
    x is dimensioned as long not a range. Is that causing your issue? x.row will have no value as well.

    HTH,
    Maud

  3. #3
    Forum Contributor
    Join Date
    11-21-2017
    Location
    USA
    MS-Off Ver
    2016
    Posts
    150

    Re: Search for Multiple Values

    It kind of works...it's just that it doesn't know how to search PNT_DESC for the match from each item listed, not sure what to put in there (see green...). Another problem is that it needs to repeat for each item generated by the userform and it only solves the second problem "step 2", it doesn't address "step 1" which I'm a little unsure of how to tackle all together...

    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. Multiple search terms: (ISNUMBER(SEARCH(". VALUES",1:1))),FALSE)
    By Schultze in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2018, 06:40 AM
  2. Search for Values that Multiple Search Words Share
    By Drew67209 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2014, 05:54 AM
  3. [SOLVED] How to ask formula to search for multiple values within one search?
    By Buzz57 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-04-2014, 11:14 PM
  4. [SOLVED] Search for multiple string values in the first row of a table and format column values.
    By Excel_junky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-12-2013, 12:48 PM
  5. Search for Multiple String Values on Multiple Sheets and Copy Rows to New Sheet
    By rrtikker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2012, 12:21 PM
  6. Search multiple values in a cell with multiple criteria
    By itsmeddb in forum Excel General
    Replies: 9
    Last Post: 05-22-2009, 04:00 PM
  7. [SOLVED] Search multiple values to return single values
    By JANA in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-27-2005, 12:05 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