+ Reply to Thread
Results 1 to 6 of 6

concat dynamic arrays via IDs

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    concat dynamic arrays via IDs

    Dear Friends:

    The scenario is as follow. In G3# I have a dynamic array, 2 cols, with an ID, and a value1. in J3#, another dynamic array, 2 cols, with an ID, and a value2.

    I need to concat each value 1 with all corresponding values2 depending on the ID, and return an array in M3# listing all the results.

    concat dynamic arrays via ids.jpg

    Ideas anyone? Thank you so much.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,897

    Re: concat dynamic arrays via IDs

    Convert the arrays to tables. Bring them both into Power Pivot and join them on the common field. Create a measure and Pivot the Data using ConcatenateX function.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: concat dynamic arrays via IDs

    @Alan Cannot. In the background, all is within a LET function dealing with arrays of values. Thanks.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: concat dynamic arrays via IDs

    The whole table (including the headers) in a single cell formula in one go:

    Please empty all expected results and try in M2:
    Formula: copy to clipboard
    =REDUCE({"id","concatenation"},G3:G5,LAMBDA(i,x,VSTACK(i,IFNA(HSTACK(x,OFFSET(x,,1)&" "&FILTER(K3:K8,J3:J8=x)),x))))
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: concat dynamic arrays via IDs

    Perfect as usual. Thank you Hans.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: concat dynamic arrays via IDs

    Thanks for the feedback and rep. Glad to have helped 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] Filter and concat text as an dynamic array
    By v6093486218 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-13-2022, 11:29 AM
  2. How to generate arrays name using concat or similar functions
    By nima50 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-10-2021, 07:18 AM
  3. [SOLVED] extract last 3 numbers from each concat. value in col. B and add to col. A concat cells
    By therealdees in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-17-2021, 11:02 AM
  4. Dynamic Arrays, Dynamic Drop down list, Filters and multiple rows
    By Big_Kev007 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2020, 06:35 AM
  5. Dynamic concat of table headers
    By Otto62 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2017, 07:28 AM
  6. VBA help with Match & Concat using Arrays....
    By sgtgooba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2013, 12:19 PM
  7. Dynamic Arrays
    By chaz in forum Excel General
    Replies: 1
    Last Post: 05-22-2006, 07:50 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