Sonya,
Here’s the way I approached the problem and it seems to work.
I copied the “September 09” worksheet into “SAMPLE.xls”.
I used VLOOKUP to assign a section to each room number in the raw data and named that range FlSec.
I used named ranges for the SCORE_1, SCORE_2 and SCORE_3.
I entered the following array formula (Ctl+Shift+Enter) in column E
=IF(ISERROR(AVERAGE(IF(FlSec=B6,SCORE_1))),0,AVERAGE(IF(FlSec=B6,SCORE_1)))
The same array formula is used in columns G and I changing SCORE_1 to SCORE_2 for column G and SCORE_3 for column I.
I entered the following formula in column F.
=SUMPRODUCT((FlSec=B4)*(SCORE_1<>""))
The same formula is used in columns F and J changing SCORE_1 to SCORE_2 for column F and SCORE_3 for column I.
Hope this helps,
Gary
Bookmarks