Column A has 12 rows (starting in row 3) for 12 months of electrical usage, column B has the actual kwh usage and column C through J are intended to calculate the cost per month using the provider's formula.
Row 15 has the totals for the 12 months and row 16 has the average.
I left a little space so row 21 starts the providers and has the following defined columns: Company, per month base cost (fixed such as $10/month), energy charge (cents/kwh), Low use fee (fixed amount), Low use criteria (less than so many kilowatt hours), Medium use rebate (fixed amount), Medium use criteria (so many kilowatt hours). Hi use rebate (fixed amount), Hi use criteria, delivery cost (fixed per month) and per kilowatt delivery cost (cents/kwh)
The formula is complex, for the first provider it's =B3*($C$21+$K$21)/100+$B$21+$J$21+IF(B3<$E$21;$D$21;0)+IF(AND(B3>$G$21;B3<$I$21);-$F$21;0)+IF(B3>$I$21;-$H$21;0)
Replicating this down the rows for a given provider is easy - it just works. The issue is that, for the next provider, $21 references need to change to $22, for the third provider its $23 and so on through $28.
The spreadsheet is attached.
I need a formula which will not only change B3 to B4 and so on down the sheet but also will change $21 references to $22 through #28 across the sheet.
I've "played" with absolute and relative references and can't seem to get the functionality i am looking for. The reason i need it is that some of the provider parameters have changed and i need to make modifications to the formulas.
Any help or ideas would be greatly appreciated, thanks.
| Edit: Changed subject, was Replicating cell references Make your post understandable by others -- MrProgrammer, forum moderator |