clear Dime atemp(500) FOR ia=1 TO ALEN(atemp) atemp[ia] = 1000+ia ENDFOR oExcel= CREATEOBJECT("Excel.Application") ?ROUND(oExcel.Application.STDEV(@atemp),8) ?ROUND(oExcel.Application.STDEVP(@atemp),8) oExcel.quit oExcel=.NULL. release oExcel CREATE CURSOR ctemp (fldn n(4)) FOR ia=1 TO ALEN(atemp) INSERT INTO CTEMP VALUES (atemp[ia]) endfor SET DECIMALS TO 9 CALCULATE std(fldn) TO ln ?ROUND(ln,8) && as STDEVP Excel function ?ROUND(ln*SQRT(ALEN(Atemp)/(ALEN(atemp)-1)),8) && as STDEV Excel function set deci to 2>The std() (standard deviation) function is returning a value different from Excel when calculating over the same set o values.