使用vlookup函数进行隔任意列求和的方法
时间:2023-05-26 15:44:05
在Excel中,sumif函数或sumprduct+mod函数都可以进行隔列求和。其实,用vlookup函数也可以进行隔列求和,且很灵活。本文详细介绍了Excel中使用vlookup函数进行隔任意列求和的几种方法。
1、隔1列求和
公式:{=SUM(VLOOKUP(A2,A2:K2,ROW(1:6)*2-1,0))}
输入方法:先输=SUM(VLOOKUP(A2,A2:K2,ROW(1:6)*2-1,0)) ,再 按ctrl+shift+enter完成输入。
注:公式是数组,按ctrl+shift+enter完成输入。
公式中某些字母的意义:
A2是求和的第一列数字单元格
ROW(1:6)*2-1中,6是求和的总列数,2是相隔列数+1,-1中的1中隔的列数。
图中所求为1、3、5、7、9、11列
2、隔2列求和
公式:{=SUM(VLOOKUP(A2,A2:K2,ROW(1:4)*3-2,0))}
注:公式为数组公式
3、指定列求和
指定对1,2,3,5,6,8列求和
公式:{=SUM(VLOOKUP(A2,A2:K2,{2,3,5,6,8,9},0))}
注:{1,2,5,6,8,9}把要求和的列数放在大括号内,用逗号分隔。
标签:公式,函数,指定,求和,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win10专业版DNS异常怎么修改设置恢复?
2023-08-24 22:11:32
![](https://img.aspxhome.com/file/2023/26/a223170_0s.png)
哦乐直播APP怎么开启美颜直播 哦乐直播APP开启美颜直播方法
2022-11-20 10:12:54
![](https://img.aspxhome.com/file/2023/8/a338577_0s.jpg)
Excel中表格进行分级显示的设置技巧
2022-06-04 10:36:35
Rank函数多条件权重排名
2022-03-17 05:05:46
![](https://img.aspxhome.com/file/2023/0/a157020_0s.png)
Windows11系统输入体验怎么关闭?Win11输入体验总是闪烁
2023-10-02 22:03:00
![](https://img.aspxhome.com/file/2023/1/a274888_0s.jpg)
Win11黑屏调不出任务管理器怎么办?
2023-01-02 05:51:41
![](https://img.aspxhome.com/file/2023/27/a236034_0s.jpg)
如何利用用Excel制作倒计时器和抽签器实例教程
2022-02-24 17:40:32
![](https://img.aspxhome.com/file/2023/1/a161811_0s.jpg)
提高办公效率 Word邮件合并技巧的方法
2023-06-14 02:34:26
wps表格中怎样设置行高教程
2022-11-01 08:16:27
xapofx1_5.dll丢失怎么办_由于找不到xapofx1_5的解决方法
2022-02-19 01:29:37
![](https://img.aspxhome.com/file/2023/3/a297160_0s.jpg)
PPT怎么制作豹纹字体? ppt艺术字设计方法
2023-08-04 21:44:08
![](https://img.aspxhome.com/file/2023/10/a349107_0s.jpg )
Excel打开文件或通过双击"文件未找到"什么办
2022-07-30 13:09:00
![](https://img.aspxhome.com/file/2023/5/38405_0s.gif)
word单元格内容水平和垂直都居中怎么设置
2022-03-19 07:04:12
![](https://img.aspxhome.com/file/2023/7/35907_0s.png)
Win10重装系统其他盘的东西还在吗?
2022-04-05 04:28:22
![](https://img.aspxhome.com/file/2023/25/a218131_0s.png)
WPS表格技巧:单元格数据的组合.拆分与格式转换
2022-02-23 02:41:18
![](https://img.aspxhome.com/file/2023/9/a165019_0s.png)
qq邮箱登录失败显示session timeout解决方法
2022-02-05 20:41:50
![](https://img.aspxhome.com/file/2023/4/a304358_0s.jpg)
win8开始菜单在哪里利用优化大师找回开始菜单(图文)
2022-11-08 07:31:44
![](https://img.aspxhome.com/file/2023/29/a257759_0s.jpg)
Win11触摸板怎么禁用 ?Win11笔记本关闭触摸板方法
2023-05-18 19:04:19
![](https://img.aspxhome.com/file/2023/28/a240082_0s.jpg)
Win10专业版如何设置锁屏后不断网?超详细的图文教程
2023-07-21 08:45:32
![](https://img.aspxhome.com/file/2023/26/a223679_0s.png)
在Excel中用公式统计某个范围内数值的个数
2022-06-17 23:15:57