ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Function to calculate an average (https://www.excelbanter.com/excel-programming/339763-function-calculate-average.html)

Tom Ogilvy

Function to calculate an average
 
=if(Grades!D2=1,Sumproduct(Weights!$A$2:$C$2,Grade s!A2:C2),Sumproduct(Weight
s!$A$3:$C$3,Grades!A2:C2))

--
Regards,
Tom Ogilvy

"David" wrote in message
...
Hello,

I am trying to write a function to calculate an average.

I have a range from which I choose a formula:

math english sport formula
30% 30% 40% 1
20% 40% 40% 2

and another range with grades:

math english sport formula total_grade
50 60 80 1
60 80 90 2

How can I write a function which will calculate total grade upon formula
value
(use formula according to the value in the second range) ?

Thank you
David D.










David

Function to calculate an average
 
Hello,

I am trying to write a function to calculate an average.

I have a range from which I choose a formula:

math english sport formula
30% 30% 40% 1
20% 40% 40% 2

and another range with grades:

math english sport formula total_grade
50 60 80 1
60 80 90 2

How can I write a function which will calculate total grade upon formula
value
(use formula according to the value in the second range) ?

Thank you
David D.









All times are GMT +1. The time now is 05:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com