A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
JigBhakta,
As long as cells A3:C5 are empty then you can use these formulas instead of the ones given previously.
In C1 have this formula and drag-fill down to C6:
=IF(A1="","",IF(COUNTIF(A$1:A1,A1)>1,0,1))
In G1 have this formula and drag-fill down to G2:
=IF(ISERROR(MATCH(E1,A$1:A$6,0)),IF(E1="","",IF(COUNTIF(E$1:E1,E1)>1,0,1)),0)
Then the formula for the average is:
=(SUMIF(C1:C6,1,B1:B6)+SUMIF(G1:G2,1,F1:F2))/SUM(C1:C6,G1:G2)
Please adjust the ranges to suit where you data really is.
________________________
Regards, Tom