Results 1 to 10 of 10

Error Using TEXTJOIN Function in Array Formula to List Non-empty Strings

Threaded View

  1. #3
    Registered User
    Join Date
    04-15-2019
    Location
    Bedford
    MS-Off Ver
    Office 16
    Posts
    7

    Re: Error Using TEXTJOIN Function in Array Formula to List Non-empty Strings

    CK76,

    Here it is:

    Function TEXTJOIN(delimiter As String, ignore_empty As Boolean, ParamArray cell_ar() As Variant)
    For Each cellrng In cell_ar
    For Each cell In cellrng
    If ignore_empty = False Then
    result = result & cell & delimiter
    Else
    If cell <> "" Then
    result = result & cell & delimiter
    End If
    End If
    Next cell
    Next cellrng
    TEXTJOIN = Left(result, Len(result) - Len(delimiter))
    End Function
    Thanks,
    Mike
    Last edited by AliGW; 04-16-2019 at 05:21 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. TEXTJOIN array for cells with functions in them (bug?)
    By Allerdrengen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-02-2018, 05:24 AM
  2. [SOLVED] How can I modify my array TEXTJOIN formula to output only unique values
    By Victorjo in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-06-2018, 01:50 AM
  3. [SOLVED] TextJoin formula with MID function
    By Brsth in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-26-2018, 11:00 AM
  4. TEXTJOIN function
    By Tony Valko in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2016, 06:48 PM
  5. using the split function on an array of strings
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2013, 12:52 AM
  6. Datalabel.Text randomly returns empty strings in a recursive function
    By Miragel in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-17-2012, 06:17 PM
  7. search for a part of string within an array of strings from another array list
    By jdonohue in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2011, 01:32 PM

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