|
回复11楼:不用VBA、IF、数组的计算方法
<TABLE style="WIDTH: 228pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=303 border=0 x:str>
<COLGROUP>
<COL style="WIDTH: 97pt; mso-width-source: userset; mso-width-alt: 3669" width=129>
<COL style="WIDTH: 77pt; mso-width-source: userset; mso-width-alt: 2901" width=102>
<COL style="WIDTH: 54pt" width=72>
<TBODY>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl25 style="WIDTH: 97pt; HEIGHT: 14.25pt" width=129 height=19 x:str="应纳税所得额">
<SPAN style="mso-spacerun: yes">1、建立如下表的税率表,并命名为“税率表”。</SPAN>
<SPAN style="mso-spacerun: yes"></SPAN>
<SPAN style="mso-spacerun: yes"> </SPAN>应纳税所得额
</TD>
<TD class=xl26 style="BORDER-LEFT: medium none; WIDTH: 77pt" width=102 x:str="速算扣除数"><SPAN style="mso-spacerun: yes"> </SPAN>速算扣除数 </TD>
<TD class=xl27 style="BORDER-LEFT: medium none; WIDTH: 54pt" width=72>税率</TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl28 style="BORDER-TOP: medium none; HEIGHT: 14.25pt" height=19 x:num="0"><SPAN style="mso-spacerun: yes"> </SPAN>-<SPAN style="mso-spacerun: yes"> </SPAN></TD>
<TD class=xl29 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" x:num="0"><SPAN style="mso-spacerun: yes"> </SPAN>-<SPAN style="mso-spacerun: yes"> </SPAN></TD>
<TD class=xl30 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right x:num="00.05">5%</TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl29 style="BORDER-TOP: medium none; HEIGHT: 14.25pt" height=19 x:num="501"><SPAN style="mso-spacerun: yes"> </SPAN>501 </TD>
<TD class=xl29 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" x:num="25"><SPAN style="mso-spacerun: yes"> </SPAN>25 </TD>
<TD class=xl30 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right x:num="00.1">10%</TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl29 style="BORDER-TOP: medium none; HEIGHT: 14.25pt" height=19 x:num="2001"><SPAN style="mso-spacerun: yes"> </SPAN>2,001 </TD>
<TD class=xl29 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" x:num="125"><SPAN style="mso-spacerun: yes"> </SPAN>125 </TD>
<TD class=xl30 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right x:num="00.15">15%</TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl29 style="BORDER-TOP: medium none; HEIGHT: 14.25pt" height=19 x:num="5001"><SPAN style="mso-spacerun: yes"> </SPAN>5,001 </TD>
<TD class=xl29 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" x:num="375"><SPAN style="mso-spacerun: yes"> </SPAN>375 </TD>
<TD class=xl30 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right x:num="00.2">20%</TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl29 style="BORDER-TOP: medium none; HEIGHT: 14.25pt" height=19 x:num="20001"><SPAN style="mso-spacerun: yes"> </SPAN>20,001 </TD>
<TD class=xl29 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" x:num="1375"><SPAN style="mso-spacerun: yes"> </SPAN>1,375 </TD>
<TD class=xl30 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right x:num="0.25">25%</TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl29 style="BORDER-TOP: medium none; HEIGHT: 14.25pt" height=19 x:num="40001"><SPAN style="mso-spacerun: yes"> </SPAN>40,001 </TD>
<TD class=xl29 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" x:num="3375"><SPAN style="mso-spacerun: yes"> </SPAN>3,375 </TD>
<TD class=xl30 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right x:num="00.3">30%</TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl29 style="BORDER-TOP: medium none; HEIGHT: 14.25pt" height=19 x:num="60001"><SPAN style="mso-spacerun: yes"> </SPAN>60,001 </TD>
<TD class=xl29 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" x:num="6375"><SPAN style="mso-spacerun: yes"> </SPAN>6,375 </TD>
<TD class=xl30 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right x:num="00.35">35%</TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl29 style="BORDER-TOP: medium none; HEIGHT: 14.25pt" height=19 x:num="80001"><SPAN style="mso-spacerun: yes"> </SPAN>80,001 </TD>
<TD class=xl29 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" x:num="10375"><SPAN style="mso-spacerun: yes"> </SPAN>10,375 </TD>
<TD class=xl30 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right x:num="00.4">40%</TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl29 style="BORDER-TOP: medium none; HEIGHT: 14.25pt" height=19 x:num="100001"><SPAN style="mso-spacerun: yes"> </SPAN>100,001 </TD>
<TD class=xl29 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" x:num="15375"><SPAN style="mso-spacerun: yes"> </SPAN>15,375 </TD>
<TD class=xl30 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right x:num="00.45">45%</TD></TR></TBODY></TABLE>
2、计算出应纳税所得额,即收入减去允许税前扣除的费用、社会保险费等。假设在E列,第一个数据在E2;
3、税率一列(设在F列)输入公式:=VLOOKUP(E2,税率表,3,1)
4、速算扣除数(设在G列)输入公式:=VLOOKUP(E2,税率表,2,1)
5、应纳所得税额(设在H列)输入公式:=E2*F2-G2。当然,这里可能需要可以加入一个IF函数,判断应纳税所得额是否小于0。不加入也可以,但<0时,计算结果会显示#N/A的出错信息。
贴上来的税率表显示不太正常,反正应纳税所得额、税率、数算扣除数应在同一行。
不知道这样表述是否清楚? |
|