+ Reply to Thread
Results 1 to 5 of 5

AutoFilter a Table based on a Cell Value

  1. #1
    Registered User
    Join Date
    01-20-2020
    Location
    Wroclaw
    MS-Off Ver
    Excel 2013
    Posts
    18

    AutoFilter a Table based on a Cell Value

    Hi Everyone,

    I'm trying to filter a table based on a cell value (B2).

    For example, if I type "Red" in cell B2, all the table will be sorted to show me only the "Red" values in the column called "Color".
    I tried with this code but it doesn't work.

    Please Login or Register  to view this content.
    Any idea? I've attached my file.

    Thanks in advance!
    Attached Files Attached Files
    Last edited by skifizzo; 10-13-2020 at 11:38 AM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: AutoFilter a Table based on a Cell Value

    Put the word Color in B1 & try this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-20-2020
    Location
    Wroclaw
    MS-Off Ver
    Excel 2013
    Posts
    18

    Re: AutoFilter a Table based on a Cell Value

    Thanks Fluff13, it work perfectly! You're the man!!

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: AutoFilter a Table based on a Cell Value

    You're welcome & thanks for the feedback.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: AutoFilter a Table based on a Cell Value

    As you're using a table, this would be better, as it will always filter the table regardless of size
    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. Replies: 8
    Last Post: 03-06-2020, 12:07 PM
  2. [SOLVED] Autofilter in vba based on cell value
    By rajansettu in forum Excel General
    Replies: 4
    Last Post: 01-22-2015, 07:59 AM
  3. [SOLVED] Copy top cell post autofilter and re-apply autofilter based on cell value
    By gpato in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2014, 09:07 PM
  4. Autofilter based on sequential table values
    By swanseaexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2011, 03:56 AM
  5. PIVOT table autofilter based on data validation cell selection
    By fredstyler in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-16-2011, 09:23 AM
  6. Autofilter based on a cell value
    By ccsmith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2011, 09:45 AM
  7. VBA autofilter based on cell value
    By 50pingviner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-13-2010, 12:47 PM

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