View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Meteor1240 Meteor1240 is offline
external usenet poster
 
Posts: 4
Default Average If Array Formula

Nope, didn't work either but thanks for trying.

"Meteor1240" wrote:

Hi. I have the following formula in my spreadsheet that I need some help with:

=ROUND(AVERAGE(IF((Damian!$N$4:$N$10000=""),Damian !$P$4:$P$10000)),0)

Cells N4 through N10000 contain either a blank cell or an E or an I. Cells
P4 through P10000 contain a calculated number. The array function states the
following:

If any cell within the range of N4 through N10000 on the worksheet named
Damian are blank
then find the average of the corresponding cells within the range of P4
through P10000
and round to the zero digit

I have a similar function (see below) in another cell to find all cells in
N4 through N10000 that are not blank. This formula works fine.

=ROUND(AVERAGE(IF((Damian!$N$4:$N$10000<""),Damia n!$P$4:$P$10000)),0)

The formula for finding blank cells is returning a value of 0 when it should
return a value of 21. Any ideas of why this is not working?

Thanks!