Hi, if i import data from a file into a visual basic program then want to find the mean of that data is their a code/function within vb to do this or do you have to call the numbers and do maths functions?? Please advise Thanks Dan
Just create a function to find the total, and divide by that like: Private Function FindAverage(ByVal Vals as ArrayList) Dim RetVal as Decimal = 0.0 For x = 0 to ubound(Vals.Count) RetVal += Vals(x) next FindAverage = Integer.Parse((RetVal/Vals.Count) * 100) End Function (This is just quick trhown together, not tested) BUt I hope it gets you on yoru way!