+ Reply to Thread
Results 1 to 9 of 9

Using wildcards when filtering - anything exist to signify a number?

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    84

    Using wildcards when filtering - anything exist to signify a number?

    I know when you are using a filter, you can use a * to represent a wildcard. What I am curious about, is whether there is something that can be put in that would signify a wildcard, but also specify that the wildcard HAD to be a number.

    For example, I have a spreadsheet that has a bunch of movies in the list including TV series. The TV series are all designated at the end as "S1", "S2", "S3" etc... to signify the various seasons. If I wanted to apply the filter and bring back ONLY titles that were part of a season, I could put in the wildcard "S*", but that would also bring back pretty much anything that had an "S" in the title as well. I did try using "S#" on a whim to see if that would work as a number wildcard, but not the case. Anyone know of anything I can use?

  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,848

    Re: Using wildcards when filtering - anything exist to signify a number?

    If your numbers can only be 1 digit, then try * S?, if 2 digits then try * S??. Note the space after the asterisk, so the title would have to end with S followed by 1 or 2 characters (digits).

    Hope this helps.

    Pete

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using wildcards when filtering - anything exist to signify a number?

    what is the exact layout?
    Attach a sample workbook.

    When you are in Advanced reply, click on the paperclip to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    05-29-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: Using wildcards when filtering - anything exist to signify a number?

    It does allow me to apply a filter, but still doesn't quite work. I think part of the issue is that I need to use "Contains" rather than "ends with". There are often times that there may be something after an "S1" or something.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using wildcards when filtering - anything exist to signify a number?

    see post #3

  6. #6
    Registered User
    Join Date
    05-29-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: Using wildcards when filtering - anything exist to signify a number?

    There is no layout in particular to look at. All I am doing it trying to apply a filter on a single column. The spreadsheet could be 50 rows long or 1..it makes no difference.

    You can picture the list below as a spreadsheet and I want to apply a filter so that all of the titles that are part of a season (so anything below that contains "S1" or "S6" or whatever and ignore everything else. When filtering, I can put in "Contains S*" and limit it somewhat, but that also brings back any title with an "S" in it. Just want to know if there is something I can put in place of the * that would signify it is still a wildcard, but ONLY an integer. Not looking to do anything complicated with formulas or macros. If I can't do it with a filter, then it isn't that important.


    Title
    AMERICAN S1 V1
    AMERICAN S2 V2
    AMERICAN S6 V3
    ANGER MANAGEMENT S8
    BOARDWALK EMPIRE S3 V1
    BOARDWALK EMPIRE S2 V2
    BOARDWALK EMPIRE S1 V3
    100 GHOST STREET RETURN OF RIC
    10000 BC
    12 ROUNDS
    127 HOURS
    13 ASSASSINS
    3 10 TO YUMA (WS)
    30 DAYS OF NIGHT
    30 DAYS OF NIGHT DARK DAYS
    30 MINUTES OR LESS

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using wildcards when filtering - anything exist to signify a number?

    is all of that in one cell per entry? Attach a sample workbook.

    When you are in Advanced reply, click on the paperclip to open the upload window.

    View Pic

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

    Re: Using wildcards when filtering - anything exist to signify a number?

    Try it with Contains:

    <space>S?<space>

    It won't return Anger Management S8 as that appears at the end of the string, but it should get the others.

    Hope this helps.

    Pete

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

    Re: Using wildcards when filtering - anything exist to signify a number?

    To make it more robust in the future, maybe you should put the series numbers in square brackets, say, like this - [S1], [S2] etc. - so it will be easier to search for [S. You could do a similar thing for your V numbers. It occurs to me that if you had the word " so " in one of your titles then the sequence in post #8 would list that title.

    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)

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