Excel Array Formula

妖精的绣舞 提交于 2019-12-24 13:33:48

问题


I've previously created an Excel array formula such as follows:

X13: =SUM(IF($F13>H13:R13,1,0))+IF(F13>F9,1,0)+SUM(IF($F13>T13:U13,1,0))+IF(T13>U13,1,0)

When applying this formula down a column and hitting Ctrl+Shift+Enter, the array formula produced formulas in the rows below as follows:

Y13: =SUM(IF($F14>H14:R14,1,0))+IF(F14>F10,1,0)+SUM(IF($F14>T14:U14,1,0))+IF(T14>U14,1,0)
Z13: =SUM(IF($F15>H15:R15,1,0))+IF(F15>F11,1,0)+SUM(IF($F15>T15:U15,1,0))+IF(T15>U15,1,0)
...

However, now that I'm trying to update the formula, when I hit Ctrl+Shift+Enter, I get the original formula showing up in all cells.

X13: =SUM(IF($F13>H13:R13,1,0))+IF(F13>F9,1,0)+SUM(IF($F13>T13:U13,1,0))+IF(T13>U13,1,0)
Y13: =SUM(IF($F13>H13:R13,1,0))+IF(F13>F9,1,0)+SUM(IF($F13>T13:U13,1,0))+IF(T13>U13,1,0)
Z13: =SUM(IF($F13>H13:R13,1,0))+IF(F13>F9,1,0)+SUM(IF($F13>T13:U13,1,0))+IF(T13>U13,1,0)
...

How do I fix this?


回答1:


There's no need for an array formula. This formula will perform the exact same functionality and it is not an array formula:

=(F13>F9)+COUNTIF(H13:R13,"<"&$F13)+COUNTIF(T13:U13,"<"&$F13)+(T13>U13)



回答2:


Be sure to have the automatic calculation: Preferences/Calculation/Automatically. Refresh with F9



来源:https://stackoverflow.com/questions/49513804/excel-array-formula

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