+ Reply to Thread
Results 1 to 7 of 7

Help with the filter function.

  1. #1
    Registered User
    Join Date
    08-18-2010
    Location
    San Diego, California
    MS-Off Ver
    Excel 2010
    Posts
    3

    Help with the filter function.

    Is there anyway to group similar objects under one name in the filter? Example: \1
    Ideally, I would like to define that chicken, pork, and beef are all part of "meat" which would appear from the drop down menu in the filter.
    Thanks!

  2. #2
    Registered User
    Join Date
    08-18-2010
    Location
    Denver, CO
    MS-Off Ver
    Excel/Access 2010
    Posts
    8

    Re: Help with the filter function.

    One possible solution would be to set up a lookup chart on another worksheet, like this:

    Please Login or Register  to view this content.
    Then, make a new column on the original sheet that uses a VLOOKUP to reference this table. Finally, you can run your filter on this new column.

  3. #3
    Registered User
    Join Date
    08-18-2010
    Location
    San Diego, California
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help with the filter function.

    Thanks for the quick reply
    What if the object is not the only data in the cell? For instance, if the cell said "chicken with pepper" I would still want that under meat. Is there a way to make every cell containing the word chicken to appear under meat? In other words, can I make a filter based on key words?
    Thanks

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Help with the filter function.

    You need a column with the groups in then enter the group beside each product. Filter that column
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    08-18-2010
    Location
    San Diego, California
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help with the filter function.

    The problem is I have much more than just one item in a cell. For instance, I could have chicken, carrots, apples, and water all in the same cell. However, I don't want to create a "meat, vegetable, fruit, and drink" group. I would simply like to create a "contains" filter. If an object contains chicken, it should appear when I filter by meat, even if there are other objects in the cell.
    Thanks

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with the filter function.

    Quote Originally Posted by justifiedcandy View Post
    Thanks for the quick reply
    What if the object is not the only data in the cell? For instance, if the cell said "chicken with pepper" I would still want that under meat. Is there a way to make every cell containing the word chicken to appear under meat? In other words, can I make a filter based on key words?
    Thanks
    If your lookup list is in say X1:Y100

    then

    Please Login or Register  to view this content.
    this searches each element in X1:X100 and tries to find it in your cell containing "Chicken and Pepper" and then returns the corresponding item in Y1:Y100 where the first match occurred... (note, if Pepper is in your lookup column too.. and it comes first, it will match that one up).
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Help with the filter function.

    You can't filter like that, you need a category column to filter by.

    Maybe you can attach a dummy workbook

+ 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