lookup函数的第3个参数,这次会让你大吃一惊!
时间:2022-09-23 19:41:28
如果想获取一行最后一个非空数字,可以用lookup函数实现
=LOOKUP(9^9,C2:K2)
但如果想获取倒数第3个数字呢?估计你一时还真找不到简便的方法。别说用offset+count,因为它遇到空格就熄火了。
下面的公式同样是用lookup函数,结果你估计想不到!
=LOOKUP(9^9,C2:P2,A2)
lookup的第3个参数竟然..只用了一个单元格,而非一个区域,结果却能达到我们的要求。
其实第3个参数如果只是一个单元格,它竟然是起到偏移的功能,
=LOOKUP(9^9,C2:K2) 的结果是最后一个单元格200,
而修改参数后
=LOOKUP(9^9,C2:P2,A2)这里A2和第2个参数最左单元格C2相差2个位置,结果公式的结果也向左偏移了2个位置:324
不信,把公式修改为
=LOOKUP(9^9,D2:Q2,A2)
公式返回的是倒数第4个值。
标签:look,up,LOOKUP函数,lookup函数的使用方法,VLOOKUP函数,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何将 iPhone 拍摄的照片实时传输至 Mac
2023-11-30 12:47:51
![](https://img.aspxhome.com/file/2023/2/a194752_0s.jpg)
实现Excel单元格相对绝对引用的快速切换技巧
2023-03-05 11:21:59
word表格里怎么删除空白行列
2023-08-30 02:56:54
![](https://img.aspxhome.com/file/2023/4/34574_0s.gif)
在Word2010文档中使用Office剪贴板
2023-12-14 03:09:36
![](https://img.aspxhome.com/file/2023/3/21693_0s.jpg)
office办公小工具
2022-03-03 11:11:25
![](https://img.aspxhome.com/file/2023/2/24002_0s.png)
Win10 1909任务栏卡主怎么办?Win10 1909任务栏卡主解决方法
2023-08-03 09:25:01
![](https://img.aspxhome.com/file/2023/5/46655_0s.jpg)
Excel 2007增设“删除重复项”按钮
2023-03-16 07:19:31
![](https://img.aspxhome.com/file/2023/5/a143505_0s.jpg)
excel2007如何加密?excel2007的加密方法
2022-02-08 21:56:07
![](https://img.aspxhome.com/file/2023/0/a143580_0s.png)
怎么去掉Word文本框?去掉Word文本框的技巧
2022-04-19 13:31:12
![](https://img.aspxhome.com/file/2023/6/33556_0s.png)
word 中的画布功能,你听过可能未必用过,建议看看
2022-07-24 10:02:48
![](https://img.aspxhome.com/file/2023/9/32499_0s.jpg)
取消Word2003自动更新功能避免样式发生变化
2023-12-12 23:05:09
![](https://img.aspxhome.com/file/2023/6/21106_0s.jpg)
Win10系统怎么选择网络适配器?
2022-07-26 12:19:07
![](https://img.aspxhome.com/file/2023/3/53373_0s.jpg)
Word标题文字显示不全怎么解决?
2023-08-08 11:08:43
![](https://img.aspxhome.com/file/2023/1/31121_0s.jpg)
Win10装Win7系统出现蓝屏怎么解决?Win10重装Win7后蓝屏解决办法
2023-05-20 02:52:31
![](https://img.aspxhome.com/file/2023/5/52155_0s.png)
win10怎么还原系统?
2023-09-20 13:21:44
![](https://img.aspxhome.com/file/2023/4/47404_0s.png)
Excel表格开头数字不显示怎么办
2023-05-09 17:57:59
![](https://img.aspxhome.com/file/2023/6/37326_0s.jpg)
如何在 Apple Watch 上下载应用?
2023-11-30 12:05:53
![](https://img.aspxhome.com/file/2023/2/45982_0s.jpg)
Win10鼠标右键没反应怎么解决
2023-06-08 19:39:57
![](https://img.aspxhome.com/file/2023/8/46448_0s.jpg)
Win10电脑怎么有效的清理C盘垃圾?
2023-12-14 14:55:18
![](https://img.aspxhome.com/file/2023/7/51887_0s.png)
Excel表格技巧_excel加减乘除混合公式
2023-03-30 06:29:40
![](https://img.aspxhome.com/file/2023/5/a140785_0s.jpg)