COUNTA counting formulas as well.

  • Thread starter Thread starter Gaurav
  • Start date Start date
G

Gaurav

F17/(AVERAGE(C17,B17))*(12/(COUNTA(B5:B16)))

in B5:B16, I have this formula..
=IF(SUM(Start:End!B5)=0,"",SUM(Start:End!B5))

Now the problem is...the COUNTA function in the first formula above is
counting all the cells in the range B5:B16. I want it to NOT count the cells
which are blank as a result of the formula (The second formula above). I
want it to count only if the result is >=0.

Ideas?
 
Maybe something like this:

=F17/(AVERAGE(C17,B17))*(12/(SUMPRODUCT(--(B5:B16<>""))))

HTH,
Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Conditional Average 8
count nonblank cells 3
Payment calculation 1
Conditional =CONCATENATE formula 2
IF function says too many nested 1
Linking to other worksheets 3
cell reference in formula 5
COUNTA Q 4

Back
Top