首先,我觉得你的思路要改一下,像你那样,即不方便输入,也不方便计算,修改为下图样式:
1、将M2:M3作为手工输入区域,在M4输入
=M2+M3
2、在B2输入
=LEFT(RIGHT(TEXT($M2/1%," ¥0; -¥0;"),11-COLUMN(A1)))
右拉填充公式到K2再下拉填充到K4,自动完成数据分割并填列到相应栏。
3、B5输入
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXT(INT(M4),"[dbnum2]")&TEXT(RIGHT(M4/1%,2),"[dbnum2]元0角0分"),"零角","零"),"零分","整"),"零整","整")
将M4合计转换为大写。
选中A1:K5,设置页面打印区域(这样,打印时,就不可能打印出录入区的了)
具体见附件。
如果非要在你现有格式下得出结果,直接在你B5输入:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXT(B4&C4&D4&E4&F4&G4&H4&I4,"[dbnum2]")&TEXT(J4&K4,"[dbnum2]元0角0分"),"零角","零"),"零分","整"),"零整","整")