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)&"分"))