Question:
When I add row to Excel, how to have references to that column extend to the new row?
slugby
2007-07-16 22:23:57 UTC
For example, I am just using COUNTA to see how many entries are in a given column. The exact formula is:

=COUNTA(E3:E25)

Now if I add an entry at row 26 (which is currently completely empty), I'd like this formula to then say:

=COUNTA(E3:E26)

without having to change it myself. Likewise I have a sum:

=SUM(C3:D25)

If I add information on row 26, I'd like this sum to recognize it somehow and update the D25 to D26. Any guidance or tips appreciated!
Three answers:
mblaine
2007-07-16 22:43:22 UTC
In Excel, there's a function called OFFSET you can use. For example, instead of:

=COUNTA(E3:E25)



You could do this (except all on one line, Yahoo likes to cut it off):

=COUNTA(OFFSET(

Sheet1!$E$3,0,0,

COUNTA(Sheet1!$E:$E),1))



That counts everything in a range going from E3 to the end of the cells in use in that column.
Dimos Argento
2007-07-16 22:37:39 UTC
just insert a row between rows E3 & E25 and your formula will self adjust itself. If you add data into the new row, the formula wll pick it up. If you want to add it n the last row beforethe formula, the formula will not self adjust and not include he new data.
Michael
2007-07-16 22:33:27 UTC
Sorry can only change it yourself. Excel updates the information automaticaly when you change it in a specified box, but to make it update info with the new box YOU have to change it.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...