Consulting

Results 1 to 3 of 3

Thread: filtering with * as one of the multiple criteria

  1. #1

    filtering with * as one of the multiple criteria

    Hi
    I’m using filter> advance to find entries in a list of data.
    I know I can use multiple criteria.
    One of the rows is dates. mm/dd/yy
    I’m wondering if I can somehow use a * (star) and the year 2018 to only return mm/dd/18 dates with the other criteria.
    example
    If I use the criteria misc, it returns all ..2015..2016..etc
    I only want 2018
    What I do now is use the filter and then delete the unwanted dates
    It’s not hard because it’s all in order.
    But I’m wondering if it can be done

    I tried **/**/18 as one criteria and misc as the other but I get no results

    mike

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,724
    Location
    Whenever I've used Advanced Filter, I set up the Criteria E1:G3 like this

    (Dates >= 1/1/2018) AND (Dates <1/1/2019) AND ((Other=Dog) OR (Other=Cat))


    Capture.JPG

    Is that what you meant?
    Last edited by Paul_Hossler; 10-31-2018 at 04:49 PM.
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    Hi Paul,
    Yes
    That is exactly want i need
    Thank you


    mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •