2017-10-12 2 views
0
I Create a new Excel 2013 file 
I select the three first cells in column A 
I select format cell 
I choose Number 
I check Use thousand separator 
I choose 0 decimal 
I enter in A1 the number 961748947 
I enter in A2 the number 961748941 
I enter in A3 = A1 * A2 

Excel displays in A3 the value of 924 961 031 285 115 000 
instead of      924 961 031 285 115 127 

왜 Excel 2013 값을 반올림합니까? 정확한 결과를 얻으려면 어떻게해야합니까?왜 Excel 2013에서 셀이 생성됩니까?

+1

Excel의 정확도는 15 자리입니다. 숫자가 15 자리보다 커서 Excel에서 처음 15 자리를 올바르게 계산할 수 있습니다. 큰 숫자로 작업하는 경우 다른 프로그램이나 계산기가 필요할 것입니다. – tigeravatar

답변

1

@tigeravatar에 따르면 Excel의 정밀도는 최대 15 자리입니다. 올바른 결과를 가질 수

Function Times(ParamArray v()) 

    Dim j As Long 
    Times = CDec(1) 

    For j = 0 To UBound(v) 
     Times = Times * v(j) 
    Next j 

    If WorksheetFunction.Log10(Times) > 15 Then 
     Times = FormatNumber(Times, , , vbTrue) 
    End If 

End Function 

이 방법 :하지만이 post #10에서, 사용자 정의 기능을 사용할 수 있습니다.

관련 문제