Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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.







  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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.









Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate Average ub Excel Discussion (Misc queries) 5 July 24th 08 03:44 PM
Calculate average of ratings as a function of length rodeo Excel Worksheet Functions 2 November 2nd 07 12:44 PM
If/Then calculate the average LynnJ Excel Worksheet Functions 5 January 3rd 06 10:24 PM
Calculate the average using the Lookup function or similar Lars F Excel Discussion (Misc queries) 2 November 22nd 05 11:40 AM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM


All times are GMT +1. The time now is 10:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"