Dynamic update of formula in excel

BMD44

Board Regular
Joined
Sep 25, 2019
Messages
72
Hi,

I have a scenario where in I need to update sum of the rows dynamically.


R17=A#AC_1510201000
R18=A#AC_1510203000
R19=A#AC_1510127000
R20=A#AC_1510127000
R21=A#AC_1510777000
R22=SCalc(Row(19)+Row(20)+Row(21)+Row(23))


In the above example, Row 22 is sum of R17 till R21. I reworked on the rows and the row numbers have changed. Now, I am looking for a way to have R22 dynamically updated to SCalc(Row(17)+Row(18)+Row(19)+Row(20)) instead of SCalc(Row(19)+Row(20)+Row(21)+Row(23)).
If a new row is added/deleted,then the formula should be updated dynamically. Can any one please suggest an approach.

Thanks in advance.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
by the sound of what you are trying to do , you are fighting against the excellent behaviour of excel where it updates all the equations when you insert of delete rows.
The only way can think of to get round this is to use the indirect function. However this a volatile function which means it is recalculated on every calculation so this could make your workbook slow
An example in using assuming trying to sume A1 to A10 with:
Code:
=SUM(A1:A11)
change this to:
Code:
=SUM(INDIRECT("A1:A10"))
 
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,665
Members
452,992
Latest member
TokugawaIesuma

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