textjoin()

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
In the table below, what I did is something different from the orginal example 3 in Microsoft page. I did =TEXTJOIN($A$8:$D$8,TRUE,A2:D2)
the autofill the reset of the column. MS page did this =TEXTJOIN(A8:D8, TRUE, A2:D7) - the link below please.
My question, in my case why ";" was not added to the end of each line in column D? Thank you very much.

PS: i do not see big advantage of textjoin() to concatenate() ? Thanks


Book2
ABCDEF
1CityStatePostcodeCountry
2TulsaOK74133USTulsa,OK,74133,US
3SeattleWA98109USSeattle,WA,98109,US
4IselinNJ8830USIselin,NJ,8830,US
5Fort LauderdaleFL33309USFort Lauderdale,FL,33309,US
6TempeAZ85285USTempe,AZ,85285,US
7endend
8,,,;
Sheet1
Cell Formulas
RangeFormula
F2:F7F2=TEXTJOIN($A$8:$D$8,TRUE,A2:D2)
 
Last edited:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
because you join row by row and delimiter only added in-between to add at the End =TEXTJOIN($A$8:$D$8,TRUE,A2:D2)&";"
count wrd.xlsx
ABCDEF
1CityStatePostcodeCountry
2TulsaOK74133USTulsa,OK,74133,US;
Sheet3
Cell Formulas
RangeFormula
F2F2=TEXTJOIN($A$8:$D$8,TRUE,A2:D2)&";"


or move";"
count wrd.xlsx
ABCDEF
1CityStatePostcodeCountry
2TulsaOK74133USTulsa,OK,74133;US
3,,;
Sheet3
Cell Formulas
RangeFormula
F2F2=TEXTJOIN($A$3:$C$3,TRUE,A2:D2)
 
Upvote 0
Solution
You can also Use array As {",",",",";"}

Book1
ABCDEF
1CityStatePostcodeCountryResult
2TulsaOK74133USTulsa,OK,74133;US
Sheet1
Cell Formulas
RangeFormula
F2F2=TEXTJOIN({",",",",";"},TRUE,A2:D2)
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,479
Members
448,967
Latest member
visheshkotha

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