Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 4609|回复: 4

[问题] 自制记账凭证的问题

[复制链接]
发表于 2008-9-11 00:53 | 显示全部楼层 |阅读模式
<p>如下表,我想实现借贷方金额自动填入。当A列输入金额2,354,367.98时能实现这些数字分别自动填入B,C至 J&nbsp; 列。而当K列输入345.12时,能自动填入L至T列,且要求对应元、角、分。</p><p></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B&nbsp;C&nbsp;D&nbsp; E&nbsp;&nbsp; F&nbsp;G&nbsp;&nbsp;H&nbsp;I&nbsp;&nbsp; J&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; K&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L&nbsp;M&nbsp;N&nbsp; O P Q&nbsp; R S&nbsp;&nbsp;T&nbsp;</p><p><table cellspacing="0" cellpadding="0" width="456" border="0" xstr="" style="WIDTH: 350pt; BORDER-COLLAPSE: collapse;"><colgroup><col width="100" style="WIDTH: 75pt; mso-width-source: userset; mso-width-alt: 3200;"></col><col span="8" width="14" style="WIDTH: 11pt; mso-width-source: userset; mso-width-alt: 448;"></col><col width="15" style="WIDTH: 11pt; mso-width-source: userset; mso-width-alt: 480;"></col><col width="2" style="WIDTH: 2pt; mso-width-source: userset; mso-width-alt: 64;"></col><col width="100" style="WIDTH: 75pt; mso-width-source: userset; mso-width-alt: 3200;"></col><col span="5" width="14" style="WIDTH: 11pt; mso-width-source: userset; mso-width-alt: 448;"></col><col width="14" style="WIDTH: 11pt; mso-width-source: userset; mso-width-alt: 448;"></col><col span="2" width="14" style="WIDTH: 11pt; mso-width-source: userset; mso-width-alt: 448;"></col><col width="15" style="WIDTH: 11pt; mso-width-source: userset; mso-width-alt: 480;"></col></colgroup><tbody><tr height="27" style="HEIGHT: 20.25pt; mso-height-source: userset;"><td class="xl39" width="100" height="54" rowspan="2" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 75pt; BORDER-BOTTOM: black 0.5pt solid; HEIGHT: 40.5pt; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">借方金额</font></p></td><td class="xl42" width="127" colspan="9" style="BORDER-RIGHT: black 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 99pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体">借方金额</font></p></td><td class="xl24" width="2" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 2pt; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"><p align="center"><font face="Times New Roman"> </font></p></td><td class="xl39" width="100" rowspan="2" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 75pt; BORDER-BOTTOM: black 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">贷方金额</font></p></td><td class="xl30" width="127" colspan="9" style="BORDER-RIGHT: black 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 99pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">贷方金额</font></p></td></tr><tr height="27" style="HEIGHT: 20.25pt; mso-height-source: userset;"><td class="xl46" height="27" style="BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 20.25pt; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">百</font></p></td><td class="xl35" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">十</font></p></td><td class="xl34" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">万</font></p></td><td class="xl46" style="BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">千</font></p></td><td class="xl35" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">百</font></p></td><td class="xl34" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">十</font></p></td><td class="xl36" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">元</font></p></td><td class="xl37" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: windowtext 1pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">角</font></p></td><td class="xl34" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">分</font></p></td><td class="xl25" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: windowtext; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"><p align="center"><font face="Times New Roman"> </font></p></td><td class="xl46" style="BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">百</font></p></td><td class="xl35" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">十</font></p></td><td class="xl34" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">万</font></p></td><td class="xl46" style="BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">千</font></p></td><td class="xl26" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">百</font></p></td><td class="xl34" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">十</font></p></td><td class="xl36" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">元</font></p></td><td class="xl37" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: windowtext 1pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">角</font></p></td><td class="xl26" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="center"><font face="宋体" size="2">分</font></p></td></tr><tr height="32" style="HEIGHT: 24pt; mso-height-source: userset;"><td class="xl28" height="32" xnum="2354367.98" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 24pt; BACKGROUND-COLOR: transparent;"><p align="right"><font face="Times New Roman" size="2">2,354,367.98</font></p></td><td class="xl45" style="BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: windowtext; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"> </font></td><td class="xl31" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"> </font></td><td class="xl32" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"> </font></td><td class="xl45" style="BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: windowtext; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"> </font></td><td class="xl31" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"> </font></td><td class="xl32" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"> </font></td><td class="xl33" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"> </font></td><td class="xl38" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 1pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"> </font></td><td class="xl32" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"> </font></td><td class="xl27" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #ece9d8; BORDER-LEFT: windowtext; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"><font face="Times New Roman"> </font></td><td class="xl28" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><p align="right"><font face="Times New Roman" size="2"> 345.12</font></p></td><td class="xl45" xnum="" style="BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: windowtext; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"></font></td><td class="xl31" xnum="" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"></font></td><td class="xl32" xnum="" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"></font></td><td class="xl45" xnum="" style="BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: windowtext; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"></font></td><td class="xl32" xnum="" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"></font></td><td class="xl32" xnum="" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"></font></td><td class="xl33" xnum="" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"></font></td><td class="xl38" xnum="" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 1pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"></font></td><td class="xl32" xnum="" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" size="2"></font></td></tr></tbody></table></p><p></p>
excel精英培训的微信平台,每天都会发送excel学习教程和资料。扫一扫明天就可以收到新教程
发表于 2008-9-11 07:34 | 显示全部楼层

L3=LEFT(RIGHT(" "&amp;$K$3*100,COLUMNS(L3:$T$3)))
回复

使用道具 举报

发表于 2008-9-11 08:04 | 显示全部楼层

<p>给个样子便于理解一剑惊心的公式:</p> vVrIr4dS.rar (3.47 KB, 下载次数: 74)
回复

使用道具 举报

 楼主| 发表于 2008-9-11 08:44 | 显示全部楼层

谢谢学良大虾,问题解决。再次感谢
回复

使用道具 举报

发表于 2011-1-19 09:36 | 显示全部楼层
是不是要用EXCEL2007以上版本才能打开
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-5-6 12:54 , Processed in 0.144425 second(s), 10 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表