+ Reply to Thread
Results 1 to 5 of 5

Wildcard Search Criteria

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Wildcard Search Criteria

    Having a problem getting the formula in column 'C' to function with a wildcard.

    I want to display the data if the name in the drop down box matches any name in column 'D'.

    Jim O
    Attached Files Attached Files
    Last edited by JO505; 11-18-2015 at 03:46 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Wildcard Search Criteria

    In C2 copied down,

    =IF(ISNUMBER(SEARCH($H$2,D2)),MAX($C$1:$C1)+1,0)

    In H3 copied down

    =IFERROR(INDEX($E$2:$E$128,MATCH(G3,$C$2:$C$128,0)),"")
    See attached
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Wildcard Search Criteria

    Assuming that your list will eventually have more than one match per director enter this array formula in H3 and fill down as far as necessary.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    I changed the formula in column C to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    C
    D
    E
    F
    G
    H
    1
    Film & Director(s)
    Director
    2
    1
    Alfred Hitchcock Film 1
    Alfred Hitchcock
    3
    0
    Anthony Harvey Film 2 Film 1
    4
    0
    Arthur Penn Film 3 Film 6
    5
    0
    Barry Sonnenfeld Film 4 Film 10
    6
    0
    Billy Wilder Film 5
    7
    1
    Alfred Hitchcock Film 6
    8
    0
    Brad Bird Film 7
    9
    0
    Brian G. Hutton Film 8
    10
    0
    Burt Lancaster Film 9
    11
    1
    Alfred Hitchcock Film 10
    12
    0
    Christopher Nolan Film 11
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Wildcard Search Criteria

    Try

    =COUNTIF(D$2:D2,"*"&H2&"*")

    "*" doesn't work as a wildcard in your formula, it just adds a * to each end of the string in the cell.
    Last edited by jason.b75; 11-17-2015 at 04:32 PM.

  5. #5
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Wildcard Search Criteria

    Thank you all for your input with this. Using the 'Search' function really helped resolve the issue I was having.

    Thanks again
    Jim O

+ 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. [SOLVED] Adding Wildcard to VBA Search Criteria to Produce a Message Box
    By katkth7533 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2015, 09:26 AM
  2. [SOLVED] Search using wildcard
    By tapsmiled in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 07-30-2014, 07:18 PM
  3. [SOLVED] Wildcard Search
    By yccyccycc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2013, 02:22 AM
  4. If, And, wildcard search
    By zachvu in forum Excel General
    Replies: 4
    Last Post: 07-14-2011, 06:41 PM
  5. Wildcard search using vlookup
    By hammer180 in forum Excel General
    Replies: 6
    Last Post: 07-08-2011, 04:35 PM
  6. Excel 2007 : search data using wildcard and sum it
    By eddy82 in forum Excel General
    Replies: 1
    Last Post: 06-03-2010, 06:23 AM
  7. Wildcard search for IF command
    By Zyphon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-19-2008, 05:00 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