View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Franksta
 
Posts: n/a
Default Auto Numbering

Hi Starguy,


OK, well, it really depends what you want to do and from the information
below it doesn't appear to clear. So I will give you a few options. If you
don't want to count the zero's but count the number of cells with data above
zero in it, you can use the following formula:

=countif(L5:L15,"0")

if you are wanting to calculate the results in a manner that you don't want
the zero's to affect the total (say for example, mean calculations, medium)
then you could employ an if statement as follows:

=if(<your_formula=0,"",<your_formula)

N.B. <your_formula is the existing formula in the cell range L5:L15.

Auto Numbering, you could use an if statement in combination with the above
as follows:

in row J5:J15 have the following:

for cell J5 = =countif(L5,"0")

then in row K5:K15 have the following:

=if(<your_formula=0,"",sum(J5:<current J cell)

For more intuitive examples, it might be good to post examples of the
formulae that you are using in the cell range, data isn't necessary, just the
formula.

Hope that helps.


Franksta.