+ Reply to Thread
Results 1 to 8 of 8

Comma seperated Filter Criteria Issue

  1. #1
    Registered User
    Join Date
    07-23-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 365
    Posts
    20

    Comma seperated Filter Criteria Issue

    I am working on a spreadsheet in excel which looks in a specific cell (L5) for a section, and then it pulls information from another tab using a filter to show that as part of a table. I use the formula below (multiple times to pull different parts of the table) so that I can enter values and do calculations using information the end user enters, as well as with information from the table.

    Please Login or Register  to view this content.
    At the moment this works if L5 contains one phrase, but ultimately what I would like to be able to do is have L5 contain multiple comma seperated phrases, and then be able to pull each relevant section from the table.

    As an example of the layout of the table, it may look something like the below:

    Item $/Qty Markup Section
    A $100 1.0 1
    B $25 1.0 2
    C $1 1.35 2
    D $1000 1.50 3

    What I am trying to achieve as an example is having a comma seperated list, so in L5 I could have 1,2 and it would return A,B & C in the filter, or if I had 2,3 in that comma seperated list the filter would generate the table with B,C & D entries. The issue is that I am having no luck at all getting the formula to work when I have a comma seperated list in L5, does anyone have any idea how this formula above could be amended to be able to return the filter table with all of the items that are referenced in L5?

    I had hoped I might be able to work it out but after going around and around in circles including trying CoPilot, I have had no luck at all.

  2. #2
    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
    81,086

    Re: Comma seperated Filter Criteria Issue

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.

    Your profile is out-of-date - FILTER is not available in Excel 2003. Please update this NOW. Thanks.
    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.

  3. #3
    Registered User
    Join Date
    07-23-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Comma seperated Filter Criteria Issue

    Thanks for your help, I have updated my profile and also uploaded an example spreadsheet.
    This is part of a quoting tool I am working on creating, but basically In my example spreadsheet, I am really aiming to be able to pick a comma seperated list from L5 of the Calculator tab, and have the filter pick up every entry from Supportging Information where any of the entries are in the H column, so for example if I have SV,RP in L5 it would show entries that are either SV or RP.

    Ideally I would love to do this without a macro / VBA, works on a single entry but not when there are multiple entries.
    I am using comma as a delimiter, but I can change that to whatever if it makes life easier.

    Cheers
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,585

    Re: Comma seperated Filter Criteria Issue

    This proposal adds helper four cells M5:P5 which may be hidden for aesthetic purposes.
    The helper cells are populated with formulas like: =MID(L5,1,2)
    The results, shown in columns J:P, are yielded using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    07-23-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Comma seperated Filter Criteria Issue

    Thanks so much for looking at this, it gives me a great starting point to get it all working now without VBA which is amazing!
    I might move those helper cells into the supporting sheet and then I can just hide the whole sheet (less chance of people breaking things)

  6. #6
    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
    81,086

    Re: Comma seperated Filter Criteria Issue

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward 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.

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

    Re: Comma seperated Filter Criteria Issue

    Supporting Information

    A11=CHOOSECOLS(FILTER('Supporting Information'!A2:H100,ISNUMBER(MATCH('Supporting Information'!H2:H100,TEXTSPLIT(Calculator!L5,","),0)),""),1,2,3,4,6,8)
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,585

    Re: Comma seperated Filter Criteria Issue

    You're Welcome and thank you for the feedback. I hope that you have a blessed day.

+ 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] First Five from Comma Seperated Cell
    By mauricem in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-14-2023, 04:07 AM
  2. [SOLVED] Name (Value) in comma seperated list
    By sl968 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-16-2020, 05:52 PM
  3. Creating a comma seperated list based on a search criteria from a column
    By HUGH JORGAN in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2013, 05:20 PM
  4. Comma Seperated Value Files
    By TheRevenant in forum Excel General
    Replies: 4
    Last Post: 06-12-2013, 01:22 AM
  5. Data Filter (comma seperated cells)
    By Hellix2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2013, 01:39 PM
  6. Have 300 cells, want them in one, seperated by comma
    By AdamParker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2009, 01:58 PM
  7. How to split a value seperated by comma?
    By Ticktockman in forum Excel General
    Replies: 2
    Last Post: 03-23-2006, 12: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