Question
Javascript for calculation of weighted grades
I am working on a form that has calculated 6 seperate domains. Each domain has a percentage weight that I need to calculate. It works for me in excel but don't know how to do a javascript for pdf.
| Grade | Weight | Score |
| 91 | 10% | 7.35 |
| 65 | 15% | 11.025 |
| 80 | 20% | 14.7 |
| 73 | 25% | 18.375 |
| 68 | 30% | 22.05 |
| 377 | ||
| 75.4 | 73.5 | |
| Average | Weighted |
Here is my formula for the 73.5 weighted calculation=SUMPRODUCT(A3:A7, B3:B7)/SUM(B3:B7)
I tried this script but it doesn't work
| =SUMPRODUCT(Rating_Domain_1+Rating_Domain_2+Rating_Domain_3+Rating_Domain_4+Rating_Domain_5+Rating_Domain_6, Score_1+Score_2+Score_3+Score_4+Score_5+Score_6)/SUM((Score_1+Score_2+Score_3+Score_4+Score_5+Score_6) |
Where Rating Domain = Grade and Weight = Score
Any help is appreciated.
