TechnoGeek and Salmon Trout, thank you, but that will not work. Let me clarify what I am doing.
I am running year to year comparisons of attendance at my organization for year to date, updated monthly. So for example, I am comparing data from January to February of 2013 with data from January to February for 2012, 2011...1997. At the end of March I need to change this it be a comparison of January to March for all the relevant years. All the data from previous years is already entered in the spreadsheets. I am working on macros to decrease the time it takes to update these comparisons.
What I don't know how to do is make a macro that
increases the formula area by 1 cell so that I can change my monthly comparisons with the click of a button.
If we go back to my original example:
Example:
Cell A1 has the formula =SUM(B1:B3). Cell A2 has the formula =SUM(C1:C3). Increase the formula area for A1 and A2 to include B4 and C4 respectively. Then include B5 and C5, and so on. What I need is a way to adjust both formulas on an ongoing basis while only editing one cell each time.
Pretend that cells B4:B12 and C4:C12 are not empty. They already have data in them that I just do not want to have included in the formula yet.
Oldun; I tried your formulas, but either they are an extension of what TechnoGeek and Salmon Trout were saying, or I am missing something. If this formula can accomplish what I described above, let me know and I will play around with it some more.
Thank you for all your help!