利用excel中的IF函数和ROW函数来自动控制excel工作表要显示的行数
时间:2022-09-09 10:03:22
在建立工作表时,有时需要通过公式控制单元格的显示行数。
比如,本文的工作表中显示了贷款金额、贷款年限等数据,现在在根据贷款年限计算各期偿还金额,因此需要在工作表中建立“年份”列,进而进行计算。当贷款年限发生变化时, “年份”列的单元格显示行数也相应改变。
ROW函数实例:自动控制要显示的行数。实例详见下图所示:
当前工作表的B2单元格中显示了借款年限。选中A5单元格,在编辑栏中输入公式:=IF(ROW()-ROW($A$4)<=$B$2,ROW()-ROW($A$4),""),按
标签:IF函数,ROW函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
excel2003按内容分类的教程
2023-05-08 08:01:52
Excel的几大条件函数的使用,比如sumif、countif、if、sumproduct函数等等
2022-07-04 14:30:40
![](https://img.aspxhome.com/file/2023/5/a162925_0s.gif)
Word处理网页内容的技巧图文教程
2023-03-01 21:11:06
![](https://img.aspxhome.com/file/2023/4/29804_0s.jpg)
Win10系统错误代码0x80070057的解决方法
2023-11-21 01:48:45
![](https://img.aspxhome.com/file/2023/0/49340_0s.jpg)
iPadOS 16 正式版更新了哪些内容?
2023-06-10 09:27:17
![](https://img.aspxhome.com/file/2023/6/44986_0s.png)
Excel去除图表中的网格线的两种方法
2022-03-19 18:11:52
![](https://img.aspxhome.com/file/2023/6/a153736_0s.png)
在word2010中怎么为文档添加目录?
2022-12-22 12:05:04
![](https://img.aspxhome.com/file/2023/7/26297_0s.jpg)
Win10更新后开机变得很慢
2023-11-08 23:20:07
![](https://img.aspxhome.com/file/2023/0/48260_0s.jpg)
word怎么关闭页眉页脚?
2022-06-30 10:35:56
![](https://img.aspxhome.com/file/2023/8/35248_0s.png)
Excel中REPT函数的语法和用法
2023-04-26 02:21:26
![](https://img.aspxhome.com/file/2023/1/a156011_0s.png)
Excel合并的单元格怎么计算和值和平均值 Excel教程大全
2023-11-23 23:15:31
![](https://img.aspxhome.com/file/2023/2/a143372_0s.png)
DATEDIF 函数
2022-07-30 09:27:00
Wrod2007中进行设置不同页面设置页眉的操作方法
2022-04-18 13:59:29
怎样将扫描图片转为word
2023-07-08 07:13:42
excel 如何将代表日期的8位数变为日期数据
2022-11-14 07:05:07
![](https://img.aspxhome.com/file/2023/8/a161888_0s.jpg)
Excel中负数显示红色/小于某个数值用红色显示的操作方法
2022-04-02 05:08:25
Win7软件可以兼容Win10吗?Win10系统兼容Win7软件的设置方法
2023-12-07 19:37:48
![](https://img.aspxhome.com/file/2023/0/51150_0s.png)
word打字时后面的字消失怎么回事 轻松一键解决打字后面文字消失的方法
2023-09-25 07:47:48
![](https://img.aspxhome.com/file/2023/1/24511_0s.jpg)
添加的批注将被隐藏起来
2023-01-17 22:50:59
excel默认的工作表数量该怎么修改超过3个?
2023-10-19 11:09:37
![](https://img.aspxhome.com/file/2023/3/41463_0s.jpg)