vb help to automate standard excel formulas

steve2115

Board Regular
Joined
Mar 17, 2014
Messages
79
Need help with vb to code automate excel formulas

I have a sheet named "IHS-AUTO" and currently have standard excel formulas doing the following calculations on the sheet, however when the sheet is updated I do not know where the last table entry will reside. Need vb code to perform the calculations to the last table entry.

the first table entry will always be in cell A11:G11, the next record would be A12:G12, and so on. As mentioned above I would not know where the last entry would be when the table gets updated.

Would like vb code to perform the following calculations on each line to the last record of the table

Column H - =IF($G11="","",$F11-$G11)
Column I - =IF(I10="Delivered","",H11-H10)
Column J - =IF(MONTH(A12)=12,SUM($I1:$I12),"")
 

Some videos you may like

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

SpillerBD

Well-known Member
Joined
Jul 2, 2014
Messages
2,707
"When the Sheet is Updated..."
Do you mean the sheet is replaced with a new data set, or is additional data being added to the existing data?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,964
Messages
5,599,069
Members
414,281
Latest member
Engjamal2021

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
Top