Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

yg17

macrumors Pentium
Original poster
Aug 1, 2004
15,030
3,009
St. Louis, MO
I have a cell that calculates an average from all the cells in column J, starting with J2.

For the formula right now, I have:
=AVERAGE(J2:J31)

But, I want to be able to keep adding stuff beyond J31 and not have to keep modifying the formula. I thought maybe a wildcard like:
=AVERAGE(J2:J*)
would work, but it didn't. Is there some way to do this? Thanks
 
There might be a more elegant way of doing it, but I usually just make the range much larger than I'm know I'm going to need (something like J2:J131).
 
this is not elegant per se, but if you don't know how many numbers you'll have, this may work better

=(SUM(C:C)-C1)/(COUNT(C:C)-COUNT(C1))
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.