+ Reply to Thread
Results 1 to 4 of 4

Filter Wild Card / Contains

  1. #1
    Registered User
    Join Date
    05-22-2012
    Location
    Spalding
    MS-Off Ver
    Office 365
    Posts
    17

    Filter Wild Card / Contains

    I have the following script that isnt working correctly.

    ActiveSheet.Range("$A$1:$T$12114").AutoFilter Field:=2, Criteria1:= _
    "=" & Sheets("Summary").Range("C3") & "*", Operator:=xlAnd

    Row C contains a list of data - example as follows :

    1234
    1234-b
    1234-c
    1234-d
    1335
    1445
    1445-a
    1445-b

    I am trying to filter based on a code entered on a Summary sheet - if a user enters 1234 I would like 1234, 1234-b, 1234-c, 1234-d to display - I have tried to use "*" but it doesnt work.

    Please can someone point me in the right direction.

    Thanks

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Filter Wild Card / Contains

    Can you attach a sample workbook?
    Cheers!
    Deep Dave

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Filter Wild Card / Contains

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-22-2012
    Location
    Spalding
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Filter Wild Card / Contains

    Thanks for your reply - I believe Ive solved the problem - ive changed the field type to text rather than numeric and it appears to have worked

    cheers Graham

+ 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. wild card
    By jamrock in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2013, 05:47 PM
  2. Wild Card Search
    By roy.okinawa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2006, 06:45 PM
  3. wild card -- help with formula
    By Michael A in forum Excel General
    Replies: 10
    Last Post: 01-08-2006, 06:20 AM
  4. [SOLVED] Wild card *
    By Herman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-21-2005, 09:05 AM
  5. Replies: 12
    Last Post: 09-12-2005, 01:05 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