Results 1 to 16 of 16

split and organize values from array to new array

Threaded View

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

    split and organize values from array to new array

    Dear friends:

    I have an issue with Excel dynamic arrays.

    I start with a spilling array inherited in B6. I have no control over the size of this array. In my example attached, 2 rows, but it could be more.

    Each row represents a list of pairs label/value.
    Pairs separators are "/" for rows (label), "|" for columns (value).

    The pairs are not sorted. I have no control over how they are supplied to B6. Each row may be sorted differently, and possibly contains not common labels with other rows.

    My intention is to split all the pairs available in the initial array and provide as result a 2-rows spilling array as follow:

    - in a first row, we "merge" the common pairs (same label, same value), shared by all row of the initial array
    - in a second row, we isolate the specifics, and we keep the distinction between the distinct initial rows with a "***" separator.

    test.jpg

    What do you think about this?

    At first sight it looked not complex, but I ended up with a REDUCE within a REDUCE within a REDUCE ang got lost.

    Thanks for your input.
    Attached Files Attached Files
    Last edited by guillaume0314; 03-19-2024 at 12:33 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] split comma-separated values in a table, return spilling array
    By guillaume0314 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-11-2023, 08:26 AM
  2. Replies: 4
    Last Post: 09-24-2022, 02:47 AM
  3. Replies: 6
    Last Post: 06-07-2022, 09:30 AM
  4. find array length got using split feature and valdate array elements
    By malathi1972 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2018, 04:51 AM
  5. Replies: 5
    Last Post: 02-22-2018, 01:47 AM
  6. [SOLVED] Split VBA array according to specific values
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-24-2017, 05:21 PM
  7. [SOLVED] Read last element of Split array and then discard it and resize the array.
    By staggers47 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-28-2012, 06:36 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