Inserting a a totals row every nth row.

Jake87

New Member
Joined
Aug 26, 2010
Messages
5
I have a list that looks like this:


Site-----Month--Use
Site A----Jan---10
Site A----Feb---5
Site B ----Jan---12
Site B ----Feb---6
Site C----Jan---5
Site C----Feb---3

I need something that will insert a row underneath each individual site grouping and that will sum the use column to look like this:

Site-------Month-Use
Site A------Jan---10
Site A------Feb---5
Total-------------15
Site B ------Jan---12
Site B ------Feb---6
Total-------------18
Site C------Jan---5
Site C------Feb---3
Total--------------8

I understand and can use a pivot table to do this, however i am looking for an alternative, as a pivot table will not work for what i need this to do. Can this be done somehow by pasteing a totals row every nth row or through a macro?

Thanks for any help in advance!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,215,208
Messages
6,123,642
Members
449,111
Latest member
ghennedy

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