+ Reply to Thread
Results 1 to 6 of 6

TEXTJOIN function

  1. #1
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    TEXTJOIN function

    Anyone have the new TEXTJOIN function?

    Will it accept conditional array arguments?

    =TEXTJOIN(",",TRUE,IF(A1:A5="Yes",B1:B5))

    I assume that would have to be array entered.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: TEXTJOIN function

    Yes Tony. This would be the correct syntax for the array entry.
    =TEXTJOIN(",",TRUE,IF(A1:A5="Yes",B1:B5,""))

    Here are some more examples with use of TEXTJOIN and CONCAT functions

    v B C D
    1 City State
    2 Albany NY Albany, Buffalo, New York
    3 Atlanta GA Atlanta, Macon, Duluth
    4 Miami FL Miami, Tampa, Orlando
    5 San Francisco CA San Francisco, Modesto
    6 Buffalo VA Richmond, Norfolk, Winchester
    7 Richmond
    8 Macon
    9 Duluth
    10 Norfolk
    11 New York
    12 Tampa
    13 Orlando
    14 Modesto
    15 Winchester

    CONCAT function (array entry)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    TEXTJOIN
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Non-array versions
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 08-13-2016 at 05:19 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: TEXTJOIN function

    If this was the data...

    Data Range
    A
    B
    1
    No
    Tom
    2
    Yes
    Sue
    3
    No
    Karen
    4
    Yes
    Tracy
    5
    No
    Biff


    And I used this array formula:

    =TEXTJOIN(",",TRUE,IF(A1:A5="Yes",B1:B5))

    What result do we get?

    In the IF function I have not defined a value_if_false argument so it defaults to FALSE.

    Does the TEXTJOIN function ignore those values or would we have to use something like:

    =TEXTJOIN(",",TRUE,IF(A1:A5="Yes",B1:B5,""))

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: TEXTJOIN function

    The formula you used will result in FALSE,Sue,FALSE,Tracy,FALSE
    With this: =MID(CONCAT(IF(A1:A5="Yes",", "&B1:B5,"")),3,8^5)
    you get: Sue, Tracy
    I meant with this: =TEXTJOIN(", ",1,IF(A1:A5="Yes",B1:B5,""))

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: TEXTJOIN function

    Thanks for the info!

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: TEXTJOIN function

    Quote Originally Posted by Tony Valko View Post
    Thanks for the info!
    Appreciate the feedback

+ 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. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  3. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  4. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  5. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  6. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  7. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 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