+ Reply to Thread
Results 1 to 5 of 5

Define a cell with parameters from another cells to create a filter

  1. #1
    Registered User
    Join Date
    03-07-2022
    Location
    Berlin
    MS-Off Ver
    365
    Posts
    2

    Red face Define a cell with parameters from another cells to create a filter

    Hello everyone!

    I want to define a cell with several other cells, so that I can then create a filter.
    For example: name of things in the Coloumn A: f.e. “apple" (A1). Column B is for parameters: "sweet", "round", "fruit" (B1, B2 and B3, respectively).

    I want to somehow "define" A1 with parameters B1-3, so then to make a filter that will work as follows: for example, selecting the parameter "sweet", I will get values from column A, which have these parameters ("apple", "strawberry", "raspberry", etc.).

    I hope I was able to explain what I mean. :D
    If so, maybe someone could help me?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Define a cell with parameters from another cells to create a filter

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: Define a cell with parameters from another cells to create a filter

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    03-07-2022
    Location
    Berlin
    MS-Off Ver
    365
    Posts
    2

    Re: Define a cell with parameters from another cells to create a filter

    Dear Ali, dear Glenn,

    Tank you very much for pointing out my mistake!

    I have attached to my comment what I was trying to explain.

    So I want to create a custom filter that will show me the foods that have the parameters I have chosen. I understand that I need to "link" the parameters from column B to the food names from column A so that I can "define" the A cells.
    For example: I want the filter to show me all the foods that have the parameters "sweet" and "fruit". To do this, I click on the "Select parameters" drop-down menu, select "Fruit" and "Sweet" and I get "Pear" and "Apple" in the E column.

    I hope it was understandable enough.
    Attached Files Attached Files
    Last edited by marmaries; 03-07-2022 at 09:05 AM.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Define a cell with parameters from another cells to create a filter

    It's not a mistake... it's just easier to understand.

    However, using merged cells is a mistake. The best advice on merged cells is to be found here:

    https://excel.solutions/2016/10/usin...ctively-excel/



    Without them you can use:
    =IFERROR(INDEX(H:H,MATCH(K2,I:I,0)),"")

    With them, it's a bit more complicated...
    =IFERROR(INDEX(LOOKUP(ROW($A$3:$A$14),ROW($A$3:$A$14)/($A$3:$A$14>0),$A$3:$A$14),MATCH(D2,$B$3:$B$14,0)),"")
    Attached Files Attached Files

+ 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: 11-02-2018, 03:05 PM
  2. [SOLVED] Define parameters from table
    By wrestlemy69 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2017, 02:46 PM
  3. [SOLVED] Define different filter criteria based on a cell that a user changes
    By DJDRU in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2015, 01:50 PM
  4. define custom filter and filter between TO and FROM values
    By raj soni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2015, 12:14 PM
  5. Define macro parameters using InputBox ?
    By MarianneBE in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2014, 05:04 AM
  6. How we can create a auto trigger email if the cell value reach some define value.
    By kamaesh123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-24-2013, 04:10 AM
  7. How do I transfer User-Defined filter parameters to then filter another column?
    By fiqulupo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2012, 07:05 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