+ Reply to Thread
Results 1 to 6 of 6

Displaying all Applied Filters

  1. #1
    Registered User
    Join Date
    07-30-2014
    Location
    LI, NY
    MS-Off Ver
    2010
    Posts
    5

    Displaying all Applied Filters

    Hello Everyone, I have a user with a very large spreadsheet which contains company financials so I can't post it. But within this spreadsheet there are columns that span many pages and many many rows. The data is filtered on several columns. Is there a way to view all of the applied filters without having to go into each one or hover over each one and also important is that I also need to know the order the filters are applied? I found some code for a user defined function online to do this but I am hitting a block because if the filter has more then 2 selections checked the function fails and it won't tell me the order that they are applied in.

    Here is the code from online:
    Please Login or Register  to view this content.
    Thank you very much for any help, Kim
    Last edited by welch1198; 08-01-2014 at 11:48 AM.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Displaying all Applied Filters

    Hi Kim,

    Great question. See the attached file and complete code that follows which is based on similar code to yours. I would give credit to the author, but I lost the original link.

    Please note that there can be several ranges that can use AutoFilter on one sheet, but only one AutoFilter range can be active on one sheet at a time (at least in Excel 2003). If using more than one range per sheet, they SHOULD NOT BE side by side, because when AutoFilter hides rows, it may look like a non-AutoFilter range is being filtered.

    AutoFilter can be ON at the same time on several different sheets in the same workbook

    I called the function 'GetAutoFilterCriteria()' and created a SHORTCUT function 'AFC() ' that does the same thing to allow for less typing when implementing the function in a cell. Even though the function is declared Volatile (which means a recalculation occurs any time any cell on the sheet needs calculation), recalculation may not occur when switching between AutoFilter OFF and AutoFilter ON when there are no Autofilter criteria.

    Lewis

    Please Login or Register  to view this content.

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Displaying all Applied Filters

    Hi, welch1198,

    also important is that I also need to know the order the filters are applied?
    AFAIK no chance except you place a range where the filter range and criteria is listed in the order it should be applied (but why then would you need to know what filters are on?) or maybe try the Advanced Filter instead.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Registered User
    Join Date
    07-30-2014
    Location
    LI, NY
    MS-Off Ver
    2010
    Posts
    5

    Re: Displaying all Applied Filters

    Thank you both very much, Lewis this is great and we really don't use a filter for more than two items per column so this will work well. The dates not formatting in the filter I will try to play with. Holger, the why is because some of the spreadsheets we have are very long and have many columns (I believe through column "mm" at this time), if we only had a few columns would be silly to try to work to get this. The Business Analyst is looking for a quick way to see what the filters are and what was chosen - in what order - so she can make sure the reporting is accurate when switching criteria. Currently she removes all of the filters she has set and redoes them. If she knew from the previous weeks reporting where the filtering was left off (as an example) it would just help make her life easier. Thanks again to both of you I really appreciate the replies.

  5. #5
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Displaying all Applied Filters

    The following may help you with date conversion:
    Please Login or Register  to view this content.
    Lewis

  6. #6
    Registered User
    Join Date
    07-30-2014
    Location
    LI, NY
    MS-Off Ver
    2010
    Posts
    5

    Re: Displaying all Applied Filters

    Lewis, you're terrific thank you! I will try this today. Have a terrific rest of your day!

+ 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] Apply 'X only to records that has Filters applied
    By nironto in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-09-2013, 07:07 AM
  2. [SOLVED] Averaging data from column with filters applied..
    By mungel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2013, 01:02 PM
  3. Saving Database with Filters Applied?
    By cmf0106 in forum Access Tables & Databases
    Replies: 4
    Last Post: 11-04-2012, 07:33 AM
  4. Applied filters from specific cells
    By kevin_wvu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2011, 08:41 AM
  5. Possible to save a spreadsheet with filters applied?
    By notoriouscwe in forum Excel General
    Replies: 2
    Last Post: 06-25-2010, 08:13 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