Reputation: 63
But the problem is that new columns are always added
Suppose at the present moment I have the last column named 'w'.
=sum(a1:w1)
will Do the job of adding all the cell values in first row
What can I do if new column is added? I don't want to keep editing =sum() manually.
Upvotes: 1
Views: 52
Reputation: 1
you can either add new column before W column and then move it behind W column or you can do some advanced sum:
=SUM(INDIRECT(ADDRESS(1, 1)&":"&ADDRESS(1, COLUMNS(1:1))))
or shorter:
=SUM(A1:1)
Upvotes: 0