Excel查找函数:Mlookup函数的高级用法
时间:2023-12-16 19:04:41
Vlookup是最常用到的查找函数,但它有很大的局限性。比的入库表中,要求完成以下查找。
1、查找第2次电视的进货数量。
=Mlookup(A11,A2:D8,4,2)
2、查找电视的最后一次入库数量
=Mlookup(A11,A2:D8,4,0)
3、查找47寸电视的第1次进货数量。
=Mlookup(A11:B11,A2:D8,4,1)
4、实现筛选功能。
=Mlookup($B$10:$B$11,$A$1:$D$8,4,A14)
5、实现多结果查找功能。(把所有符合条件结果用逗号连接起来)
=MLOOKUP(A11,B$1:C$8,2,-1)
三、使用方法
Mlookup要想在你的表格中也能使用,需要按下面的步骤操作。
1、按alt+F11(键盘上如果有FN键 ,还需要同时按FN)会打开VBE窗口,在窗口中点插入 – 模块。把下面的代码复制粘贴到右侧的空白区域中。
代码
2、当前文件另存为“启用宏的工作簿”格式,
然后在这个表格中就可以象本文一样使用Mlookup函数了。
标签:入库,函数,数量,查找,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
怎样在wps文字中将字体嵌入文件
2022-08-07 01:27:15
PPT制作色块小图型封面页 实例教程及技巧
2022-10-12 13:16:21
![](https://img.aspxhome.com/file/2023/10/a351707_0s.png)
Win7旗舰版系统右键"锁定到任务栏"选项不见了怎么恢复?
2022-03-04 21:04:36
![](https://img.aspxhome.com/file/2023/26/a229188_0s.png)
Word下划线怎么对齐?教你一招(论文/合同封面制作必学技巧)
2022-02-20 12:03:24
![](https://img.aspxhome.com/file/2023/4/22554_0s.gif)
excel 如何实现多列数据不重复计数
2022-06-29 07:23:11
![](https://img.aspxhome.com/file/2023/0/a161110_0s.jpg)
WPS 如何将Excel表格旋转90度
2022-12-07 03:53:51
![](https://img.aspxhome.com/file/2023/4/a186474_0s.jpg)
如何在wps表格中方框内加线和文字?
2023-10-20 15:39:45
剪映如何添加背景画布?剪映添加背景画布的方法
2022-05-28 09:39:26
![](https://img.aspxhome.com/file/2023/7/a328215_0s.png)
WPS表格中单元格如何自动填充数据
2023-11-18 10:22:06
word2010怎么设置图片格式布局
2022-04-28 07:40:48
Excel PERCENTILE 函数 使用实例教程
2023-06-30 01:17:18
![](https://img.aspxhome.com/file/2023/5/a162275_0s.png)
盘点U盘启动盘的五大启动模式
2023-11-24 11:10:35
![](https://img.aspxhome.com/file/2023/3/a300849_0s.png)
如何在 Mac 上将 PDF 转换为SVG矢量?
2023-04-22 05:29:26
![](https://img.aspxhome.com/file/2023/8/a205778_0s.jpeg)
Mac开机变慢怎么办 Mac开机速度优化小技巧
2022-08-17 08:18:34
![](https://img.aspxhome.com/file/2023/9/a214949_0s.jpg)
macOSCatalina10.15.5正式版值得升级吗 macOSCatalina10.15.5更新了什么
2023-10-30 00:54:51
![](https://img.aspxhome.com/file/2023/1/a214561_0s.jpg)
2003版excel表格怎么自动换行
2022-12-29 03:48:20
Win10纯净版护眼模式关不掉怎么办?快速关闭Win10护眼模式
2022-01-16 02:31:04
![](https://img.aspxhome.com/file/2023/26/a223292_0s.png)
Excel的3个简化公式
2023-11-24 17:16:49
![](https://img.aspxhome.com/file/2023/5/37265_0s.png)
最新共享打印机连接错误0x0000011b的解决方法
2022-10-14 20:51:45
![](https://img.aspxhome.com/file/2023/6/a321705_0s.jpg)
Win7怎么监控QQ?Win7审核策略监控QQ方法介绍
2023-05-19 05:26:11
![](https://img.aspxhome.com/file/2023/29/a253660_0s.jpg)