hi leigh
sorry for the ambiguity. i had a brain freeze.
i want to create dynamic ranges in VBA then insert that name into a cell (let's say B11, B12 and B13).
i have 6 worksheets all identical in calculation yet referring to 6 different reports (one worksheet for each report, teh report being the data range). the worksheets contain a SUMIF/INDEX/MATCH calculation to extract appropriate elements from the range. the INDIRECT is used to refer to the appropriate range. here's the formula, which by itself probably doesn't mean much:
=SUMIF(INDIRECT($B$12),$F35,INDEX(INDIRECT($B$11),0,MATCH(J$32,INDIRECT($B$13),0)))
i'm using formulas as the worksheets are a template in an application. when a new report (data range) is created an additional worksheet will be inserted into the model, dynamic ranges determined and appear on the worksheet and caluclations performed. also, the template needs to be easily updated by novice Excel users who want to see the formulas and be able to "evaluate" them.
Bookmarks