+ Reply to Thread
Results 1 to 14 of 14

Group 4 data sets into one

  1. #1
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Angry Group 4 data sets into one

    Hi,

    I have 4 data sets as shown below.

    1.png

    I want to merge all four data sets such that the end result is grouped and sorted based on Surname.

    My desired result is as shown below.

    2.png

    I have attempt to generate the result, however it does not "spill" and it fails to pick up value 2,3,4.

    I've attached the sample workbook.

    Thank you
    Attached Files Attached Files
    Last edited by bob112233; 03-29-2023 at 04:52 AM. Reason: need further help

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Group 4 data sets into one

    Delete ALL expected results.

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




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Re: Group 4 data sets into one

    Awesome!

    Thanks once again Glenn!!!

    Edit...

    I just noticed, that they are not grouped.

    All good, i sorted it
    Last edited by bob112233; 03-28-2023 at 04:40 AM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Group 4 data sets into one

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  5. #5
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Re: Group 4 data sets into one

    @Glenn Kennedy,

    I've tried your approach and modified it, however I can't seem to make it work based on my current data.

    I've updated my excel workbook to show you a new set of data.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Group 4 data sets into one

    OK. I see the problem... not entirely fixed yet, becasue there may be a problem with your expected results...

    See shaded cells. Which is correct? The original (and if so, why), my version 1 or my version 2???
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 03-29-2023 at 03:16 AM.

  7. #7
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Re: Group 4 data sets into one

    The original is correct, as ID 333 appears twice across value 1 and 2 in the same CODE. Hence the expected result.

    I

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Group 4 data sets into one

    Totally confused... because it ALSO occurs in value 4 in the same code.

  9. #9
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Re: Group 4 data sets into one

    To help clarify the solution, I want to group ID & CODE with Value 1,2,3,4.

    We want to group those 4 data sets into 1 large data set.

    For example, tracking ID 111 we can see it occurs in the following value tables, 1, 2 and 4.

    Grouping them would look something like this.



    ID Surname First Name CODE Value 1 Value 2 Value 3 Value 4


    111 aaa aaa xxx 70 1 0 70



    Another example for ID 555 we can see it occurs in the following value tables 1,2,3,4 but in different codes. So grouping them will look something like this.

    ID Surname First Name CODE Value 1 Value 2 Value 3 Value 4
    555 eee eee hhh 86 0 0 0
    555 eee eee abc 0 5 0 0
    555 eee eee xxx 0 0 5 0
    555 eee eee yyy 0 0 0 5

    I hope this helps...

    I noticed, I made a mistake in my desired results.

  10. #10
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Re: Group 4 data sets into one

    I will update my post, i can see the confusion now.

    Here is the image with the desired results.

    des results.png

    I;ve updated the original post to include the workbook with the updated desired results.
    Last edited by bob112233; 03-29-2023 at 04:21 AM.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Group 4 data sets into one

    Is ther still a mistake ?

    What happened to

    555 eee eee abc 5

  12. #12
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Re: Group 4 data sets into one

    you are right... its missing

    I've updated it lol .

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Group 4 data sets into one

    It will be a bit messay (I think) if I try to do it ALL in one formula.

    Try this, however. Two dynamic arrays. I decided NOT to assume that the data blocks are beside each other.

    Adjust the ranges to suit your real data,. They do not have to match the exact number of rows.
    Attached Files Attached Files

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Group 4 data sets into one

    But... I tried and here it is:

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

+ 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. Copy paste Data based on Group Name and Group Head
    By tigarman in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-24-2022, 06:07 AM
  2. [SOLVED] One Checkbox in group that sets all others to False
    By FirstClassScamp in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-13-2019, 05:39 AM
  3. Group Weekly Data with Totals for that Week VBA - Group by Date
    By CHRISOK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2017, 11:50 AM
  4. How To Compare Two Sets Of Similar Data Sets To Find a Good Match
    By Mark123456789 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2016, 01:29 AM
  5. [SOLVED] Pivot table creating two sets of category for one group
    By glaskow4 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-26-2014, 05:28 PM
  6. [SOLVED] Two sets of data for the same group
    By Nick in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-12-2005, 11:05 AM
  7. How do I group multiple sets of data for stacked bar chart?
    By Najam in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-30-2005, 12:05 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