this is a update version of here.
Thanks @sktneer who helped me out solving the first part of problem, now I want to
- adjust on the code as I've added a few lines(rows) between table name and table, with added columns too
- add the formula to the right side of the table with table name
I have included some of my assumptions on the code (as comments) from previous answer in "failed attempt" image.
Would you guys please let me know if it's correct?
Because I don't fully understand how did the code works even though I did googled on the statements.
Try the below code. The code below will not insert the name of the class while making the Total summary. But the code will create a summary right to each table as you showed in your desired output, provided there is enough space for summary to the right of each table on the sheet otherwise the code will overwrite any data if found there.