OFFSET函数提取最大销量所在整列信息
时间:2023-03-20 05:06:23
今天朋友发给我一张数据表,模拟他们公司系统导出的产品销量数据,如下:
要统计销售量最大的部门名称、部门主管、销售员名称、销售量、月份等信息,也就是提取最大销售量所在整列的信息。
这个问题,可以用OFFSET函数解决。
公式实现
在B9单元格输入公式:
=OFFSET($A$2,ROW(A1)-1,MATCH(MAX($B$5:$K$5),$B$5:$K$5,0))
公式向下填充,即得最大销售量整列信息。
公式解析
MAX($B$5:$K$5):
在B5:K5,所有的销量中,取最大值。
MATCH(MAX($B$5:$K$5),$B$5:$K$5,0):
在B5:K5区域,匹配最大值所在列数。
OFFSET($A$2,ROW(A1)-1,MATCH(MAX($B$5:$K$5),$B$5:$K$5,0)):
以A2为基准点,向下偏移ROW(A1)-1行,向右偏移最大值所在列数。
本示例中:
公式在B9单元格时,ROW(A1)-1的结果是0,最大值1844,以A2为基准点,偏移0行,偏移到1844所在的列,即是单元格“销售2部”;
公式向下填充,ROW(A1)-1自动变为ROW(A2)-1、ROW(A3)-1、ROW(A5)-1、ROW(A5)-1,则自动变为偏移1、2、3、4行,即得最大值1844列所有的信息。
标签:Excel函数,excel函数公式,excel表格制作,Excel教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
WPS 如何将PPT幻灯片分成三等份
2023-07-31 19:21:41
![](https://img.aspxhome.com/file/2023/9/a187049_0s.jpg)
excel怎么设置密码保护?Excel文件添加密码保护教程
2023-03-09 00:59:17
![](https://img.aspxhome.com/file/2023/6/42736_0s.jpg)
Word2007如何制作批量公函信封
2023-12-08 19:04:19
![](https://img.aspxhome.com/file/2023/2/20032_0s.jpg)
Word背景色设置成为绿色的方法教学
2023-03-25 03:43:09
![](https://img.aspxhome.com/file/2023/7/31077_0s.png)
Win7桌面图标打不开怎么办?
2022-05-12 06:35:36
![](https://img.aspxhome.com/file/2023/27/a230694_0s.jpg)
Excel中表格进行快速设置标准日期的操作方法
2022-06-03 18:15:01
用wps表格批量生成指定文件夹名称?
2023-11-30 10:30:00
![](https://img.aspxhome.com/file/2023/8/a163628_0s.png)
WPS word怎么打印当前页?
2023-12-11 06:47:10
![](https://img.aspxhome.com/file/2023/7/a185857_0s.jpg)
Excel 合并单元格之保留值和合并值 实现教程
2022-12-09 01:54:01
![](https://img.aspxhome.com/file/2023/8/a161838_0s.png)
鼠标连点器哪个好用
2022-08-13 16:41:57
![](https://img.aspxhome.com/file/2023/2/a286810_0s.png)
Win11工具栏不见了怎么办?Win11工具栏不见了的解决方法
2023-03-09 03:41:37
![](https://img.aspxhome.com/file/2023/1/a274024_0s.jpg)
机械键盘可以用但灯怎么都不亮了_机械键盘灯不亮了解决方法
2023-09-11 15:07:37
![](https://img.aspxhome.com/file/2023/4/a304308_0s.jpg)
快速删除WPS表格中空白行的方法步骤图
2022-03-27 20:42:47
PS2接口和USB接口哪个好?PS2接口和USB接口各有什么特性?
2022-08-14 23:03:44
![](https://img.aspxhome.com/file/2023/6/a325598_0s.jpg)
win10version版本详细介绍
2022-03-05 05:25:43
![](https://img.aspxhome.com/file/2023/3/a293208_0s.png)
vivo x50怎么快速截屏_vivo x50快速截屏方法
2022-05-31 13:41:21
![](https://img.aspxhome.com/file/2023/3/a295594_0s.jpg)
Win10纯净版提示电脑遇到问题需要重新启动如何解决?
2022-09-23 04:32:04
![](https://img.aspxhome.com/file/2023/26/a223478_0s.jpg)
windows11笔记本虚拟触摸板打开方法
2022-05-28 08:32:33
![](https://img.aspxhome.com/file/2023/1/a273008_0s.png)
MAC系统Ink选项功能解析
2023-01-08 07:23:54
![](https://img.aspxhome.com/file/2023/5/a216055_0s.jpg)
Pixelmator Pro 教程「214」,如何在 Pixelmator Pro 中使用橡皮擦模式?
2023-04-11 00:35:01
![](https://img.aspxhome.com/file/2023/10/a343935_0s.jpeg)