I am trying to figure out the average difference in monthly sales versus previous years, and I have an IF function within an Average function. I want to skip zero values in the average function if the a years sales are zero (therefore wouldn't include an increase). Below is the start of the formula I've written.
=AVERAGE((IF(C3724<>0,(C3724-C3723), ,(C3725-C3724),(C3726-C3725),(C3727-C3726),(C3728-C3727),(C3729-C3728),(C3730-C3729))
Below is a copy of the data, to give an idea of what I am trying to accomplish.
J F M A M J J A S O N D TOTAL
2007 0 0 0 0 0 0 0 0 0 0 0 0 0
2008 0 0 0 0 0 0 0 0 0 0 0 0 0
2009 0 0 0 0 0 0 0 0 0 0 10 0 10
2010 0 0 0 0 12 10 10 0 14 0 0 4 50
2011 6 0 0 0 0 0 0 10 0 10 0 0 26
2012 15 0 13 0 12 0 14 0 0 0 0 10 64
2013 0 0 0 0 0 10 0 0 0 0 12 0 22
As you can see with this model, there are a lot of zero values, and I want to skip those, so I can get a more attainable average INCREASE in sales for this model. How would I skip these in my Average function?