+ Reply to Thread
Results 1 to 23 of 23

Filter using Match and Search? Filter with multiple conditions HELP!

  1. #1
    Registered User
    Join Date
    12-18-2023
    Location
    England
    MS-Off Ver
    Excel for web
    Posts
    12

    Filter using Match and Search? Filter with multiple conditions HELP!

    I am trying to make a searchable 'database' for my freelance work, which is finding charitable funders.

    I want to input some search terms or numbers into a 'front-end sheet' and have the FILTER function find me only the info from that.

    I have data as an example below and my question is how would I write the formulae, so that it will always filter based on the first column SIZE OF GRANT, as well as filtering partial text based on text in columns we would write.


    As per the attached, those front-end examples should filter to show me only funders A and D, because they both meet the SIZE OF GRANT criteria of 5000 or above, AND both includes EITHER the words "art" or "building". But I am not sure what formulae I need to do this.


    I have used the ISNUMBER(SEARCH functions and ISNUMBER(MATCH but match only finds the exact terms, whereas I want it to find partial text e.g. typing the building would find columns that say "building projects". The SEARCH function does this but it DOESN'T let me do it for more than 1 criteria as far as I can tell it?
    Attached Files Attached Files
    Last edited by GiftedKB; 12-18-2023 at 01:04 PM. Reason: attached example

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen

  3. #3
    Registered User
    Join Date
    12-18-2023
    Location
    England
    MS-Off Ver
    Excel for web
    Posts
    12

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    Thank you I have attached a clear example

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    Something like what I did in post #5 here?
    https://www.excelforum.com/excel-gen...ml#post5900881
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  5. #5
    Registered User
    Join Date
    12-18-2023
    Location
    England
    MS-Off Ver
    Excel for web
    Posts
    12

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    Unfortunately I dont think that's what I need. On your example it doesn't find partials and I also can't replicate the formulae on the version of Excel for web i'm using?

    Is there a way to combine Match and Search functions do you know?

  6. #6
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    F2=filter(a3:c6,(b3:b6>=b10)*(isnumber(search(c10,c3:c6)))+(isnumber(search(c11,c3:c6))))

  7. #7
    Registered User
    Join Date
    12-18-2023
    Location
    England
    MS-Off Ver
    Excel for web
    Posts
    12

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    thats perfect!!! is there anyway to make those isnumber(search formulaes just 1 big formulae that accounts for both c10 and c11 (as there could be many), instead of simply doing +isnumber(search etc?

  8. #8
    Registered User
    Join Date
    12-18-2023
    Location
    England
    MS-Off Ver
    Excel for web
    Posts
    12

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    also, using that formulae, if you have nothing in the category search bar, it comes up with everything. the same is if there is a search term in c11 but nothing in c12, it comes up with everything too. It's almost as if it's saying "if there's nothing in here, we'll ignore the search and filter on everything"

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,903

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    Is there anything else about the 'real' data and its potential layout that we need to know? Each new disclosure could be a spanner in the works. If cells could be filled or empty, then you perhaps need to offer two or three scenrios to show what you would want to happen in each case.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Registered User
    Join Date
    12-18-2023
    Location
    England
    MS-Off Ver
    Excel for web
    Posts
    12

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    just that you might be looking for funders which could encompass different things. e.g. a new hospital ward project, i would maybe search for categories of "health" as well as "building" to try and find funders who fund one, or both, of these types of projects. I suspect the list won't be any longer than 5 'categories' they could search for at any given time so the formulae adaptation could be an extension of the above, but it needs to work where it doesn't include any blank cells.

    so for example, the formulae above needs to have the AND/OR functions nested somehow, where the first one of >= is ALWAYS present, and then follows multiple ORs of the SEARCH( formulaes.

    eg. FILTER( range, >=search cell) AND ANY OR ALL OF THE FOLLOWING (search xxxx

  11. #11
    Registered User
    Join Date
    12-18-2023
    Location
    England
    MS-Off Ver
    Excel for web
    Posts
    12

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    I realise I might not be making sense in my confusion so i've put some context if that helps!

    You are looking for potential funders for a charity who want to build a new childrens hospital ward in the UK.

    To do this, you would go into this excel 'database' and first put in the lowest grant size you'd want e.g. 5000.

    Next, you want to filter all the potential funders by the category, which means the sort of work they could fund, to rule out completely irrelevant ones e.g. funders who ONLY fund work in Uganda.

    To do this, you might start searching on categories like "Health" or you might then try "Health" and "building".

    Doing so would bring up any funders who's lowest grant size is 5000 or above, that ALSO have a category of "health", of "building" or fund both "health" and "building" work.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,903

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    How much flexibility is there? Your data layout is not optimum for these searches because it's not normalised.

  13. #13
    Registered User
    Join Date
    12-18-2023
    Location
    England
    MS-Off Ver
    Excel for web
    Posts
    12

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    total flexibility as it's creating this from scratch so i'm open to any and all suggestions! the key thing is being able to search for multiple potential terms at once. kind of like your brain dump of "hmm what kind of funders might be interested in this" thank you for your help!

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,903

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    That's good!

    OK, then the first thing is that you need ONE row per record. So, instead of this:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    2
    FUNDER NAME GRANT SIZE CATEGORY
    3
    A
    5000
    Health, Art
    4
    B
    2000
    Environment, Art
    5
    C
    5000
    Health, Cancer
    6
    D
    5000
    Building Project
    Sheet: Sheet1

    have your data entered like this:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    2
    FUNDER NAME GRANT SIZE CATEGORY
    3
    A
    5000
    Health
    4
    A
    5000
    Art
    5
    B
    2000
    Environment
    6
    B
    2000
    Art
    7
    C
    5000
    Health
    8
    C
    5000
    Cancer
    9
    D
    5000
    Building Project
    Sheet: Sheet1

    This is normalised: one row per record.

    Suddenly your filtering becomes ridiculously easy (if the data is in Excel table format, you can use slicers).

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

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    Try this (delete expected results first):

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Adjust the keyword list (red) to be as long as needed.
    Attached Files Attached Files
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,903

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    Attached is your normalised data with multi-select slicers added.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    12-18-2023
    Location
    England
    MS-Off Ver
    Excel for web
    Posts
    12

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    that formulae is EXACTLY what i needed thank you so so much!! and the multi-select table is something i didn't even know you could do in excel!! can't thank you enough!

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,903

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    Have you seen the slicer idea? It would be nice to get feedback, even if it's not what you want.

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

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  20. #20
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,903

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    Thanks for the kind rep comment. Glad it helped!

  21. #21
    Registered User
    Join Date
    12-18-2023
    Location
    England
    MS-Off Ver
    Excel for web
    Posts
    12

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    yes the slicer is super intuitive and a great addition very helpful

    I'll take away to the team and get cracking! In hindsight I'll probably need to add to this to also include location as a searchable column, in the same way the categories work i.e. i type in a list of options like UK, US, Global and filters on that too

  22. #22
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,903

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    In terms of the slicer, you just add a slicer for the new column (Insert > Slicer - with the table selected) and set it to multi-select.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  23. #23
    Registered User
    Join Date
    12-18-2023
    Location
    England
    MS-Off Ver
    Excel for web
    Posts
    12

    Re: Filter using Match and Search? Filter with multiple conditions HELP!

    just done that thank you

    I may be back in the new year with help on the brackets to add in an additional search function! haha

+ 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. [SOLVED] Filter with multiple conditions
    By andrewc in forum Excel General
    Replies: 8
    Last Post: 07-22-2023, 11:20 AM
  2. Replies: 1
    Last Post: 04-23-2020, 03:44 PM
  3. Replies: 2
    Last Post: 10-07-2013, 04:57 AM
  4. Great Combo Filter/Search form, cant get DATE filter to integrate. HELP
    By fau5tu5 in forum Access Programming / VBA / Macros
    Replies: 4
    Last Post: 05-18-2009, 05:05 PM
  5. COUNTIF with multiple conditions and filter
    By danriley22 in forum Excel General
    Replies: 5
    Last Post: 07-15-2008, 04:49 PM
  6. Replies: 4
    Last Post: 09-28-2005, 07:05 PM
  7. Advance filter search does not filter an exact match
    By cfiiland in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2005, 08:05 AM

Tags for this Thread

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