Excel中一对多查找,不用vlookup函数用什么?
时间:2023-08-19 04:19:13
在excel中经常需要用到一对多查找,进而实现筛选功能。vlookup函数可以实现但公式很难理解。这时我们可以使用最常用的index+Small公式组合。
【例】的客户消费明细表中,要求在E列根据E1的姓名,查找出所有该客户的消费金额。
E3公式:(数组公式,输入后按ctrl+shift+enter三键结束)
=IFERROR(INDEX(B:B,SMALL(IF(A$2:A$11=$E$1,ROW($2:$11)),ROW(A1))),"")
公式说明:
IF(A$2:A$11=$E$1,ROW($2:$11) 把所有客户名称和E1进行对比,如果相同则返回行号,否则值为FALSE。
Small(..,row(a1)) 随着公式的向下复制,逐个提取该客户所在的每一个行号数字
Index() 根据行号提取出B列的消费金额
IFERROR() 把公式产生错误值时修改为""(空白)
补充:一对多查找是一个典型的数组运算题目,同学们想在excel中实现复杂的数据计算和查找,就着手学习excel数组公式。
标签:公式,函数,数组,行号,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
电脑安装软件提示Comdlg32.ocx错误的解决方法
2023-02-10 21:56:35
![](https://img.aspxhome.com/file/2023/6/a326479_0s.jpg)
Excel2016折线图怎么添加双纵坐标、次坐标轴?
2022-08-13 07:49:37
![](https://img.aspxhome.com/file/2023/8/40638_0s.jpg)
2021年10最新CPU天梯图 桌面端CPU综合性能天梯图2021年10月高清完整版
2023-12-23 17:38:43
![](https://img.aspxhome.com/file/2023/6/a323899_0s.jpg)
怎么在word中设置填充颜色
2023-10-31 14:57:05
触宝输入法语音输入怎么用?
2022-05-26 05:55:50
![](https://img.aspxhome.com/file/2023/5/a317795_0s.jpg)
Win10如何设置打开图片方式为照片查看器?
2022-06-11 16:21:09
![](https://img.aspxhome.com/file/2023/4/a310264_0s.png)
怎么安装黑鲨win7系统_黑鲨win7系统安装方法步骤教程
2022-03-12 09:06:30
![](https://img.aspxhome.com/file/2023/5/a317005_0s.jpg)
Win7桌面图标不见怎么办?Win7桌面图标不见的解决方法
2023-12-15 13:44:12
![](https://img.aspxhome.com/file/2023/26/a227909_0s.jpg)
qq音乐网页版登录入口_qq音乐网页版在线听歌地址
2022-03-22 14:13:17
![](https://img.aspxhome.com/file/2023/6/a323615_0s.png)
win11网页无法全屏怎么解决?win11网页不能全屏怎么办?
2023-08-26 08:43:51
![](https://img.aspxhome.com/file/2023/1/a272155_0s.jpg)
WPS表格中的DATEDIF函数有什么用?怎么用?
2023-01-04 00:13:47
![](https://img.aspxhome.com/file/2023/9/a169169_0s.png)
pycharm字体大小如何设置
2023-04-04 05:10:43
![](https://img.aspxhome.com/file/2023/9/a343159_0s.png)
Win10 Edge浏览器设置bing为默认搜索引擎的方法
2023-01-27 06:39:36
![](https://img.aspxhome.com/file/2023/26/a226017_0s.jpg)
WinRAR怎么生成zip格式文件?zip格式文件生成方法
2022-08-24 02:52:09
![](https://img.aspxhome.com/file/2023/7/a331941_0s.jpg)
Win7系统禁用电脑USB接口详细操作教程
2023-04-27 06:10:03
epic24小时无法领取免费游戏解决方法
2023-10-14 16:55:46
![](https://img.aspxhome.com/file/2023/4/a304967_0s.jpg)
一个不兼容的软件尝试与edge一起加载怎么回事?
2022-07-23 08:00:00
![](https://img.aspxhome.com/file/2023/30/a266345_0s.png)
如何解决Excel表格数据超过16位变成0的问题
2022-01-27 18:54:46
![](https://img.aspxhome.com/file/2023/4/a142994_0s.jpg)
excel2007冻结窗格以锁定特定行或列
2023-05-27 16:10:04
![](https://img.aspxhome.com/file/2023/1/39001_0s.gif)
Mac远程桌面哪里有?好用的远程桌面软件分享
2023-11-29 08:05:21
![](https://img.aspxhome.com/file/2023/3/a212243_0s.jpeg)