+ Reply to Thread
Results 1 to 9 of 9

Custom Filter

  1. #1
    Registered User
    Join Date
    04-01-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Custom Filter

    I have an Excel 2010 sheet and I would like to select a cell and filter the entire sheet only showing the rows that contain that info. I have attached some sample data. For example I would select the cell that has "Lighting" in it and then show only the rows that have the word lighting somewhere in them. I can then undo that filter and this time maybe select a cell that has "Jets" in it and just show the rows that have Jets somewhere in it.

    I did start a thread in the formulas and functions section and it was suggested that I post here. Below is the post.

    http://www.excelforum.com/excel-form...filtering.html

    I am no VBA expert, so any suggestions/ideas would be appreciated.

    Thanks

    Excel Filter.JPG

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Custom Filter

    Hi MIdnight,

    You need to attach a sample EXCEL file instead of a picture file so we can have some sample data to deal with. Click on "Go Advanced" and then the Paper Clip Icon above the Advanced Message area to get to the correct dialog.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Custom Filter

    Try this for data in column "D to H"
    Right click Value in that range for other rows to be hidden.
    Right click column "A" to unhide rows.
    Please Login or Register  to view this content.
    Regards Mick
    Last edited by MickG; 05-06-2014 at 11:30 AM.

  4. #4
    Registered User
    Join Date
    04-01-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Custom Filter

    Boy Mick, that is really close. I extended the range to go from column D to AC. Attached is actual data. I selected cell M1 for the filter "4x LED's /Northern Lights". I did get some rows that don't have that. It's real colse Mick, thanks for your effort.
    Attached Files Attached Files

  5. #5
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Custom Filter

    Change the Set Rng--, line, to line below:-
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-01-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Custom Filter

    Thanks Mick. I changed the line. Please see attached. I select cell H4, (EZ - Ultra Pure Ozone System) therefore I should see rows 4,5 and 6 after the filter. Lines 5 and 6 disappear. As you can see it's also in cells G5 and G6. It looks as though it's only filtering in the column that I'm in.

    This is really close and I do thank you for the effort.

    Mike
    Attached Files Attached Files
    Last edited by Midnight251; 05-06-2014 at 04:26 PM.

  7. #7
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Custom Filter

    Try this:-
    Please Login or Register  to view this content.
    Regards Mick

  8. #8
    Registered User
    Join Date
    04-01-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Custom Filter

    Mick, that seems to have done the trick. Thank you so much. I hope I can return the favour some day. Thanks again.

  9. #9
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Custom Filter

    You're welcome

+ 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: 3
    Last Post: 09-07-2009, 06:28 AM
  2. VBA - Custom Filter
    By leelikchi in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-02-2008, 05:36 AM
  3. [SOLVED] Custom Filter
    By Shams in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-11-2006, 03:40 PM
  4. [SOLVED] Custom Filter
    By Rao Ratan Singh in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 06-16-2006, 08:40 AM
  5. Custom Filter using more than two 'OR'
    By GLT in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2006, 02:25 PM

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