比如,小写在E列,大写在F列
选中要显示人民币大写的所有单元格,
然后,在编辑栏中输入:
=SUBSTITUTE(SUBSTITUTE(IF(-RMB(E2),TEXT(E2,";负")&TEXT(INT(ABS(E2)+0.5%),"[dbnum2]G/通用格式元;;")&TEXT(RIGHT(RMB(E2),2),"[dbnum2]0角0分;;整"),),"零角",IF(E2^2<1,,"零")),"零分","整")
按下CTRL+回车键,
之后,在E列每输入小写数据,F列即自动生成大写
比如,小写在E列,大写在F列
选中要显示人民币大写的所有单元格,
然后,在编辑栏中输入:
=SUBSTITUTE(SUBSTITUTE(IF(-RMB(E2),TEXT(E2,";负")&TEXT(INT(ABS(E2)+0.5%),"[dbnum2]G/通用格式元;;")&TEXT(RIGHT(RMB(E2),2),"[dbnum2]0角0分;;整"),),"零角",IF(E2^2<1,,"零")),"零分","整")
按下CTRL+回车键,
之后,在E列每输入小写数据,F列即自动生成大写