+ Reply to Thread
Results 1 to 13 of 13

TextJoin in a table doesn't seem to work

  1. #1
    Registered User
    Join Date
    03-30-2017
    Location
    Tuxedo Park
    MS-Off Ver
    Office 365
    Posts
    4

    TextJoin in a table doesn't seem to work

    I have a sheet that is formatted as a table, 3 columns that I want to join...First Name, MI, and Last Name. Not all fields have a MI. All 3 columns are formatted as text fields.

    Here's the formula: =TEXTJOIN(" ",TRUE,D2,F2,E2)

    For some reason it doesn't join the 3 columns in a fourth column. Concatinate doesn't work as well.

    I'm using EXCEL 16 from Office 365.

    Any ideas?

    Larry

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: TextJoin in a table doesn't seem to work

    TEXTJOIN is a function that is available only in Office 365, which I do not have. However, in reading the specification, it appears that you have used it correctly. But what does "doesn't join" mean? What result do you get? CONCATENATE(D2,F2,E2) should also work.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    03-30-2017
    Location
    Tuxedo Park
    MS-Off Ver
    Office 365
    Posts
    4

    Re: TextJoin in a table doesn't seem to work

    Doesn't join means the formula was left in the cell.

    However, I tried your suggestion with concatenate and it worked. I had to put a " " after the D2 to add a space before the Middle initial. The disadvantage to this method is that if there is no Middle initial, it puts 2 spaces between the first and last name.

    Thanks,

    This result is acceptable.

    Larry

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: TextJoin in a table doesn't seem to work

    so use TRIM(CONCATENATE(...))

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: TextJoin in a table doesn't seem to work

    Larry

    I tried TEXTJOIN in a table and it worked without a problem.

    If you were seeing the formula that suggests there's something else going on.

    How was the cell formatted?

    Is calculation set to automatic?

    Do you have the sheet set to display formulas?
    If posting code please use code tags, see here.

  6. #6
    Registered User
    Join Date
    03-30-2017
    Location
    Tuxedo Park
    MS-Off Ver
    Office 365
    Posts
    4

    Re: TextJoin in a table doesn't seem to work

    Cells were all formatted text
    Calculation is automatic
    Sheet is not set to display formulas.

    Any other ideas? This has happened to me on a couple other spreadsheets.

    Larry

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: TextJoin in a table doesn't seem to work

    Larry

    The cell shouldn't be formatted as Text.

    If I format a cell as Text and enter your original formula in it all I get is the formula.

    If I then set the format to General, hit F2 and end re-enter the formula it works.

  8. #8
    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: TextJoin in a table doesn't seem to work

    I encounter this frequently. I have not found a reason to format anything as 'Text' ... so far.

    Try formatting the cells 'General'. Then re-enter the formula from edit mode.
    Dave

  9. #9
    Registered User
    Join Date
    03-30-2017
    Location
    Tuxedo Park
    MS-Off Ver
    Office 365
    Posts
    4

    Re: TextJoin in a table doesn't seem to work

    Thanks. That did it.

    Larry

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: TextJoin in a table doesn't seem to work

    Quote Originally Posted by Bearco View Post
    Cells were all formatted text
    Well, that's the classic cause right there. Although if that's true the CONCATENATE formula shouldn't have worked either.

    Quote Originally Posted by FlameRetired View Post
    I have not found a reason to format anything as 'Text' ... so far.
    Credit card numbers.

  11. #11
    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: TextJoin in a table doesn't seem to work

    Quote Originally Posted by 6StringJazzer View Post
    Credit card numbers.
    Ahhh! I never thought of that. Thank you. Mystery solved.

  12. #12
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: TextJoin in a table doesn't seem to work

    Quote Originally Posted by FlameRetired View Post
    Ahhh! I never thought of that. Thank you. Mystery solved.
    Here's another one: WBS numbers. They are decimalized outline notation like:

    1
    1.1
    1.1.1
    1.1.2
    1.2
    1.2.1
    1.2.2
    2
    2.1

    And when there are zero or one decimal points, Excel treats them like numbers, but when more than 1, like text. I want them all to be treated like text so they sort properly.

  13. #13
    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: TextJoin in a table doesn't seem to work

    Another good one.

    It also explains why I have almost never had cause to use it.

    So unlike other formats 'Text' formatting can affect values.

    Thanks again.

+ 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. [SOLVED] Copying filtered table doesn't work as it is expected in Excel 2010
    By abbassi in forum Excel General
    Replies: 2
    Last Post: 06-29-2014, 01:57 AM
  2. Updating a pivot table with VBA from Drop down list (1st item doesn't work)
    By tray262 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-25-2013, 02:32 PM
  3. Static date doesn't work if I use form to fill a table
    By Numbi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2013, 07:36 AM
  4. [SOLVED] Prereq table reverse... VLOOKUP doesn't work
    By Hambone70 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-24-2013, 01:29 PM
  5. Replies: 3
    Last Post: 07-01-2012, 09:38 AM
  6. Conditional formatting applied to a pivot table doesn't work as it should
    By Pichingualas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2012, 07:43 AM
  7. Replies: 0
    Last Post: 02-24-2006, 07:50 AM

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