+ Reply to Thread
Results 1 to 7 of 7

advance filter exact match

  1. #1
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    advance filter exact match

    hi all
    i record a macro for advance filter for items lists i have items like blue , blue ex, blue 3 but when i want to filter blue its filter blue and blue 3 and blue ex i only want the filter of blue how to correct vba code for exact match, THANKS

    Sub ITEM_LEDGER()
    '
    ' ITEM_LEDGER Macro
    '

    '
    Sheets("MASTER_SHEET").Range("Table1[#All]").AdvancedFilter Action:= _
    xlFilterCopy, CriteriaRange:=Range("F1:F2"), CopyToRange:=Range("E4:V4"), _
    Unique:=False
    End Sub

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: advance filter exact match

    For exact matches

    Please Login or Register  to view this content.
    Last edited by JEC.; 01-17-2022 at 01:04 PM.

  3. #3
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: advance filter exact match

    Thanks for ur reply

    msg showing no matches

  4. #4
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: advance filter exact match

    Note that the filter is placed on the first column of the table, yoi should probably change that

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: advance filter exact match

    Change the filter value in F2 to =Blue. You'll want to format the cell as Text first.
    Remember what the dormouse said
    Feed your head

  6. #6
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: advance filter exact match

    ok thnaks i will try it

  7. #7
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: advance filter exact match

    Alternative with inputbox. Using the filter method for exact matches

    Please Login or Register  to view this content.

+ 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] VBA to Filter Based on Cell Value - Exact Match Only
    By Bigmal70 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2017, 11:34 AM
  2. How do I make advanced filter do exact match only?
    By blogger153 in forum Excel General
    Replies: 2
    Last Post: 11-29-2015, 11:30 PM
  3. [SOLVED] array filter that returns text if an exact match only
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2015, 06:13 PM
  4. Filter column by exact match?
    By mikey42979 in forum Excel General
    Replies: 6
    Last Post: 06-20-2013, 11:21 AM
  5. [SOLVED] Filter matrix based on a non-exact match
    By douglascaixeta in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-31-2013, 04:32 PM
  6. Filter function - exact match...
    By pmguerra in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2006, 09:48 AM
  7. Advance filter search does not filter an exact match
    By cfiiland in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2005, 08: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