ludoviclalo
New Member
- Joined
- Sep 26, 2022
- Messages
- 5
- Office Version
- 365
- Platform
- Windows
Is there a way to add part of formula to multiple sheets are once where cell references are relative and may not be adjacent to each other?
For example, I start with November totals--
Sheet (Nov Totals): D3=SUM('Nov Data'!Z2:Z31)
Sheets (Cumulative through Nov): D3=SUM('Oct Totals'!D3,'Nov Totals'!D3)
and end with September totals--
Sheet (Sept Totals) D3=SUM('Sept Data'!Z2:Z31)
Sheet (Cumulative through Sept): D3=SUM('Oct Totals'!D3,'Nov Totals'!D3,'Dec Totals'!D3,'Jan Totals'!D3,'Feb Totals'!D3,'March Totals'!D3,'April Totals'!D3,'May Totals'!D3,'June Totals'!D3,'July Totals'!D3,'Aug Totals'!D3,'Sept Totals'!D3)
The problem is that it is tedious to manually add a new month to 522 different different formulas that capture data for the prior months. Is there a way to use find/replace, vba, or something to mass change the cumulative formulas so that I can add a month and have it applied to the entire sheet for that month?
Basically, change this D3=SUM('Oct Totals'!D3,'Nov Totals'!D3) to this D3=SUM('Oct Totals'!D3,'Nov Totals'!D3,'Dec Totals'!D3) for formulas in 522 cells at one time? This would be simple if D3 was static and the cells were adjacent, but they are not. The formula are the same or all 522 pieces of data, except for the cell references.
Thank you.
For example, I start with November totals--
Sheet (Nov Totals): D3=SUM('Nov Data'!Z2:Z31)
Sheets (Cumulative through Nov): D3=SUM('Oct Totals'!D3,'Nov Totals'!D3)
and end with September totals--
Sheet (Sept Totals) D3=SUM('Sept Data'!Z2:Z31)
Sheet (Cumulative through Sept): D3=SUM('Oct Totals'!D3,'Nov Totals'!D3,'Dec Totals'!D3,'Jan Totals'!D3,'Feb Totals'!D3,'March Totals'!D3,'April Totals'!D3,'May Totals'!D3,'June Totals'!D3,'July Totals'!D3,'Aug Totals'!D3,'Sept Totals'!D3)
The problem is that it is tedious to manually add a new month to 522 different different formulas that capture data for the prior months. Is there a way to use find/replace, vba, or something to mass change the cumulative formulas so that I can add a month and have it applied to the entire sheet for that month?
Basically, change this D3=SUM('Oct Totals'!D3,'Nov Totals'!D3) to this D3=SUM('Oct Totals'!D3,'Nov Totals'!D3,'Dec Totals'!D3) for formulas in 522 cells at one time? This would be simple if D3 was static and the cells were adjacent, but they are not. The formula are the same or all 522 pieces of data, except for the cell references.
Thank you.