how to compute a range of cells based on another range of cells?

E

Elkar

I think this might get the results you're looking for:

=(SUMIF(E3:AH3,"=HW",E8:AH8)/COUNTIF(E3:AH3,"=HW"))*0.33

HTH,
Elkar
 
Top