在Excel 2010 VBA中将数字分成数千,数百,数十和单位 [英] Separating Numbers into Thousands, Hundreds, Tens and Units in Excel 2010 VBA

查看:87
本文介绍了在Excel 2010 VBA中将数字分成数千,数百,数十和单位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


您能帮我找到将数字分成数千,数百,数十和单位等的方式吗?


例如,我在单元格A1中有1485,3,并且我想在例如"B"列中分割该数字的例程。那样:


B1:1000


B2:  400


B3:    80


B4:    5


B5:    3

解决方案

尝试使用MOD公式。


= MOD(A1,1000)返回485,3


那么如果数字是11453,0,你想在B1中发生什么?


如果它只有485,那该怎么办? 3 


Hello,

Can you please help me to find the way of splitting number into Thousands, Hundreds, Tens and Units, etc.?

For example I have 1485,3 in cell A1 and I would like to make the routine that splits this number in column "B" like that:

B1: 1000

B2:  400

B3:   80

B4:    5

B5:    3

解决方案

Try just using the MOD formula.

=MOD(A1,1000) returns 485,3

So what do you want to have happen in B1 if the number is 11453,0 ?

What if its only 485,3  ?


这篇关于在Excel 2010 VBA中将数字分成数千,数百,数十和单位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆