`=IF(ISERROR(AVERAGE(INDIRECT("'INPUT - Elec'!" & SUBSTITUTE(ADDRESS(1,COLUMN(INDEX('INPUT - Elec'!$1:$1,0,MATCH(IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q1","Jan "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q2","Apr "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q3","Jul "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q4","Oct "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),"error")))),'INPUT - Elec'!$1:$1,0))),4),"1","") & ROW() & ":" & LEFT(ADDRESS(1,COLUMN(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(INDEX('INPUT - Elec'!$1:$1,0,MATCH(IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q1","Jan "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q2","Apr "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q3","Jul "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q4","Oct "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),"error")))),'INPUT - Elec'!$1:$1,0))),4),"1","")&"1"))+2,4),LEN(ADDRESS(1,COLUMN(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(INDEX('INPUT - Elec'!$1:$1,0,MATCH(IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q1","Jan "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q2","Apr "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q3","Jul "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q4","Oct "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),"error")))),'INPUT - Elec'!$1:$1,0))),4),"1","")&"1"))+2,4))-1) & ROW()))),"",AVERAGE(INDIRECT("'INPUT - Elec'!" & SUBSTITUTE(ADDRESS(1,COLUMN(INDEX('INPUT - Elec'!$1:$1,0,MATCH(IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q1","Jan "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q2","Apr "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q3","Jul "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q4","Oct "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),"error")))),'INPUT - Elec'!$1:$1,0))),4),"1","") & ROW() & ":" & LEFT(ADDRESS(1,COLUMN(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(INDEX('INPUT - Elec'!$1:$1,0,MATCH(IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q1","Jan "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q2","Apr "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q3","Jul "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q4","Oct "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),"error")))),'INPUT - Elec'!$1:$1,0))),4),"1","")&"1"))+2,4),LEN(ADDRESS(1,COLUMN(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(INDEX('INPUT - Elec'!$1:$1,0,MATCH(IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q1","Jan "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q2","Apr "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q3","Jul "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),IF(LEFT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2)="Q4","Oct "&RIGHT(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"$1"),2),"error")))),'INPUT - Elec'!$1:$1,0))),4),"1","")&"1"))+2,4))-1) & ROW())))`