我在填寫(xiě)發(fā)票金額時(shí),怎么能在輸入123456.52時(shí),自動(dòng)給拆成¥1 2 3 4 5 6 5 2 的形式并且隨我輸入的長(zhǎng)度改變而改變?
  回復(fù)內(nèi)容:
  例如:在A1輸入小寫(xiě)金額,則:
  千萬(wàn):B1=IF(A1>=10000000,MID(RIGHTB(A1*100,10),1,1),IF(A1>=1000000,"¥",0))
  百萬(wàn):C1=IF(A1>=1000000,MID(RIGHTB(A1*100,9),1,1),IF(A1>=100000,"¥",0))
  十萬(wàn):D1=IF(A1>=100000,MID(RIGHTB(A1*100,8),1,1),IF(A1>=10000,"¥",0))
  萬(wàn):E1=IF(A1>=10000,MID(RIGHTB(A1*100,7),1,1),IF(A1>=1000,"¥",0))
  千:F1=IF(A1>=1000,MID(RIGHTB(A1*100,6),1,1),IF(A1>=100,"¥",0))
  百:G1=IF(A1>=100,MID(RIGHTB(A1*100,5),1,1),IF(A1>=10,"¥",0))
  十:H1=IF(A1>=10,MID(RIGHTB(A1*100,4),1,1),IF(A1>=1,"¥",0))
  元:I1=IF(A1>=1,MID(RIGHTB(A1*100,3),1,1),IF(A1>=0.1,"¥",0))
  角:J1=IF(A1>=0.1,MID(RIGHTB(A1*100,2),1,1),IF(A1>=0.01,"¥",0))
  分:K1=IF(A1>=0.01,RIGHTB(A1*100,1),0)