VBA for multiply auto sum formulas

bieske22

New Member
Joined
Jun 27, 2017
Messages
2
Hello,

I'm working on a Excel document that automatically inserts formulas. In the attachment you can find an explanation (click here). I just started using VBA-codes and I can't find any solution for my problem.:confused:

I already found some VBA-codes that automatically insert the SUM formula at the end of a column, but I don't know if it's possible to insert multiply SUM formules in the same collum.

So my question is:
"Is it possible to create a VBA-code that inserts multiply SUM formulas in the same column with a dynamic range? I already have seen this solution but that only inserts a SUM formula at the end of the cells."

(If it's possible):

(1) Insert SUM formula to calculate the total of all subtotals;
(2) Insert multiply SUM formulas to calculate the subtotals;
(3) Insert an formula to calculate the total of one activity.

Keep in mind that the location of each cell in the column changes every time.

Thank you in advance! ;)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,215,061
Messages
6,122,921
Members
449,094
Latest member
teemeren

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