楼主 rongjun |
Q: 如何把数值四舍五入保留3位有效数字?
A: 以下公式任选其一:
- =FIXED(A2,2-RIGHT(TEXT(A2,"0.00E+00"),3),1)
- =IF(ABS(--TEXT(A2,"0.00E+00"))>=1000,TEXT(A2,"0.00E+00"),FIXED(A2,2-RIGHT(TEXT(A2,"0.00E+00"),3),1))
- =IF(ABS(--TEXT(A2,"0.00E+00"))>=1000,TEXT(A2,"0.00E+00"),LEFT(TEXT(TEXT(A2,"0.00E+00"),"0.0"&REPT(0,20)),(A2<0)+ABS(RIGHT(TEXT(A2,"0.00E+00"),3)+TEXT(RIGHT(TEXT(A2,"0.00E+00"),3),"[=2]1;[=1]3;4"))))
如何把数值四舍五入保留3位有效数字?.rar |
6楼 Violet_Universe |
- =IF(--RIGHT(TEXT(A1,"0.E+00"),3)<2,TEXT(A1,"0."&REPT(0,2-RIGHT(TEXT(A1,"0.E+00"),3))),ROUND(A1,2-RIGHT(TEXT(A1,"0.E+00"),3)))
|