How to dynamically update formula in columns

eol666

New Member
Joined
Nov 25, 2023
Messages
3
Office Version
  1. 2021
Platform
  1. Windows
Per the attached spreadsheet I wish to be able to add a new column (Week 6) and have the formulas in H5, I5, J5 automatically reflect the new column.
Example.xlsx
ABCDEFGHIJ
1Week 1Week 2Week 3Week 4Week 5Week gain / lossNew MaxOld maxGain / Loss
2Investment 1500635400630925295
3Investment 2200325600100800700
4Investment 3100010005751200325-875
5Total Portfolio170019601575193020501202050196090
Sheet1
Cell Formulas
RangeFormula
G2:G5G2=INDEX(A:F,ROW(),COLUMN()-1)-INDEX(A:F,ROW(),COLUMN()-2)
B5:F5B5=SUM(B2:B4)
H5H5=MAX(B5:F5)
I5I5=MAX(B5:E5)
J5J5=SUM(F5-I5)
 

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.
Use real Excel Table. Everything works dynamically in tables
 
Upvote 0
I'm sorry I have no idea what a real Excel Table is. If you mean convert my spreadsheet to a table I tried that with no success. So I'm not understanding the solution.
 
Upvote 0
I had the formulas in column G updated to reflect the array correctly.
Example.xlsx
ABCDEFGHIJ
1Week 1Week 2Week 3Week 4Week 5Week gain / lossNew MaxOld maxGain / Loss
2Investment 1500635400630925295
3Investment 2200325600100800700
4Investment 3100010005751200325-875
5Total Portfolio170019601575193020501202050196090
Sheet1
Cell Formulas
RangeFormula
G2:G5G2=INDEX(A:G,ROW(),COLUMN()-1)-INDEX(A:G,ROW(),COLUMN()-2)
B5:F5B5=SUM(B2:B4)
H5H5=MAX(B5:F5)
I5I5=MAX(B5:E5)
J5J5=SUM(F5-I5)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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