View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK Pete_UK is offline
external usenet poster
 
Posts: 8,856
Default New Twist on Old Question-Averages

SUMPRODUCT can be used for conditional summing and for conditional
counting, (with more than one condition, unlike COUNTIF), so you can
set up the conditions that you mention. I would favour having a cell
in which you can enter a date like 1st Sept 2008 (although the day
doesn't matter), and then your condition will be:

(TEXT(D$7:D$500,"mmm-yy")=TEXT(cell,"mmm-yy"))

to check for the month and year.

Unfortunately I have to go out now, but I'll complete this later (if
no-one else does).

Hope this helps for now,

Pete

On Sep 25, 6:55*pm, LPS wrote:
Refresher: *My Excel 2000 workbook has two sheets, the first (Evaluation
Detail) contains details about course evalutions per instructor. *Column A is
Course Name, B and C are Course Numbers, D is Course Date, E is Training
Provider, F is Instuctor Name, G thru P are evaluation scores and Q is
Evaluation Average.

On the second sheet (Evaluation Summary) I want to calculate the overall
course average per instructor, per month.

Although this is not exactly the solution that was suggested to me by some
very helpful peolpe (I mean that) I finally found a function which will
calculate the averages I need, and if the calculation returns a "#DIV/0!"
error, to display the cell as blank. *What I now need to do is add in the
date selection component, so that evaluation averages are only calculated for
a specific month, e.g.; = 1-Sept-08 and <= 30-Sep-08. *I have tried to do
this with dismal results. *Can anyone help me with the correct syntax? *The
following is the calculation as it currently works:

=IF(ISERROR(SUMPRODUCT(--('Evaluation Detail'!$F$7:$F$500="Linda
Sgabellone"),'Evaluation Detail'!$Q$7:$Q$500)/COUNTIF('Evaluation
Detail'!$F$7:$F$500,"Linda Sgabellone")),"",SUMPRODUCT(--('Evaluation
Detail'!$F$7:$F$500="Linda Sgabellone"),'Evaluation
Detail'!$Q$7:$Q$500)/COUNTIF('Evaluation Detail'!$F$7:$F$500,"Linda
Sgabellone"))

Thank you for all of your help - :)
--
LPS