EXCEL中如果小数部分是0.5,0.25,0.125为0.5 ;0.625,0.375,0.75为1;0.875为1.5

问题描述:

EXCEL中如果小数部分是0.5,0.25,0.125为0.5 ;0.625,0.375,0.75为1;0.875为1.5
首先谢谢各位大虾,例如:(5.25;42.125;18.5自动变为11;85;37)计整数位的2倍再加1例如:(5.625;42.375;18.5自动变为12;86;38)计整数位的2倍再加2例如:(5.375.13);总之是:遇到0.5;0.25;0.125的整数 变2倍小数变1其他同理谢谢大家了!

=2*(INT(A1)+VLOOKUP(A1-INT(A1),{0.5,0.5;0.25,0.5;0.125,0.5;0.625,1;0.375,1;0.75,1;0.875,1.5},2,0) )