+ Reply to Thread
Results 1 to 2 of 2

Match a partial string with the match function

  1. #1
    Registered User
    Join Date
    01-11-2017
    Location
    Quakertown, Pennsylvania
    MS-Off Ver
    2013
    Posts
    4

    Match a partial string with the match function

    Hi guys,

    I'm trying to get this snippet of code below working.
    Please Login or Register  to view this content.
    options is selected from a combobox in a userform and is declared as a string type variable

    column one in the lookup range is filled as below

    empty, "Option", empty, "P01-P03", "P02"

    I have everything in the lookup range formatted as text as well. i can get it to return a 5 when the user selects "P02"
    and a 5 when the user selects "P01" or "P02", but I need it to return a 4 when either "P01" or "P03" is selected.

    any thoughts? thanks guys.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,725

    Re: Match a partial string with the match function

    Try it like this:

    Please Login or Register  to view this content.
    Hope this helps.

    Pete

+ 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: 3
    Last Post: 01-22-2015, 06:21 PM
  2. Match on partial text string
    By lmangino in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2014, 11:45 PM
  3. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  4. Trying to match partial string with another string and give position or cell
    By pat3white in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-01-2013, 10:07 AM
  5. [SOLVED] Vlookup, Match (Search or Find) partial string within string in a Cell
    By dluhut in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-28-2013, 12:40 PM
  6. Partial String Match
    By Brittney10 in forum Excel General
    Replies: 2
    Last Post: 07-18-2010, 04:04 PM
  7. Partial String Match Using VLOOKUP
    By cdhmotes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-26-2005, 06:30 PM

Tags for this Thread

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