+ Reply to Thread
Results 1 to 7 of 7

[SLOVED] split list in the same column

  1. #1
    Registered User
    Join Date
    02-21-2022
    Location
    Algeria
    MS-Off Ver
    2010
    Posts
    6

    [SLOVED] split list in the same column

    i have 5 class

    each class has 3 group of student

    i need to split this list in equal group by class
    by sending number of group in the column c
    in vba code
    thank you

    name classe group
    student1 1s1 1
    student2 1s1 1
    student3 1s1 1
    student4 1s1 1
    student5 1s1 1
    student6 1s1 2
    student7 1s1 2
    student8 1s1 2
    student9 1s1 2
    student10 1s1 2
    student11 1s1 2
    student12 1s1 3
    student13 1s1 3
    student14 1s1 3
    student15 1s1 3
    student16 1s1 3
    Attached Files Attached Files
    Last edited by chardoneret; 04-10-2024 at 05:26 PM.

  2. #2
    Forum Contributor
    Join Date
    09-18-2023
    Location
    Geogia, USA
    MS-Off Ver
    365
    Posts
    116

    Re: split list in the same column

    An example of how the data should look after dividing it would be helpful.

  3. #3
    Registered User
    Join Date
    02-21-2022
    Location
    Algeria
    MS-Off Ver
    2010
    Posts
    6

    Re: split list in the same column

    i have 5 class

    each class has 3 group of student

    i need to split this list in equal group by class
    by sending number of group in the column c
    in vba code
    thank you
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-21-2022
    Location
    Algeria
    MS-Off Ver
    2010
    Posts
    6

    Re: split list in the same column

    i have 5 class

    each class has 3 group of student

    i need to split this list in equal group by class
    by sending number of group in the column c
    in vba code
    thank you

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,627

    Re: split list in the same column

    Code is as per result expected. If the students are 55, 30,..... etc how it is to be divided?r
    Macro code:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: split list in the same column

    Attached is a solution based on kvsrinivasamurthy's solution.

    This version does split the class group in EQUAL groups (not 18 - 11 - rest as per your sample).
    If the number of students is not divisible by 3, the remainer is added to group 1 and 2.
    IE 39 students = 13 - 13 - 13
    40 students = 14 - 13 - 13
    41 students = 14 - 14 - 13
    42 students = 14 - 14 - 14 ...


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by ORoos; 04-10-2024 at 01:23 AM. Reason: Added code
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

  7. #7
    Registered User
    Join Date
    02-21-2022
    Location
    Algeria
    MS-Off Ver
    2010
    Posts
    6

    Re: split list in the same column

    Thank you very much and God bless heaven
    the scond solution is perfect and work 100%

+ 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] split 3-col dynamic arrays into nested 1 column list
    By guillaume0314 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-13-2023, 09:52 AM
  2. [SOLVED] complex split formula to split column to different columns
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-29-2023, 04:23 AM
  3. Replies: 4
    Last Post: 11-19-2022, 04:42 PM
  4. Replies: 3
    Last Post: 11-08-2019, 01:54 PM
  5. Need Macro code to split data split in 7 sheets based on variable rows in column A
    By Alija_21 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-31-2015, 08:03 AM
  6. Replies: 9
    Last Post: 03-26-2014, 05:47 AM
  7. Split 2 column list into 4 columns
    By quasifun in forum Excel General
    Replies: 2
    Last Post: 03-04-2013, 01:24 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