Include Newly Added Row to Formula

Kolchak74

New Member
Joined
Feb 4, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I have a macro that adds a new row to the bottom of a list of tasks. Above the list is a formula that adds one of the columns. It's a simple SUM formula for the numbers in the rows below it.

When I add the new row at the bottom, the formula does not adjust to include the newly added row the way it would if the row was inserted in the middle of the list.

Can someone help me adjust the formula in the top right cell automatically after the row is inserted?

Construction Project Schedule Template.xlsm
ABEFGH
538Task Group Title2/17/20212/21/2021 
548.01Task 17.052/17/20212/17/2021
558.02Task 28.012/18/20212/18/2021
568.03Task 38.022/19/20212/19/2021
578.04Task 48.032/20/20212/20/2021
588.05Task 58.042/21/20212/21/2021
598.06  
Project Programme
Cell Formulas
RangeFormula
F53F53=IF(ISBLANK(F54),0,MIN(IF(F54:F58<>0,F54:F58)))
G53G53=IF(ISBLANK(G54),0,MAX(IF(G54:G58<>0,G54:G58)))
H53H53=SUM(H54:H58)
F54:F59F54=IF(ISBLANK(E54),0,IF(E54="None",$F$10,VLOOKUP(E54,$A$10:$G$71,7,FALSE)+1))
G54:G59G54=IF(ISBLANK(E54),0,IF(H54=0,F54,IF(D54="Mon-Fri Only",WORKDAY(F54,H54-1,0),F54+H54-1)))
A54:A59A54=ROUND(A53+0.01,2)
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

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