+ Reply to Thread
Results 1 to 7 of 7

TEXTJOIN in a Spill Array Formula

Hybrid View

  1. #1
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    TEXTJOIN in a Spill Array Formula

    Hi all,

    I am trying to use TEXTJOIN() in a spill array formula but I kind of notice that it doesn't work very well with spill array, then I came with the formula below:

    Formula: copy to clipboard
    =CHOOSE(ROW(P3#)-2,TEXTJOIN(" / ",,INDEX(E2#,,1)),TEXTJOIN(" / ",,INDEX(E2#,,2)),TEXTJOIN(" / ",,INDEX(E2#,,3)),TEXTJOIN(" / ",,INDEX(E2#,,4)))


    The purpose of this formula is to spill an array for unique values in column A of the worksheet that match values in column B in a single cell. The range L2:M5 has an exemple of what I was looking for and range P2:Q6 is where I applied the formula. My problem is that my solution does not go to more then 4 lines without making it bigger and bigger.

    Range E2:H19 and L14:l17 are my testing ground.

    I am using Excel 365 in a Win7 then I can't join Office Insider for the new functions like LET().
    Attached Files Attached Files
    Last edited by DJunqueira; 11-12-2021 at 01:22 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: TEXTJOIN in a Spill Array Formula

    Hi,

    One way

    In D2
    =UNIQUE(Tabela1[ID])

    In E2 copied down
    =IFERROR(TEXTJOIN(" / ",TRUE,FILTER($B$2:$B$19,$A$2:$A$19=D2),""),"")
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: TEXTJOIN in a Spill Array Formula

    Ok, tks it worked, but I am looking for a spill formula, if possible.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: TEXTJOIN in a Spill Array Formula

    Please try

    =LET(z,Tabela1,y,SORT(z),id,INDEX(y,,1),TRIM(MID(SUBSTITUTE(FILTERXML(SUBSTITUTE(CONCAT(REPT("</m><m>"&id,MATCH(id,id,)=SEQUENCE(ROWS(z)))&" / "&INDEX(y,,2)),"/m","x",1)&"</m></x>","//m"),"/",REPT(" ",9),1),{1,9},{9,99})))

    Or without Let

    =TRIM(MID(SUBSTITUTE(FILTERXML(SUBSTITUTE(CONCAT(REPT("</m><m>"&SORT(Tabela1[ID]),MATCH(SORT(Tabela1[ID]),SORT(Tabela1[ID]),)=SEQUENCE(ROWS(Tabela1)))&" / "&INDEX(SORT(Tabela1),,2)),"/m","x",1)&"</m></x>","//m"),"/",REPT(" ",9),1),{1,9},{9,99}))
    Attached Files Attached Files
    Last edited by Bo_Ry; 11-12-2021 at 02:01 PM.

  5. #5
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: TEXTJOIN in a Spill Array Formula

    Thanks Bo_Ry, YOU GOT IT!!

    Fantastic!!

    Now I will work to understand it.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,430

    Re: TEXTJOIN in a Spill Array Formula

    Not sure I completely understand, but try this in M3 and fill down.
    Formula: copy to clipboard
    =TEXTJOIN(" / ",TRUE,INDEX(Tabela1[ESTADO],MATCH($L3,Tabela1[ID],0)):INDEX(Tabela1[ESTADO],MATCH(2,1/($L3=Tabela1[ID]))))
    Dave

  7. #7
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: TEXTJOIN in a Spill Array Formula

    Quote Originally Posted by FlameRetired View Post
    Not sure I completely understand, but try this in M3 and fill down.
    Tks for your attention, but I need to clarify my proposal.

    In my exemple, cell Q3 I created a spill formula, the lines below are created automatically as new data comes in, I don't need to manually fill down, but my formula has some limitation, I am asking if someone could give a better answer with another spill array formula, a formula that you use in just one cell and it grows for the lines below automatically.

+ 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. TEXTJOIN and IF Array
    By mrmacs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-12-2021, 08:51 AM
  2. [SOLVED] Replace #N/A with prior available values on a 2D running array with ONE "spill" formula
    By leolapa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-08-2021, 02:49 PM
  3. [SOLVED] Find last MATCH for each row on a 2D running array with ONE "spill" formula
    By leolapa in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2021, 11:34 AM
  4. [SOLVED] Return MAX (or LARGE) for each 2D array's row with only ONE "spill" formula
    By leolapa in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-22-2021, 08:50 AM
  5. Spill/array formula to calculate average for specified ranges?
    By ErikBerger in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-27-2021, 07:22 AM
  6. Error Using TEXTJOIN Function in Array Formula to List Non-empty Strings
    By MikeA01730 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-18-2019, 01:24 AM
  7. [SOLVED] How can I modify my array TEXTJOIN formula to output only unique values
    By Victorjo in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-06-2018, 01:50 AM

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