Alternative to textjoin for this function to work

Jfawcett

New Member
Joined
Aug 26, 2020
Messages
4
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I have the following function which works great on my laptop with the updated version of excel, however my computer at work has an older version and textjoin results in a NAME error.

These are the functions

=TEXTJOIN(", ",,IFERROR(SMALL(IF(E5:AA5=0,$E$1:$AA$1),{1;2;3}),""))
and
=TEXTJOIN(", ",,IFERROR(INDEX($E$2:$AA$2,N(IF(1,SMALL(IF(E5:AA5=0,$E$1:$AA$1),{1,2,3})))),""))

Thanks for your help and any suggestions
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
There is no alternative in older versions of excel, the best that you could do would be to use a UDF (custom function written in vba). For example
VBA Code:
Function aconcat(a As Variant, Optional sep As String = "") As String
    ' Harlan Grove, Mar 2002
    ' With a minor edit to ignore blanks
Dim y As Variant
If TypeOf a Is Range Then
    For Each y In a.Cells
        If Len(y.Value) > 0 Then aconcat = aconcat & y.value & sep
    Next y
ElseIf IsArray(a) Then
    For Each y In a
        If Len(y) > 0 Then aconcat = aconcat & y & sep
    Next y
Else
    aconcat = aconcat & a & sep
End If
    If Len(aconcat) > 0 Then aconcat = Left(aconcat, Len(aconcat) - Len(sep)) Else aconcat = ""
End Function

I think that these are correct but haven't tested them. Both will need to be array confirmed with Ctrl Shift Enter.

=ACONCAT(IFERROR(SMALL(IF(E5:AA5=0,$E$1:$AA$1),{1;2;3}),""),", ")
and
=ACONCAT(IFERROR(INDEX($E$2:$AA$2,N(IF(1,SMALL(IF(E5:AA5=0,$E$1:$AA$1),{1,2,3})))),""),", ")
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,901
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top