VBA use AutoSum Dynamic Range to Create another Function

DanMor

New Member
Joined
May 31, 2018
Messages
4
I have an autosum function that works well with dynamic ranges and would like to use the output to create another dynamic function.

CDEFGHIJKLM
37Project 1
42Project 2
53.25Project 3
612.2512.25
74.98Project 4
82.58Project 5
93Project 6
103.92Project 7
1114.4814.50
124Project 8
135.5Project 9
149.59.50

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Practice



CDEFGHIJKLM
37Project 1
42Project 2
53.25Project 3
612.2512.25
74.98Project 4
82.58Project 5
93Project 6
103.92Project 7
1114.4814.50
124Project 8
135.5Project 9
149.59.50

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Practice

Worksheet Formulas
CellFormula
C6=SUM($C3:$C5)
E6=CEILING(C:C,0.25)
C11=SUM($C7:$C10)
E11=CEILING(C:C,0.25)
C14=SUM($C12:$C13)
E14=CEILING(C:C,0.25)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



I would like to autosum; M6=sum(F3+G3+H3+I3+K3:L5)
M11=sum(F7+G7+H7+I7+K7:L10)
M14=sum(F12+G12+H12+I12+K12:L13)

Note with this pattern cell C6 sums rows 3 through 5. The last item in cell M6 uses the 3 and 5 and the pattern repeats.

Each week the number of projects changes and the grouping would change. The table always starts with Row 3. But the next week for example could be M8=(F3+...+K3:L7), M15=(F9+...+K9:L14), M21=(F16+...+K16:L20).

Thank you in advance with any help on this.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,214,973
Messages
6,122,534
Members
449,088
Latest member
RandomExceller01

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