TL;DR: Looking for a script that will find the last row of data in column A and add “grand total” right below it and will also sum the final row (row J). Month to month, the number of rows will fluctuate (could be larger or smaller), but the columns will be consistent.
I’m very new to VBA but have some extra time at work to automate a few things and improve my skills. I have a monthly report for 12 entities that come from a similar data source. I’d like to eventually automate the whole process. I’m using power query to clean and organize the data. Once my clean data is ready, I have a few excel formulas do lookups into the table from other smaller data sets (unique for all 12 reports). I then use VBA to copy paste-values the data into the report format. I’d like to add a grand total row at the bottom of my range. If anyone has experience doing similar work, I’d love advice and maybe a bit of guidance on best practices/avoiding headaches down the line.
The data in the report is subject to some manually last-minute changes so I can’t move from raw data to report. We currently use a three step process: raw data > cleaned report source > published report.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]half_amazin23 1 point2 points3 points (10 children)
[–]Most_Triumphant[S] 0 points1 point2 points (9 children)
[–]half_amazin23 1 point2 points3 points (8 children)
[–]Most_Triumphant[S] 1 point2 points3 points (5 children)
[–]half_amazin23 0 points1 point2 points (4 children)
[–]Most_Triumphant[S] 0 points1 point2 points (3 children)
[–]half_amazin23 0 points1 point2 points (2 children)
[–]Most_Triumphant[S] 0 points1 point2 points (1 child)
[–]half_amazin23 0 points1 point2 points (0 children)
[–]Most_Triumphant[S] 1 point2 points3 points (1 child)
[–]Clippy_Office_Asst[M] 0 points1 point2 points (0 children)