How to add every 3rd row's value (ex: a1, a4, a7, a10, etc) with over 240 entries?

删除回忆录丶 提交于 2019-12-24 08:27:15

问题


I am trying to add the SUM of every 3rd row. I tried manually doing each one (ex: "H8+H11+H14" etc), but Excel halted the execution when I tried that (for 240'ish boxes), and refused to add each cell like that (it was too much for Excel to parse, process and execute).

The rows I want to find the SUM of are (give or take) 245 rows at a time.

| APPLICANTS  | # |
| INTERVIEWED | # |
| HIRED       | # |

And there are about 245 entries (each with the "Applicants", "Interviewed" fields) of this nature I have to log each instance of.

Thanks in advance for any assistance you guys can provide.


回答1:


If the cell next to it will always have a specific value or word, you could use =SUMIF(G:G,"HIRED",H:H) for example to SUM all of the values next to any cell with "HIRED".




回答2:


According to your example you can use an array formula like so:

=SUM(H3:H15*--(MOD(ROW(H3:H15),3)=2))

Note that array formulas must be confirmed by pressing Ctrl+Shift+Enter rather than just Enter

If you need to change which row is being targeted, then you can modify the "=2" section to suit.



来源:https://stackoverflow.com/questions/39704466/how-to-add-every-3rd-rows-value-ex-a1-a4-a7-a10-etc-with-over-240-entrie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!