• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Need a total row between every set of data

ANKUSHRS1

Member
Hi Friends,

Please help me to get vba solution.

Please refer attached file for more details.
 

Attachments

  • chandoo sample.xlsx
    10.4 KB · Views: 2
Hi !​
Without any code just using an Excel basics : its subtotal inner feature.​
And if really a code is necessary : just activate the Excel Macro Recorder …​
 
ANKUSHRS1
... part of my a vba program
Okay, a basic idea:
1) Check the last rows A-column value
2) Solve needed Total sums of prev value eg with SumIfs ...
3) Add text 'Total' to below of the last row and add those sums
4) step as many rows up until A-column value will change
5) make a new row
6) repeat steps from 2 to 4 as many times as needed (notice which A-column value will be the last value)
 
Back
Top