Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Merging data revised

Sheet1 contains a list of course codes and the dates the courses are running
eg.
CSB00 09-Jan-2006
CSB00 10-Jan-2006
CSB01 09-Jan-2006
CSB02 10-Jan-2006

Sheet2 contains a list of students and the courses assigned to the students
eg.
James CSB00 Dep1
Jones CSB00 Dept1
Sam CSB00 Dept2
John CSB00 Dept2
(Data in different cells for name, course, Dept)

Please a macro or VB to assign students to courses (maximum students for the
sake of this example is 2 students per course date). Students should be
distributed to courses from all applicable departments ie one fron Dept1 and
the other from Dept2. Please make it as general as possible by making the
number of courses, number of students and number of departments all as
variables

You may assume 20 departments, 25 courses and as many as 100 students.
Classrooms may take a maximum of 12 students. Sufficient courses will be
planned to accommodate all students.

Output should lok like this:

Student Dept Course CourseDate
James Dept1 CSB00 09-Jan-2006
Sam Dept2 CSB00 09-Jan-2006

Jones Dept1 CSB00 10-Jan-2006
John Dept2 CSB00 10- Jan-2006

Thanks in advance

--
JA
Reply
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
Query via Import External Data doesn't reflect revised syntax Melanie Excel Discussion (Misc queries) 0 July 16th 08 05:28 PM
display revised total in Office 2003 when cell data changes Kerry_y Excel Discussion (Misc queries) 1 November 15th 06 05:43 PM
Format excel to revised date automatically when revised annetteberrios Excel Programming 0 September 2nd 05 02:25 PM
n or U Revised ? Blessingspoint Excel Worksheet Functions 1 January 18th 05 08:43 PM
Scanning for Duplicate Data in a Column, Merging Data and Finally Removing All Duplicates...? : VB : Excel Programming 2 August 24th 03 02:22 PM


All times are GMT +1. The time now is 09:38 PM.

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

About Us

"It's about Microsoft Excel"