Dynamically sum up columns in a table

LearnNewThings

New Member
Joined
Aug 27, 2019
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hello!

I am looking to sum up all columns to the right of column J (sum will reside in column J). The data is in a table that could have additional columns added at a later time, so I want to be able to build the formula with dynamic abilities to adjust as new columns are added.

Thanks in advance!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi LearnNewThings,

This should work as long as your table starts on column A. And is actually a table in excel.

Formula below:
=SUM(OFFSET([@J],,1):OFFSET([@J],,COLUMNS(Table)-COLUMN([@J])))

Change as req'd. The J in the formula, change to column name. 'Table' -> rename to what your table is actually called.

Logic as follows:
-OFFSET([@J],,1) - Sum starting from the cell to the right of Column J

-OFFSET([@J],,COLUMNS(Table)-COLUMN([@J])) - Finds the last column in the table by counting however many columns there are in the table then subtracting what the number for Column J = 10

Good luck!


Book1
ABCDEFGHIJKLMNOPQRSTU
1ABCDEFGHIJ1234567891011
21111111111111
32222222222222
43333333333333
54444444444444
65555555555555
76666666666666
Sheet1
Cell Formulas
RangeFormula
J2:J7J2=SUM(OFFSET([@J],,1):OFFSET([@J],,COLUMNS(Table)-COLUMN([@J])))
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

If you have 365 a non volatile option is
Excel Formula:
=SUM(DROP(Table1[@],,10))
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

If you have 365 a non volatile option is
Excel Formula:
=SUM(DROP(Table1[@],,10))
I've updated my account to show I am using 365.

This solution was very clean and worked out perfectly! Thanks so much!!
 
Upvote 0

Forum statistics

Threads
1,215,362
Messages
6,124,502
Members
449,166
Latest member
hokjock

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top