excel用数组公式获取一列中的第一个非空单元格值
时间:2023-10-09 13:18:04
可以用多种方法获取一列或一行中的第一个非空单元格值,例如下面的几个数组公式:
获取一列中第一个非空单元格值,假设数据在A1:A10区域中:
=INDEX(A1:A10,MATCH(TRUE,LEN(A1:A10)<>0,0),1)
=INDEX(A1:A10,MATCH(,0/(A1:A10<>""),))
=INDEX(A1:A10,SMALL(IF(A1:A10<>"",ROW(A1:A10)),1))
公式输入完毕后按Ctrl+Shift+Enter结束。
获取一行中的第一个非空单元格值,假如数据在A1:H1区域中:
=INDEX(A1:H1,0,MATCH(TRUE,LEN(A1:H1)<>0,0))
=INDEX(A1:H1,0,MATCH(,0/(A1:H1<>""),))
=INDEX(A1:H1,,SMALL(IF(A1:H1<>"",COLUMN(A1:H1)),1))
公式输入完毕后按Ctrl+Shift+Enter结束。
标签:公式,单元格,数组,第一个,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win7禁用粘滞键(连续按 Shift 五次)的方法
2023-07-19 19:53:15
![](https://img.aspxhome.com/file/2023/29/a251926_0s.jpg)
Win10如何内录
2022-05-09 22:36:34
![](https://img.aspxhome.com/file/2023/29/a262361_0s.png)
Word文档怎么添加项目符号
2022-07-03 23:04:12
![](https://img.aspxhome.com/file/2023/7/32077_0s.png)
win10怪物猎人世界进不去内存不够怎么办解决教程
2023-07-23 00:13:25
![](https://img.aspxhome.com/file/2023/2/a290343_0s.jpg)
wps表格小技巧之如何克隆表格
2023-08-02 15:34:42
![](https://img.aspxhome.com/file/2023/7/a165687_0s.jpg)
Siri七大隐藏功能解密
2022-05-09 03:24:06
win7系统怎样提高鼠标指针精确度
2022-10-09 17:30:49
![](https://img.aspxhome.com/file/2023/5/a316639_0s.jpg)
CPU超频以致声卡出现爆音/无声故障怎么办?
2022-02-26 21:44:04
![](https://img.aspxhome.com/file/2023/6/a326222_0s.jpg)
石墨文档怎么进行高级筛选?石墨文档进行高级筛选的方法
2022-03-13 09:30:25
![](https://img.aspxhome.com/file/2023/30/a269276_0s.jpg)
Eclipse软件导入Java工程文件的操作方法
2023-02-11 19:19:54
![](https://img.aspxhome.com/file/2023/3/a296530_0s.jpg)
Win10显示系统资源不足该如何解决?Win10显示系统资源不足的解决方法
2023-10-01 07:13:36
![](https://img.aspxhome.com/file/2023/26/a223520_0s.png)
在Win11上修改声音输出的设备的四种方法
2023-09-18 04:06:34
![](https://img.aspxhome.com/file/2023/1/a274518_0s.jpg)
Win7开机提示注册表错误0xc0000e9的处理方法
2023-02-15 10:59:11
![](https://img.aspxhome.com/file/2023/27/a232448_0s.jpg)
Win10系统中镜像install.wim文件大于4G如何解决?
2022-08-25 01:10:28
![](https://img.aspxhome.com/file/2023/4/a304992_0s.jpg)
wps字数
2023-03-23 02:07:57
![](https://img.aspxhome.com/file/2023/3/a169583_0s.jpg)
宏碁非凡Go 14笔记本如何重装系统?重装宏碁非凡Go 14笔记本的方法
2022-05-22 11:21:14
![](https://img.aspxhome.com/file/2023/25/a216933_0s.png)
PowerPoint 2010:强化视频表现力
2022-04-26 23:53:08
![](https://img.aspxhome.com/file/2023/10/a345250_0s.jpg)
如何在Word 2013中对图片进行基本编辑?
2023-05-02 15:41:57
![](https://img.aspxhome.com/file/2023/1/23251_0s.jpg)
Word2013中怎样对照不同文字内容的格式
2023-12-10 04:57:36
![](https://img.aspxhome.com/file/2023/9/20749_0s.jpg)
关闭了刚打开的文档,又不记得文档的位置,怎么办?
2023-10-30 00:55:39
![](https://img.aspxhome.com/file/2023/1/16421_0s.jpg)