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

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

SpillerBD

Well-known Member
Joined
Jul 2, 2014
Messages
2,765
"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?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,009
Messages
5,834,876
Members
430,325
Latest member
Thony

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