john471
Registered User.
- Local time
- Today, 14:09
- Joined
- Sep 10, 2004
- Messages
- 392
Dear All,
I need some help !
I have a table that stores a (percentage) score for each of 10 categories, for evaluations done on employees. The table also details the employee, and the date of the evaluation; such that an extract of the table would look like this:
EmployeeID (long Integer)
EvalDate (Date)
ScoreCategory01 (Single)
ScoreCategory02 (Single)
ScoreCategory03 (Single)
.
.
ScoreCategory10 (Single)
Most of the time the scores will be in the range 0 to 100. It is possible for a ScoreCategory to be "Not Applicable" (through no fault of the employee). I very cleverly (or otherwise) decided to store this result as minus one (-1).
Now I would like to report averages on those values, and exclude the -1's from the calculation. Trouble is I cannot exclude entire records just because one of the ScoreCategories in that record is at -1.
Excel has lovely functions "SUMIF" and "COUNTIF" that would make such averaging readily achievable. Is there an easy way to get what I want, (especially in a report) or will I have to spend hours writing and arguing with code
My (AC97) project is way too far gone to redisgn the table structure at this point.
Any help greatly appreciated.
Rgds
John.
I need some help !
I have a table that stores a (percentage) score for each of 10 categories, for evaluations done on employees. The table also details the employee, and the date of the evaluation; such that an extract of the table would look like this:
EmployeeID (long Integer)
EvalDate (Date)
ScoreCategory01 (Single)
ScoreCategory02 (Single)
ScoreCategory03 (Single)
.
.
ScoreCategory10 (Single)
Most of the time the scores will be in the range 0 to 100. It is possible for a ScoreCategory to be "Not Applicable" (through no fault of the employee). I very cleverly (or otherwise) decided to store this result as minus one (-1).
Now I would like to report averages on those values, and exclude the -1's from the calculation. Trouble is I cannot exclude entire records just because one of the ScoreCategories in that record is at -1.
Excel has lovely functions "SUMIF" and "COUNTIF" that would make such averaging readily achievable. Is there an easy way to get what I want, (especially in a report) or will I have to spend hours writing and arguing with code
My (AC97) project is way too far gone to redisgn the table structure at this point.
Any help greatly appreciated.
Rgds
John.
Last edited: