+ Reply to Thread
Results 1 to 5 of 5

One criteria, multiple matches

  1. #1
    Registered User
    Join Date
    06-06-2008
    Posts
    13

    One criteria, multiple matches

    Hello,

    I am pretty new at using Excel, so thank you in advance for your help. I have two columns of data shown below.

    Parts list Part number
    xyzP987rty *P987*
    rzyP632rty *P632*
    xykP987rty *P345*
    addP345rsa

    I needed to find which part numbers exist on the parts list. Knowing that the parts list have the part numbers in the middle of a lot of other useless numbers I placed wildcards at the beginning and end of each part number. Then I used this formula:

    vlookup(B2,A2:A5,1,False)

    It returned with xyzP987rty, but I also need it to also return with xykP987rty. Is there any way for me to use one criteria, such as P987 and return with multiple results such as xyzP987rty and xykP987rty. Thanks again

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Say your data starts in A2 and you have the Parts to search for (with wildcards in place) beginning at B2...

    In C2, enter formula:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER not just ENTER... you will see { } brackets appear around the formula.

    Then copy across a few columns and down as far as you have parts to match...

    the matches will appear horizontally.

    Note: After you make adjustments to ranges in the formula... you must reconfirm with CSE keys before copying...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-06-2008
    Posts
    13
    This works great- Thanks so much

  4. #4
    Registered User
    Join Date
    06-06-2008
    Posts
    13
    This formula works great, but my spreadsheet is huge. 11000 entries long. Is there a way to speed it up- would it be beneficial to look into making a vba macro?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Unfortunately, array formulas (or CSE formulas) tend to get less efficient and therefore slower and slower as your arrays grow....since each item in the array needs to be assessed....

    There may be ways to do it with macros, that would be faster, but, again, unfortunately, I am not the one that can provide that, since I am no VBA master...

    Hopefully someone can join in with a VBA solution...

+ 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. Populating Cell Only If Multiple Criteria Matches -- Repost
    By mcarcharocles in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-31-2008, 02:32 PM
  2. multiple criteria for index and match against multiple worksheets
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-27-2007, 10:41 AM
  3. Searching Data with Multiple Matches
    By boylejob in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-11-2007, 12:06 PM
  4. using multiple criteria with sumif
    By Jerhansen277 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2007, 06:29 PM
  5. AAAaaahhhh Multiple Sheets Multiple Criteria
    By Hippychic in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2006, 11:32 AM

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