LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Divide sheet into groups

I am trying to sort names on a sheet depending on a number in D5. I have a
sheet from 1 to 112 that people can sign up on any line number for Student 1
to Student 112.

Student # Name
Student 1 Joe
Student 2
Student 3 Ron
Student 4 Bill
Student 5 Amie
Student 6
Student 7 Sue
Student 8 Mark
Student 9
Student 10 Billy
Student 11 Pat
Student 12
Student 13 Don
Student 14 Dave
Student 15 Jeff
Student 16 Harold
Student 17 Lou
Student 18
Student 19 Mike
Student 112

If D5 is 3 then I would like to sort them in groups of three. If the number
of groups is not an equally dividable number I need to add spaces to each of
the groups as evenly as possible.

Student # Name
Student 1 Joe
Student 3 Ron
Blank line
___________________
Student 4 Bill
Student 5 Amie
Student 7 Sue
____________________
Student 8 Mark
Student 10 Billy
Student 11 Pat
___________________
Student 13 Don
Student 14 Dave
Student 15 Jeff
___________________
Student 16 Harold
Student 17 Lou
Student 19 Mike
____________________

Or if D5 is 4 then the same thing sort them in groups of 4 dividing up the
spaces equally.

Student # Name
Student 1 Joe
Student 3 Ron
Student 4 Bill
Blank Line
___________________
Student 5 Amie
Student 7 Sue
Student 8 Mark
Blank Line
____________________
Student 10 Billy
Student 11 Pat
Student 13 Don
Student 14 Dave
___________________
Student 15 Jeff
Student 16 Harold
Student 17 Lou
Student 19 Mike
___________________

Any help would be appreciated.
Thanks Jeff.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Divide variable numbers into groups Marie Bayes Excel Discussion (Misc queries) 2 July 28th 09 06:53 PM
Divide a list into Groups SerpentineFire Excel Discussion (Misc queries) 3 May 14th 08 06:08 PM
Want to divide a number into groups of thousands Ooley Excel Discussion (Misc queries) 3 August 24th 07 08:54 PM
Can you filter sheet of data & on another sheet make four groups under each other? Marie J-son[_7_] Excel Programming 0 February 28th 06 12:12 PM
divide a large group of people into smaller groups by their vote siku Excel Discussion (Misc queries) 1 August 26th 05 05:42 PM


All times are GMT +1. The time now is 02:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"