View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default How can I change all negative values in a column to = 0?

=AVERAGE(IF(A1:A200,A1:A20))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"dbsavoy" wrote in message
...
I'm trying to calculate an average of data, but need to ignore negative
numbers in the range from which I'm taking the average. I'd like to

either
format cells to calculate based on displayed values rather than actual

values
OR use something like an IF function to change negative values into zeros

or
NA.

I would much appreciate any help on this.
Thx!