+ Reply to Thread
Results 1 to 10 of 10

Cell which displays the filter in use as text

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Cell which displays the filter in use as text

    Hi,
    I have never seen this before so I don’t know if this is possible or not...

    I require a formula that displays as text the filter criteria which has been applied to a data table.

    For instance as an example in the attached I have applied the following filters:
    Product:
    Energikare and S4
    Spacer:
    Swiss
    Thg/Ann:
    Toughened and Annealed
    Textured?:
    Textured
    Georgian:
    Georgian and No Georgian

    I would there like the following cells to display the following:
    Cell C2: Energikare and S4
    Cell C3: Swiss
    Cell C4: Toughened and Annealed
    Cell C5: Textured
    Cell C6: Georgian and No Georgian

    Basicallly, I would need the cell to display the name if the box is ticked from the drop down filter.
    If all products are ticked I would like it to display All Products rather than EnergiKare and Laminated and Other and S4 and Tripple Glazed.

    I have uploaded an example file, the formula is needed in the yellow cells.

    Can anyone help please?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Cell which displays the filter in use as text

    I am worried that this will get pushed down the list without a solution being found so I thought i best explain what I am trying to achieve...

    I require the formaulas to display what filters are in place as this will be used for my chart title. If anyone has any other ideas how to do this please advise...

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Cell which displays the filter in use as text

    Will have something ready for you by tomorrow.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Cell which displays the filter in use as text

    If you used Advanced Filter instead of AutoFilter, the criteria range would show exactly how you're filtering.

    http://www.contextures.com/xladvfilter01.html
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Cell which displays the filter in use as text

    Hi,

    @Arlu1201 I apprechiate it - I will be keen to see what you come up with.

    @Shg, this may be the option I have to go down, I will wait to see what Arlu1201 comes back with first. I have done something simiar to this recently so I understand the logic - I would prefer a standard filter mind you but I am open to either method. Thanks for sharing the link

  6. #6
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Cell which displays the filter in use as text

    One i've found (on here?) some time ago.
    Apply filter, then click red button to show criteria.
    Attached Files Attached Files
    Last edited by WHER; 01-20-2012 at 07:09 PM.

  7. #7
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Cell which displays the filter in use as text

    This is what I am after - does anyone know how I could adapt this macro so it wouldnt show in a message box but somewhere on the sheet? I would also like it so you didnt have to click the button to operate the macro if this is possible?

    Can this part be expanded on so that rather than it display "Column A" (as in the code below) it displays the column headings e.g. Product, Spacer etc?
    Please Login or Register  to view this content.

  8. #8
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Cell which displays the filter in use as text

    Hi,

    Any luck Arlu1201?

  9. #9
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Cell which displays the filter in use as text

    The attachment in post #6 is modified to reflect your remarks.
    Clicking the button remains necessary.

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Cell which displays the filter in use as text

    Sorry, i was travelling and couldnt work on it. Will try something shortly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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