Average Calculation Ignoring 0's and blank spaces
Some one help me please. I know nothing about Javascript, but I am trying to make my job easier. I need to create three text boxes that average the values of certain fields on a form. My fields are named A1-A33. I need one box that averages A1-A22, one box that averages A23-A33 and one that averages A1-A33. The issue I am running into is that I need the averages to exclude 0s and blank spaces from the equation. So if I only have A1-A14 with values in them, the number dispalyed in the first text box will be the average of 14 values instead of the average of 22 values. Again I have no background in Javascript so if some one could explain this to me as if I am a child that would be fantastic.
