+ Reply to Thread
Results 1 to 5 of 5

Vlook up with a wild card option needed?

Hybrid View

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    2

    Vlook up with a wild card option needed?

    Hi,

    This forumla did meet needs however some new data has appeared with additional info attached to it.
    I need to add a wild card option on the AFX(...) part to include a /1,2,3, etc and am not clear how that could be done, thx.

    =IF(COUNTIF(Odd!A5:A8091,"AFX0647E002167")>0, "167"
    &CHAR(8)&VLOOKUP("AFX0647E002167",Odd!A5:O8091,4,FALSE)
    &CHAR(8)&VLOOKUP("AFX0647E002167",Odd!A5:O8091,10,FALSE)
    &CHAR(8)&VLOOKUP("AFX0647E002167",Odd!A5:O8091,14,FALSE)
    &CHAR(8)&VLOOKUP("AFX0647E002167",Odd!A5:O8091,8,FALSE),"167"&CHAR(8)& "Open")

    This searchable item AFX0647E002167 could now also be randomly presented in the searched field as
    AFX0647E002167/1
    AFX0647E002167/2
    AFX0647E002167/3

    Thanks

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Vlook up with a wild card option needed?

    Just add a wildcard to the end of the string like this:

    "AFX0647E002167*"

    You would need it in both the COUNTIF and VLOOKUP functions.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    04-25-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Vlook up with a wild card option needed?

    Thanks that worked...tired a bunch of things close to that but no that. I guess we will have to hire that co-student who wrote the code full time soon

    Quote Originally Posted by Tony Valko View Post
    Just add a wildcard to the end of the string like this:

    "AFX0647E002167*"

    You would need it in both the COUNTIF and VLOOKUP functions.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Vlook up with a wild card option needed?

    You're welcome. Thanks for the feedback!

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlook up with a wild card option needed?

    The answer is in your question.

    Use a wildcard *

    In your current formula, change every occurance of
    "AFX0647E002167"
    to
    "AFX0647E002167*"

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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