+ Reply to Thread
Results 1 to 17 of 17

Filtering Question

  1. #1
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Filtering Question

    I have auto filtered Column S. Cell S1 has the drop down list showing my criteria. I need to control S1 selection from A1 on the same sheet. How do I make this work?

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Filtering Question

    Is A1 an entry or a formula?
    Gary's Student

  3. #3
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Re: Filtering Question

    its an entry.

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Filtering Question

    I have attached a sample based upon a macro solution. Load the file, enable macros, and then make an entry in cell A1. We can adapt this to your actual needs.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Re: Filtering Question

    Perfect. I can place a list in A1 and it will control my filter. What are the steps to get this macro into my file. Copy Paste?

  6. #6
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Filtering Question

    First here is the macro:

    Please Login or Register  to view this content.

    Because it is worksheet code, it is very easy to install and automatic to use:

    1. right-click the tab name near the bottom of the Excel window
    2. select View Code - this brings up a VBE window
    3. paste the stuff in and close the VBE window

    If you have any concerns, first try it on a trial worksheet.

    If you save the workbook, the macro will be saved with it.


    To remove the macro:

    1. bring up the VBE windows as above
    2. clear the code out
    3. close the VBE window

    To learn more about macros in general, see:

    http://www.mvps.org/dmcritchie/excel/getstarted.htm

    To learn more about Event Macros (worksheet code), see:

    http://www.mvps.org/dmcritchie/excel/event.htm

    Macros must be enabled for this to work!

  7. #7
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Re: Filtering Question

    https://docs.google.com/open?id=0B8f...G9RdVlMOG5XQk0

    Please see attached error. Thanks

  8. #8
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Filtering Question

    Here is the missing macro:

    Please Login or Register  to view this content.
    This macro goes in a standard module:


    Macros are very easy to install and use:

    1. ALT-F11 brings up the VBE window
    2. ALT-I
    ALT-M opens a fresh module
    3. paste the stuff in and close the VBE window

    If you save the workbook, the macro will be saved with it.

    To remove the macro:

    1. bring up the VBE window as above
    2. clear the code out
    3. close the VBE window

    This macro will be called from the first one that you have already installed.

    To learn more about macros in general, see:

    http://www.mvps.org/dmcritchie/excel/getstarted.htm

    Macros must be enabled for this to work!

  9. #9
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Re: Filtering Question

    ** FINALLY!, I figured it out, thanks for your help. Do you know of a code for a reset feature, that would clear all filters?
    Last edited by SZBELL; 10-15-2012 at 11:21 PM.

  10. #10
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Filtering Question

    tomorrow...................

  11. #11
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Filtering Question

    If you empty A1, the filter will be "cleared" (that is all rows will be displayed)

  12. #12
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Re: Filtering Question

    How do I add additional cells like a1? Do i have to create another Macro?

  13. #13
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Re: Filtering Question

    Let me ask this a different way. I would like to add the same filtering ability but with a different column in a different cell. What do I have to add to do this, with out losing what we already have.

  14. #14
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Filtering Question

    It would involve a modification to the existing macro. Of course, we need the details - which trigger cells and what filter functions.

  15. #15
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Re: Filtering Question

    filtering cell would be d3, with Y:9 - Y201 data.

  16. #16
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Re: Filtering Question

    I cant seem to filter both cells..

    Please Login or Register  to view this content.



    Please Login or Register  to view this content.

  17. #17
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Re: Filtering Question

    is this possible?

+ 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