The monthly totals are displayed in a row from cells C2
2
[....]
In cell j6, I am trying to determine a monthly average
Then put the 3rd formula that I offered into J6, with the following
changes. Specifically:
=if(C2="", "", average(offset(C2
2, 0, 0, 1, count(C2
2))))
Note that the OFFSET "height" argument is now 1, and COUNT is the
"width" argument. Read about OFFSET in the Help page.
To understand the formula, first, test it by successively entering
made-up numbers for the months that you do not have -- Feb, Mar, etc
until you are satisfied that it works.
Second, if you have Excel 2003, use Tools>Formula Auditing>Evaluate
Formula to see how the formula is evaluated. It should answer any
lingering questions that you might have. (But feel free to post back
with any unanswered questions.)
PS: It might be prudent to round the average. For example, if the
monthly totals are currency, use ROUND(AVERAGE(....),2), where "..."
means the OFFSET expression above.
Excel figures a twelve month average C2
2, but there is
no data for remaining months so it divides by 12.
Ah, C2
2 would be 14 months. Do you want the average to be limited
to the most recent 12 months, if there is more than 12 months of data?