Hi All,
I'm working on a project to automate a manual process currently in place and am struggling with one piece of the macro puzzle.
I have a spreadsheet with data across several columns and rows, separated by a blank row with totals underneath each data category. The totals are generated by the software from which the data is pulled and are static, so if any of the lines above them are changed they will not update. Each Total row has a specific name, ex: ***TOTAL PERSONNEL SERVICES***. The asterisks are part of the data dump so unfortunately I can't change them. The number of rows will vary with each dataset but the columns will remain the same.
What I'm looking for is code to add a sum formula for each of the categories that will capture all of the data above the total up until the blank row separator. I included an example of the format with some fake data below to help clarify how the data is laid out. I have more categories than the two below but didn't want to clutter the post.
Thanks for all of your help on this!
I'm working on a project to automate a manual process currently in place and am struggling with one piece of the macro puzzle.
I have a spreadsheet with data across several columns and rows, separated by a blank row with totals underneath each data category. The totals are generated by the software from which the data is pulled and are static, so if any of the lines above them are changed they will not update. Each Total row has a specific name, ex: ***TOTAL PERSONNEL SERVICES***. The asterisks are part of the data dump so unfortunately I can't change them. The number of rows will vary with each dataset but the columns will remain the same.
What I'm looking for is code to add a sum formula for each of the categories that will capture all of the data above the total up until the blank row separator. I included an example of the format with some fake data below to help clarify how the data is laid out. I have more categories than the two below but didn't want to clutter the post.
ACOUNT | DESCRIPTION | FY18 YE Actual | FY18 YTD Actual | Budget | FY19 YTD Actual | FY18/19 YTD Difference | Projection | Over/under | Proposed | proposed to mod |
PERSONNEL SERVICES | ||||||||||
60000 | Salaries | 50 | 60 | 100 | 20 | -40 | 100 | 20 | 200 | 9 |
60001 | FICA | 50 | 60 | 100 | 20 | -40 | 100 | 20 | 200 | 9 |
60002 | Insurance | 50 | 60 | 100 | 20 | -40 | 100 | 20 | 200 | 9 |
60003 | WC | 50 | 60 | 100 | 20 | -40 | 100 | 20 | 200 | 9 |
***TOTAL PERSONNEL SERVICES*** | 200 | 240 | 400 | 80 | -160 | 400 | 80 | 800 | 36 | |
SUPPLIES | ||||||||||
60010 | Office Supplies | 50 | 60 | 100 | 20 | -40 | 100 | 20 | 200 | 9 |
60020 | Office Furnishings | 50 | 60 | 100 | 20 | -40 | 100 | 20 | 200 | 9 |
60030 | Motor Parts | 50 | 60 | 100 | 20 | -40 | 100 | 20 | 200 | 9 |
60040 | Other Supplies | 50 | 60 | 100 | 20 | -40 | 100 | 20 | 200 | 9 |
***TOTAL SUPPLIES*** | 200 | 240 | 400 | 80 | -160 | 400 | 80 | 800 | 36 |
Thanks for all of your help on this!