Take the Average kWH and multiply it by:
=SubstationUsageData[[#This Row],[Average kWh]]*
If Revenue Class is equal to whatever is in cell B25 on the Customer Cost Calculations sheet or is whatever is in cell E3 is equal to cell B31 in the Customer Cost Calculations sheet then
IF(OR(SubstationUsageData[[#This Row],[Revenue Class]]='Customer Cost Calculations'!$B$25,E3='Customer Cost Calculations'!$B$31),
look up the Rate Schedule in cells C25 - C35 on the Customer Cost Calculations sheet and find the value in column I of that row
VLOOKUP(SubstationUsageData[[#This Row],[Rate Schedule]],'Customer Cost Calculations'!$C$25:$I$35,7,FALSE),
Otherwise look up the Revenue Class in cells B4 – B24 of the Customer Cost Calculations sheet and find the value in column I of that row
VLOOKUP(SubstationUsageData[[#This Row],[Revenue Class]],'Customer Cost Calculations'!$B$4:$I$24,8,FALSE))
Bookmarks