怎样在EXCEL中数字转人民币大写
3个回答
展开全部
可以用这个函数,相对比较简单一些:
=IF(A1<=0,,TEXT(INT(A1),"[dbnum2]人民币G/通用格式")&"元"&IF(INT(A1*10)-INT(A1)*10=0,IF(INT(A1)*(INT(A1*100)-INT(A1*10)*10)=0,"","零"),TEXT(INT(A1*10)-INT(A1)*10,"[dbnum2]")&"角")&IF((INT(A1*100)-INT(A1*10)*10)=0,"整",TEXT((INT(A1*100)-INT(A1*10)*10),"[dbnum2]")&"分"))
=IF(A1<=0,,TEXT(INT(A1),"[dbnum2]人民币G/通用格式")&"元"&IF(INT(A1*10)-INT(A1)*10=0,IF(INT(A1)*(INT(A1*100)-INT(A1*10)*10)=0,"","零"),TEXT(INT(A1*10)-INT(A1)*10,"[dbnum2]")&"角")&IF((INT(A1*100)-INT(A1*10)*10)=0,"整",TEXT((INT(A1*100)-INT(A1*10)*10),"[dbnum2]")&"分"))
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这里引用的是C3单元格,在记事本里改一下,再复制到Excel里就可以了!
以下就是函数了:="大写:"&IF(TRIM(C3)="","",IF(C3=0,"","人民币"&IF(C3<0,"负",)&IF(INT(C3),TEXT(INT(ABS(C3)),"[dbnum2]")&"圆",)&IF(INT(ABS(C3)*10)-INT(ABS(C3))*10,TEXT(INT(ABS(C3)*10)-INT(ABS(C3))*10,"[dbnum2]")&"角",IF(INT(ABS(C3))=ABS(C3),,IF(ABS(C3)<0.1,,"零")))&IF(ROUND(ABS(C3)*100-INT(ABS(C3)*10)*10,),TEXT(ROUND(ABS(C3)*100-INT(ABS(C3)*10)*10,),"[dbnum2]")&"分","整")))
以下就是函数了:="大写:"&IF(TRIM(C3)="","",IF(C3=0,"","人民币"&IF(C3<0,"负",)&IF(INT(C3),TEXT(INT(ABS(C3)),"[dbnum2]")&"圆",)&IF(INT(ABS(C3)*10)-INT(ABS(C3))*10,TEXT(INT(ABS(C3)*10)-INT(ABS(C3))*10,"[dbnum2]")&"角",IF(INT(ABS(C3))=ABS(C3),,IF(ABS(C3)<0.1,,"零")))&IF(ROUND(ABS(C3)*100-INT(ABS(C3)*10)*10,),TEXT(ROUND(ABS(C3)*100-INT(ABS(C3)*10)*10,),"[dbnum2]")&"分","整")))
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询