# Formula for Category-Dependent Weighted Grading System

#### nickdecesare

##### New Member
Hey all,

Been working on a little project and I seem to have hit a small snag. The workaround would take a long time, so I'm trying to avoid it but we'll see. So essentially I have two tables, a data collection and another table that has mean and standard deviation for each measurement by category. They look something like this:[HR][/HR]Data Collection
 Category Measurement 1 Measurement 2 Measurement 3 Black 4.8 21 7.07 Blue 4.5 30 6.96 Red 4.8 27 7.66 Black 4.78 27 7.5

<tbody>
</tbody>
[HR][/HR]Key

 Category Meas. 1 Mean Meas. 1 Stdev Meas. 2 Mean Meas. 2 Stdev Meas.3Mean Meas.3Stdev Black 4.77 .02 24 3 7.5 .28 Blue you get the point

<tbody>
</tbody>

Currently, for each category I have 1 formula (if statements) for each measurement that assigns a grade by that performance on a scale of 1-5, with 3 being within 1 stdev of the mean, 2/4 being within 2 stdev (2 for lower, 4 for higher) and 1/5 for being above 2 stdevs away from the mean for that measurement. Then i have a separate formula that takes all those scores and grades the entirety of that line on a scale 1-100.

So I'm wondering if there's a single formula in which I can 1) encompass all categories in a single formula, sort of like how an array would do it, if it's category Blue, reference those means and stdevs, if black reference those respective numbers and 2) weight each measurement differently for a particular category (for instance i want to weight measurement 3 twice as much for black than the other categories in my final grade, again based on the category.

I appreciate any feedback. Either this is pretty advanced, or I'm blanking on the simple way of doing this.

1,081,523
Messages
5,359,263
Members
400,523
Latest member
ExcelNewbie98

### This Week's Hot Topics

• VBA (Userform)
Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
• List box that changes fill color
Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
• Remove duplicates and retain one. Cross-linked cases
Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
• VBA Copy and Paste With Duplicates
Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
• Macro
is it possible for a macro to run if the active cell value is different to the value above it
• IF DATE and TIME
I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...