[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

03/15/2004 at 03:14AM PST, ID: 20918981
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

Data Processing XL 2K II

Asked by TigerMan in Microsoft Excel Spreadsheet Software

Tags: xl

Hi,

The following table contains raw data for conversion.

ID      Prog      Code      Name      Tot Stud      Lect H      Lect Max      Tute H      Tute Max      WS H      WS Max      Part      Order      Day
1      Prog 1      Cs 1      Cs Nm 1      200      2      50      1      25      1      25      AM      Yes      Mon
2      Prog 1      Cs 2      Cs Nm 2      50      1      35      2      35                    AM      No      Any
3      Prog 1      Cs 3      Cs Nm 3      75      2      35      1      35      1      35      PM      No      Any
4      Prog 1      Cs 4      Cs Nm 4      250      2      50      1      25      1      25      Any      Yes      Tue
5      Prog 1      Cs 5      Cs Nm 5      125      2      50                  2      25      Night      Yes      Any
6      Prog 1      Cs 6      Cs Nm 6      400      1      50      2      50      1      50      PM      Yes      Fri
7      Prog 1      Cs 7      Cs Nm 7      20      2      35      1      35      1      35      PM      No      Any
8      Prog 1      Cs 8      Cs Nm 8      15      1      40      1      20                  AM      No      Any
9      Prog 2      Cs 9      Cs Nm 9      4      2      35      1      35      1      35      PM      Yes      Any
10      Prog 2      Cs 10      Cs Nm 10      105      1      50                  1      50      Any      No      Fri
11      Prog 2      Cs 11      Cs Nm 11      16      2      35      1      35      1      35      Night      Yes      Any
12      Prog 2      Cs 12      Cs Nm 12      280                  2      50      2      50      AM      Yes      Any
13      Prog 2      Cs 13      Cs Nm 13      100                  2      35      1      35      PM      Yes      Mon
14      Prog 2      Cs 14      Cs Nm 14      249                  1      50      2      25      AM      Yes      Tue
15      Prog 2      Cs 3      Cs Nm 3      49      2      35      1      35      1      35      AM      No      Wed
16      Prog 2      Cs 7      Cs Nm 7      81      2      35      1      35      1      35      Any      Yes      Any
17      Prog 3      Cs 15      Cs Nm 15      36      2      50      2      50                  Night      No      Any
18      Prog 3      Cs 2      Cs Nm 2      99      1      35      2      35                    AM      No      Any
19      Prog 3      Cs 16      Cs Nm 16      108      2      40      1      20      1      20      PM      Yes      Thurs
20      Prog 3      Cs 17      Cs Nm 12      15                  2      50      2      50      Night      No      Any

This data is contained in a sheet named Courses.
All Programs have unique course codes and names.
A course may be in multiple programs.
Tot Stud is the total number of students enrolled in a Prog_Course
Students in each Prog_Course have different types of delivery modes Lecture, Tutorial, Workshop.  These modes have durations [Lect H, Tute H, WS H].  Some Prog_Courses have no lect, no tute, or no WS as defined in the above table.  Most collections of Mode of Delivery total 4 hours – but not all.
Each complete set of students enrolled in a Prog_Courses are broken into groups for each delivery mode according to the above table [Lect Max, Tute Max, WS Max].  Call these classes for this problem.

Required:
Code to dump to another worksheet [Classes] so that the following table is created:
Course_ID      Group ID      Prog      Cs Code      Cs Nm      Lect      Tute      WS      Part      Order      Day
1      1      Prog 1      Cs 1      Cs Nm 1      2      1      1      AM      Yes      Mon
1      1      Prog 1      Cs 1      Cs Nm 1      0      1      1      AM      Yes      Mon
1      2      Prog 1      Cs 1      Cs Nm 1      2      1      1      AM      Yes      Mon
1      2      Prog 1      Cs 1      Cs Nm 1      0      1      1      AM      Yes      Mon
1      3      Prog 1      Cs 1      Cs Nm 1      2      1      1      AM      Yes      Mon
1      3      Prog 1      Cs 1      Cs Nm 1      0      1      1      AM      Yes      Mon
1      4      Prog 1      Cs 1      Cs Nm 1      2      1      1      AM      Yes      Mon
1      4      Prog 1      Cs 1      Cs Nm 1      0      1      1      AM      Yes      Mon
2      1      Prog 1      Cs 2      Cs Nm 2      1      2      1      AM      No      Any
2      2      Prog 1      Cs 2      Cs Nm 2      1      2      1      AM      No      Any
2      3      Prog 1      Cs 2      Cs Nm 2      1      2      1      AM      No      Any
2      4      Prog 1      Cs 2      Cs Nm 2      1      2      1      AM      No      Any
2      5      Prog 1      Cs 2      Cs Nm 2      1      2      1      AM      No      Any
Etc, etc.

The following algorithm provides a skeleton of how this was achieved:

First, find all rows in Courses where the Course Code is the same [like ID 2 and 18], and
: check that the Lect H, Lect Max, Tute H, Tute Max, WS H, WS Max, Part, Order, and Day data in each row for that course all match.  If they do not, provide an error message and halt execution to allow the user to remedy – set focus on the first cell containing an error.
: test that if Tute Max or WS Max are less than Lect Max, they are always exactly half the value of Lect Max.  This should also be tested at the beginning, error message provided, set focus etc.
: if all the above is OK, then for each set of multiple occurrences of courses, add the Tot Studs together and store in memory.
Then, for every record in Courses [some combined due to the last possibility] divide the Tot Stud by the largest of Lect Max, Tute Max, or WS Max, and round up to nearest integer – call these Classes for the following.
Create records in Courses so that each Class has a record – replicate the number of hours and other variables for each – ensure that Group ID links back to the Course_ID from that table.
Some other rules/notes:
In the Classes table, all data must be present for each record – if there are no lect, tute, or ws hours, then place a 0.
When there are multiple programs containing the same course [as in 2, 18], use the prog code from the first occurrence in Classes.

Pragmatic Notes:
Code must be self-documenting [or liberal use of rems] so that modification is simplified.  Use only meaningful variable names.
Use arrays in VBA is you like, but must not be static.
Option Explicit is a must.
Modularising into smaller chunks [procedures] is highly desirable.
I am kick-starting this at 500, but am fully aware that this is a significant task, that there is potential for requirements creeping, etc, and therefore am happy to chuck more points in as required.
If you work with the above Course table, then that is the table I have in my workbook, and we will be able to compare and discuss outcomes and issues etc.
Be patient with me, I am a formula person in XL, so am on a learning curve.

Dave
[+][-]03/15/04 04:38 AM, ID: 10596712

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/15/04 04:40 AM, ID: 10596722

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/15/04 07:00 AM, ID: 10597617

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/15/04 02:55 PM, ID: 10601896

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/15/04 02:57 PM, ID: 10601912

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/16/04 04:10 AM, ID: 10605375

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/16/04 04:11 AM, ID: 10605378

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/17/04 10:23 PM, ID: 10621419

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/18/04 03:20 AM, ID: 10622784

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/20/04 10:53 AM, ID: 10641229

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: xl
Sign Up Now!
Solution Provided By: matthewspatrick
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03/24/04 05:23 PM, ID: 10673416

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/01/04 03:56 AM, ID: 10731295

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/06/04 05:59 AM, ID: 10765397

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/08/04 07:51 PM, ID: 11024422

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/10/04 06:23 AM, ID: 11030867

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/21/04 10:49 AM, ID: 11859970

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/21/04 04:16 AM, ID: 12368452

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/26/04 06:40 AM, ID: 12410646

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91