N
Nick M
I am trying to get a 12 cell average within a row, starting with the first
non-blank entry, working from left to right. All entries are numeric.
The following (inelegant) formula works, but is limited by the number of
conditions allowed in Excel.
=IF(H17<>"",AVERAGE(H17:S17),IF(I17<>"",AVERAGE(I17:T17),IF(J17<>"",AVERAGE(J17:U17),IF(K17<>"",AVERAGE(K17:V17),IF(L17<>"",AVERAGE(L17:W17),IF(M17<>"",AVERAGE(M17:X17),IF(N17<>"",AVERAGE(N17:Y17),AVERAGE(O17:Z17))))))))
Can anybody assist with a more elegant solution that will give the correct
average even if the last entry is more than 7 blanks away?
Thanks
non-blank entry, working from left to right. All entries are numeric.
The following (inelegant) formula works, but is limited by the number of
conditions allowed in Excel.
=IF(H17<>"",AVERAGE(H17:S17),IF(I17<>"",AVERAGE(I17:T17),IF(J17<>"",AVERAGE(J17:U17),IF(K17<>"",AVERAGE(K17:V17),IF(L17<>"",AVERAGE(L17:W17),IF(M17<>"",AVERAGE(M17:X17),IF(N17<>"",AVERAGE(N17:Y17),AVERAGE(O17:Z17))))))))
Can anybody assist with a more elegant solution that will give the correct
average even if the last entry is more than 7 blanks away?
Thanks