View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
FSt1 FSt1 is offline
external usenet poster
 
Posts: 3,942
Default sum to recognize new rows

hi
you could create a dynamic range.
2003 on the menu barInsertnamedefine
in the name in workbook box, enter a name for the range say myname.
then in the refers to box enter...
=OFFSET($B$1,0,0,MATCH(99999999,$B:$B),1)

click the add button the ok out.
then on the sheet use this formula...

=sum(myrange)/Counta(myrange)

the range will adjust as you add rows (or delete rows)

regards
FSt1

"deb" wrote:

I have a column that I average the sum (ignoring blank cells in the formula)
sum of column, divided by count of cells that are not blank.

here is the formula that is in B10...
=(SUM(B4:B9))/COUNTA(B4:B9)

When I insert a row above B10 the formula does not change to incorporate
that additional row. How can I get the formula to recognize new rows?
should now be
=(SUM(B4:B10))/COUNTA(B4:B10)

Thanks
--
deb