vb help to automate standard excel formulas

steve2115

Board Regular
Joined
Mar 17, 2014
Messages
82
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),"")
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
"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?
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,538
Members
449,038
Latest member
Guest1337

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