This could do it.
(match(:Temp_Kelvin, -9999, 0, :Temp_Kelvin) +
match(:Temp2_Kelvin, -9999, 0, :Temp2_Kelvin) +
match(:Temp3_Kelvin, -9999, 0, :Temp3_Kelvin) )
/
(match(:Temp_Kelvin, -9999, 0, 1) +
match(:Temp2_Kelvin, -9999, 0, 1) +
match(:Temp3_Kelvin, -9999, 0, 1) )