Share via

Nested Countif and sum functions

Anonymous
2017-06-15T09:44:55+00:00

I have a range of cells which I want to "sum" and then divide by the number of cells with a entry higher than "0" using countif what is a suitable formula?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2017-06-15T09:53:28+00:00

Hi,

Try this

=SUM(A1:A10)/COUNTIF(A1:A10,">0")

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2017-06-15T10:11:08+00:00

    Many thanks Mike H - I nearly had it  all bar a comma!!

    Was this answer helpful?

    0 comments No comments