+ Reply to Thread
Results 1 to 7 of 7

Dynamic comma delimited list

  1. #1
    Registered User
    Join Date
    08-28-2019
    Location
    Missouri, USA
    MS-Off Ver
    2016
    Posts
    7

    Dynamic comma delimited list

    I'm trying to create dynamic selections by entering text "x" into the spreadsheet cells. It will pull from an array? to create a comma delimited list that will change if I add/remove selections. I didn't think this would be that difficult, but my limited knowledge is showing. Below is an example of how it would work/look. Could anyone please help me on this?
    array.jpg
    Last edited by coolkev99; 05-27-2020 at 02:45 PM. Reason: Admins wanted me to replace unclear title.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,471

    Re: Concat, Textjoin, Xlookup, ???

    Try:
    Please Login or Register  to view this content.
    If more than 4 items, VBA is best choice.
    Quang PT

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,904

    Re: Concat, Textjoin, Xlookup, ???

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    UK
    MS-Off Ver
    365
    Posts
    505

    Re: Concat, Textjoin, Xlookup, ???

    I don't have dynamic arrays here at work, so can't check but trying something along the following approach: =TEXTJOIN(“, ”,TRUE,IF(criteria_range=“X”,A2:A26,“”))

  5. #5
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    UK
    MS-Off Ver
    365
    Posts
    505

    Re: Concat, Textjoin, Xlookup, ???

    btw - =TEXTJOIN(“, ”,TRUE,IF(criteria_range=“X”,result_range,"")) will have to be array-entered this with Ctrl+Shift+Enter

    a formula that might work without would be maybe: =TEXTJOIN(", ",TRUE,FILTER(result_range,criteria_range="X","") - give it a try

  6. #6
    Registered User
    Join Date
    08-28-2019
    Location
    Missouri, USA
    MS-Off Ver
    2016
    Posts
    7

    Re: Concat, Textjoin, Xlookup, ???

    I will try this, and I think it will be sufficient. I will follow up later.

  7. #7
    Registered User
    Join Date
    08-28-2019
    Location
    Missouri, USA
    MS-Off Ver
    2016
    Posts
    7

    Re: Concat, Textjoin, Xlookup, ???

    Quote Originally Posted by bebo021999 View Post
    Try:
    Please Login or Register  to view this content.
    If more than 4 items, VBA is best choice.

    This worked great, however it leaves a trailing comma. Not a real big deal but I thought I'd try to avoid it. I found a custom function that worked great within the cell, however if there is nothing then it throws an error.

    Works like this:
    Please Login or Register  to view this content.
    So then we have:
    Please Login or Register  to view this content.
    This all works great until there is nothing in the cell. Then I get the #VALUE! error. Anyone have an idea how to fix this from happening?

+ 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. XLOOKUP availability?
    By PeteABC123 in forum Excel General
    Replies: 8
    Last Post: 10-22-2020, 06:10 PM
  2. Can xlookup function be used in VBA?
    By jaryszek in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-22-2020, 02:20 AM
  3. Xlookup for first word in cell?
    By haskenazi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-06-2020, 02:05 PM
  4. Trying to use TEXTJOIN or CONCAT but need to format a date within it
    By brazendynamic in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-01-2020, 04:02 PM
  5. [SOLVED] Total value that matches the state abbreviation using XLOOKUP and SUM
    By jsagolf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-16-2020, 04:39 PM
  6. Sum Function with Xlookup
    By sawaccouniting in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2020, 10:10 PM
  7. CONCAT/TEXTJOIN on Variable Number of Cells
    By OlYeller21 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-10-2019, 06:29 AM

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