trunc数字货币
⑴ EXCEL表格汇总时货币怎样自然生成大写元角分整
=SUBSTITUTE(SUBSTITUTE(TEXT(TRUNC(FIXED(A1)),"[>0][dbnum2];[<0]负[dbnum2];;")&TEXT(RIGHT(FIXED(A1),2),"元[dbnum2]0角0分;;"&IF(ABS(A1)>1%,"元整",)),"零角",IF(ABS(A1)<1,,"零")),"零分","整")
自定义单元格格式为
[DBNum2][$-804]yyyy"年"mm"月"dd"日"
⑵ 在Excel使用中,如何将货币的数字变成中文的大写啊
在需要输出格式中输入公式=IF(A2<0,"负","")&TEXT(TRUNC(ABS(ROUND(A2,2))),"[DBNum2]")&"元"&IF(ISERR(FIND(".",ROUND(A2,2))),"",TEXT(RIGHT(TRUNC(ROUND(A2,2)*10)),"[DBNum2]"))&IF(ISERR(FIND(".0",TEXT(A2,"0.00"))),"角","")&IF(LEFT(RIGHT(ROUND(A2,2),3))=".",TEXT(RIGHT(ROUND(A2,2)),"[DBNum2]")&"分","整"),A2为货币数字格
⑶ 请问如何将excel的货币转换成中文大写
=TEXT(A1*100,"人民币0拾0万0仟0佰0拾0元0角0分[dbnum2]")
⑷ excel单元格中大写金额前面怎样自动加“人民币”
将需要的单元格选定→右键→设置单元格格式→数字→自定义→然后将左边显示的“G/通用格式”前面添加"人民币" →最后确定,即可,试试哦!
⑸ 在excel中如何设置亿仟佰拾万仟佰拾元角分
EXCEL中数字转人民币大写,
这是个经典问题,公式很多,给你推荐一个。若数字值在C7中公式如下:
=SUBSTITUTE(SUBSTITUTE(TEXT(TRUNC(FIXED(C7)),"[dbnum2]G/通用格式元;负[dbnum2]G/通用格式元;"&IF(C7>-0.5%,,"负"))&TEXT(RIGHT(FIXED(C7),2),"[dbnum2]0角0分;;"&IF(ABS(C7)>1%,"整",)),"零角",IF(ABS(C7)<1,,"零")),"零分","整")
⑹ EXCEL 单元格里的货币(含小数点)数字格式如何用公式转为文本
=SUBSTITUTE(IF(A2,IF(A2<0,"负",)&TEXT(TRUNC(A2),"[dbnum2]g/通用格式元;[dbnum2]g/通用格式元;")&TEXT(RIGHT(RMB(A2),2),"[>9][dbnum2]0角0分;[>0][dbnum2]00分;整"),"零元"),"零分","整")
⑺ Oracle里显示数字为货币时用tochar怎么指定货币符号
select '¥'||to_char(trunc(400000.8888,2),'999,999.00') from al
或
select to_char(trunc(400000.8888,2),'L999,999.00') from al
(L(本地货币符号),要设置)
⑻ word VBA解决数字变货币形式
如A1为数据,在B1中输入下列公式
=IF(A1<0,"负","")&IF(TRUNC(ROUND(A1,2))=0,"",TEXT(TRUNC(ABS(ROUND(A1,2))),"[DBNum2]")&"圆")&IF(ISERR(FIND(".",ROUND(A1,2))),"",TEXT(RIGHT(TRUNC(ROUND(A1,2)*10)),"[DBNum2]"))&"角"&IF(ISERR(FIND(".0",TEXT(A1,"0.00"))),"","")&IF(LEFT(RIGHT(ROUND(A1,2),3))=".",TEXT(RIGHT(ROUND(A1,2)),"[DBNum2]")&"","")&"分"
⑼ sql 货币的字段要求取出万,千,百、。。。分位上的数字 怎么写啊/
select '万:'||substr(trunc(12300.6/10000),-1)||'千:'||substr(trunc(12300.6/1000),-1)||'百:'||substr(trunc(12300.6/100),-1)||'十:'||substr(trunc(12300.6/10),-1)||'个:'||substr(trunc(12300.6/1),-1) ||'角:'||substr(trunc(12345.67/0.1),-1)||'分:'||substr(trunc(12345.67/0.01),-1) from al 其实可以自己写个方法 我写的sql是最呆的
⑽ EXCEL如何将数字金额转换为中文大写美元
用numberstring函数。
如:将a2单元格的531转换成大写,则公式
=numberstring(a2,2):此时得出:伍佰叁拾壹
=numberstring(a2,1):此时得出:五百三十一
=numberstring(a2,3):此时得出:五三一
如要将数字读出:则用此公式
=if(iserror(find(".",a2)),numberstring(int(a2),2)&"元整",if(iserror(numberstring(mid(a2,find(".",a2)+2,1),2)),numberstring(int(a2),2)&"元"&numberstring(mid(a2,find(".",a2)+1,1),2)&"角整",numberstring(int(a2),2)&"元"&numberstring(mid(a2,find(".",a2)+1,1),2)&"角"&numberstring(mid(a2,find(".",a2)+2,1),2)&"分"))