+ Reply to Thread
Results 1 to 4 of 4

excel advanced filter does not contain text

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    Iowa
    MS-Off Ver
    Excel 2007
    Posts
    2

    excel advanced filter does not contain text

    I am trying to do an advanced filter by doing a does not contain "xxx". Here is a simplified example.

    Service Requested
    Service Performed
    seal
    test1
    frost
    test2
    test3
    seal
    test4
    frost
    board6
    test5
    test6
    board1
    test7
    test8
    seal
    board2
    frost
    board3
    board4
    seal
    board5
    frost

    I would to filter both Service Requested & Service Performed by the cells that contain either seal or frost in either column, but do not contain board. This is the table for the advanced filter that I have been using with no luck:

    Service Requested
    Service Performed
    Service Requested
    Service Performed
    *seal*
    <>*Board*
    *frost*
    <>*Board*
    *seal*
    <>*Board*
    *frost*
    <>*Board*


    The end result would look like this:

    Service Requested
    Service Performed
    seal
    test1
    frost
    test2
    test3
    seal
    test4
    frost

    How do I use the does not contain "text" in the advanced filter?
    Last edited by refrigman; 11-09-2012 at 10:11 AM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: excel advanced filter does not contain text

    Hi

    Raw data in range A1:B12
    Criteria in range E1:F5
    Criteria Data
    E1: Requested
    E2: ="*seal*"
    E3: ="*frost*"
    E4: ="<>"&"*board*"
    E5: ="<>"&"*board*"
    F1: Service Performed
    F2: ="<>"&"*board*"
    F3: ="<>"&"*board*"
    F4: ="*seal*"
    F5: ="*frost*"

    Copy to Range J1:K1 (which have the appropriate headings)

    See how that goes.

    rylo

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: excel advanced filter does not contain text

    if you're data is in columns A and B, use a helper column in C and copy this down...
    =IF(OR(NOT(ISERROR(SEARCH("board",A2,1))),NOT(ISERROR(SEARCH("board",B2,1)))),"",
    IF(OR(A2="seal",A2="frost",B2="seal",B2="frost"),1,""))
    filter on C
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    11-08-2012
    Location
    Iowa
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: excel advanced filter does not contain text

    Looks like you are both right. Thanks for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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