Averaging Noncontiguous Cells That Contain Some Zero Values

BY STANLEY ZAROWIN

Q: Here’s my problem: I need to calculate the average for a bunch of cells that not only are not contiguous but some contain zero values, and I don’t want them to affect the results. Do you have any ideas?

 

A: It is a little tricky. The solution, as you’ll see, lies in the denominator, where we need to eliminate the effect of the zero values. Once we do that, the rest falls into place. For example, if the target cells are A1, C1, E1 and G1, the averaging formula would be:

 

=(A1+C1+E1+G1)/((A1<>0)+(C1<>0)+(E1<>0)+(G1<>0))

 

By canceling all the cells that produce zero values, we obtain the correct average.

 

More from the JofA:

 

 Find us on Facebook      Follow us on Twitter

 

SPONSORED REPORT

How to make the most of a negotiation

Negotiators are made, not born. In this sponsored report, we cover strategies and tactics to help you head into 2017 ready to take on business deals, salary discussions and more.

VIDEO

Will the Affordable Care Act be repealed?

The results of the 2016 presidential election are likely to have a big impact on federal tax policy in the coming years. Eddie Adkins, CPA, a partner in the Washington National Tax Office at Grant Thornton, discusses what parts of the ACA might survive the repeal of most of the law.

COLUMN

Deflecting clients’ requests for defense and indemnity

Client requests for defense and indemnity by the CPA firm are on the rise. Requests for such clauses are unnecessary and unfair, and, in some cases, are unenforceable.