+ Reply to Thread
Results 1 to 2 of 2

Converting TEXTJOIN to CONCATENATE

  1. #1
    Registered User
    Join Date
    04-18-2018
    Location
    Atlanta, GA
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    4

    Converting TEXTJOIN to CONCATENATE

    Does anyone know how to translate =TEXTJOIN(", ",TRUE,IF(COUNTIF(INDIRECT(Sheets[Sheets]&"!1:1048576"),$D5)>0,Sheets[Sheets],"")) into a CONCATENATE function. I do not have a 365 subscription so TEXTJOIN isn't available. Thanks for the help.
    Attached are pictures because the file was too large.

    EnableEditing.PNG
    Protected View.PNG
    Last edited by mattmccormack1; 04-19-2018 at 09:38 AM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Converting TEXTJOIN to CONCATENATE

    You will need VBA in a user defined function (UDF) for this.

    Here is one by tigeravatar.

    Please Login or Register  to view this content.
    If you are not familiar with how to install VBA code:

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the code into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    The syntax of the new formula:

    Concatall(the_array,[optional: separator],[optional: Unique_only True/False])

    This may need to be array entered.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    If performance is slow consider reducing the range in the INDIRECT to just a few more rows than you anticipate needing. While COUNTIF will take whole columns the results are being passed to this UDF. It may be doing a lot of unnecessary work.
    Last edited by FlameRetired; 04-22-2018 at 05:53 PM.
    Dave

+ 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. Removing duplicates from a TEXTJOIN
    By CKPHarry in forum Excel General
    Replies: 5
    Last Post: 01-02-2020, 05:57 PM
  2. Textjoin sometimes works well and sometimes doesnot
    By leprince2007 in forum Office 365
    Replies: 36
    Last Post: 04-03-2018, 07:11 AM
  3. Textjoin?
    By johandenver in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 10-01-2017, 03:18 PM
  4. Using TextJoin (Excel 2016) in VBA
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2017, 06:52 PM
  5. TEXTJOIN only specific words
    By thoart in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2017, 07:56 AM
  6. If Match then return TEXTJOIN
    By Cynops in forum Excel General
    Replies: 1
    Last Post: 11-09-2016, 07:51 AM
  7. TEXTJOIN function
    By Tony Valko in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2016, 06:48 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