+ Reply to Thread
Results 1 to 13 of 13

Textjoin, Concat a list of emails if they are in a specific Group. For Office 2016

  1. #1
    Registered User
    Join Date
    05-06-2017
    Location
    Canada
    MS-Off Ver
    Office 365 subscription
    Posts
    44

    Textjoin, Concat a list of emails if they are in a specific Group. For Office 2016

    Edit: Terribly sorry, I just learned that this formula must work with Office 2016

    I already asked about this specific problem and got a solution by the wonderful ALiGW. The solution was this:

    Please Login or Register  to view this content.
    But it uses FILTER as well as TEXTJOIN which are both not available in Office 2016. I tried with INDEX and MATCH but I only get one email address but I need all the matching entries joined as shown in my sample Workbook in Cell F5 - for the example I selected the emails manually, which is obviously not practical.

    I looked for FILTER alternative and found this article, but I can't seem to apply it to my case as the helper column is not well explained, at least for me.

    https://exceljet.net/formula/extract...-helper-column
    Attached Files Attached Files
    Last edited by MinisoftEggshell; 02-16-2022 at 10:38 AM.

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Textjoin, Concat a list of emails if they are in a specific Group. Without "FILTER"

    try

    =TEXTJOIN(CHAR(10),TRUE,REPT($B$2:$B$42,$A$2:$A$42=$E5))

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Textjoin, Concat a list of emails if they are in a specific Group. Without "FILTER"

    Your forum profile says this:

    2016 Office 365
    This is clearly WRONG. Which is it?

    You should not have started a nes thread for this - you should simply have posted the changed requirement in the original thread.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    05-06-2017
    Location
    Canada
    MS-Off Ver
    Office 365 subscription
    Posts
    44

    Re: Textjoin, Concat a list of emails if they are in a specific Group. Without "FILTER"

    Depending on where I work, I use two versions of office. I corrected it in my profile.

    Quote Originally Posted by XLent View Post

    =TEXTJOIN(CHAR(10),TRUE,REPT($B$2:$B$42,$A$2:$A$42=$E5))
    does not work for me, I just get an empty cell.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Textjoin, Concat a list of emails if they are in a specific Group. Without "FILTER"

    You are missing the point. YOu must always tell us the OLDEST version that a solution will have to work with. FILTER is in 365, not Excel 2019.

    Next time you start a thread, please make the constraints clear at the outset. Thank you.

    In F2 copied down:

    =TEXTJOIN(CHAR(10),TRUE,REPT($B$2:$B$42,$A$2:$A$42=$E2))

  6. #6
    Forum Contributor
    Join Date
    03-28-2021
    Location
    China
    MS-Off Ver
    O365
    Posts
    111

    Re: Textjoin, Concat a list of emails if they are in a specific Group. Without "FILTER"

    Please Login or Register  to view this content.
    Last edited by AliGW; 02-16-2022 at 07:29 AM. Reason: PLEASE don't quote unnecessarily!

  7. #7
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Textjoin, Concat a list of emails if they are in a specific Group. Without "FILTER"

    assuming 2019 compatibility

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    then
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    if it's possible you could have values listed in E2:En that are not in Col A -- use a pre-emptive test to validate presence.

  8. #8
    Registered User
    Join Date
    05-06-2017
    Location
    Canada
    MS-Off Ver
    Office 365 subscription
    Posts
    44

    Re: Textjoin, Concat a list of emails if they are in a specific Group. Without "FILTER"

    Thanks this one works, but only if the group name in Column A are sorted alphabetically. So in my real world sheet unfortunately the group names are scrambled. A workaround is to sort them prior to evaluating the cells.

  9. #9
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Textjoin, Concat a list of emails if they are in a specific Group. For Office 2016

    you can handle unsorted data (in the helper), just a little less efficient...

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

  10. #10
    Registered User
    Join Date
    05-06-2017
    Location
    Canada
    MS-Off Ver
    Office 365 subscription
    Posts
    44

    Re: Textjoin, Concat a list of emails if they are in a specific Group. For Office 2016

    Thank you, the helper column populates as intended, if Column A, Group Name, is unsorted. However the returns in Email
    Please Login or Register  to view this content.
    only returns two entries for every Group Name.
    Attached Files Attached Files

  11. #11
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Textjoin, Concat a list of emails if they are in a specific Group. For Office 2016

    sorry, yes, good point... I should have added that also

    F2: =LOOKUP(2,1/($A$2:$A$42=$E2),$C$2:$C$42)

  12. #12
    Registered User
    Join Date
    05-06-2017
    Location
    Canada
    MS-Off Ver
    Office 365 subscription
    Posts
    44

    Re: Textjoin, Concat a list of emails if they are in a specific Group. For Office 2016

    Quote Originally Posted by XLent View Post

    F2: =LOOKUP(2,1/($A$2:$A$42=$E2),$C$2:$C$42)
    Could I ask you for a hint to help me better understand this formula? As it is very useful for the tasks I have to do and I'd like to better understand what it does. I can find the documentation for the formulas, but the
    Please Login or Register  to view this content.
    parts confuse me. What search term would I need to know? Thanks

  13. #13
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Textjoin, Concat a list of emails if they are in a specific Group. For Office 2016

    so, first

    LOOKUP(lookup_value, lookup_vector [, result vector])

    the LOOKUP function adheres to following (key) principles:

    1. it assumes the values in the lookup_vector to be in ascending order at all times
    2. it ignores values in lookup_vector that are not of the same data type as the lookup_value, and, critically, ignores errors
    3. ultimately, it looks for the last value in the lookup_vector <= criteria and either a) returns the value or b) if the optional result vector is specified it returns the associated value from the result vector

    so, taking above into account... in this specific example

    a) the lookup vector can only contain 1 of 2 possible values -- namely 1 [1/TRUE] or #DIV/0! [1/FALSE]
    b) the criteria / lookup_value is numeric [2] and bigger than any / all numeric values present in the lookup_vector

    so, in short, we know the LOOKUP will find the last instance of 1 in the lookup_vector and, as we have specified it, return the associated value from the result vector

    in essence, you're finding the last instance of E2 within the range A2:A42 and returning the associated value from C2:C42; so, if last instance of E2 were in A30 the LOOKUP would return contents of C30.

    it is not particularly efficient but does the job...
    Last edited by XLent; 02-16-2022 at 12:44 PM. Reason: typo in narrative

+ 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] Textjoin, Concat a list of emails if they are in a specific Group.
    By MinisoftEggshell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-15-2022, 10:41 AM
  2. [SOLVED] Identify specific numeric values in a cell such as "1" without counting "11" as two "1"s
    By MHanna39 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-03-2019, 01:35 PM
  3. " " " is coming when i am using concat formular
    By LEE KI in forum Excel General
    Replies: 7
    Last Post: 08-27-2017, 12:26 PM
  4. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  5. Replies: 1
    Last Post: 01-22-2016, 09:21 AM
  6. Inserting Blank Rows in a list of existing data to "group" it
    By Paradime in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2014, 04:21 PM
  7. Replies: 0
    Last Post: 08-30-2012, 04:39 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