How do you copy an array formula down a column in Calc?

≯℡__Kan透↙ 提交于 2019-12-25 03:22:51

问题


I have the following array formula in cell B2:

=INDEX($M$2:$O$110;MATCH(1;($M$2:$M$110=C2)*($N$2:$N$110=E2);0);3)

and I want to copy it down a column, so I want:

B2 {=INDEX($M$2:$O$110;MATCH(1;($M$2:$M$110=C2)*($N$2:$N$110=E2);0);3)} B3 {=INDEX($M$2:$O$110;MATCH(1;($M$2:$M$110=C3)*($N$2:$N$110=E3);0);3)} B4 {=INDEX($M$2:$O$110;MATCH(1;($M$2:$M$110=C4)*($N$2:$N$110=E4);0);3)}

etc

I enter the formula into B2, I press CTRL+SHIFT+ENTER, then I copy the formula down the B column. This only gives me:

=INDEX($M$2:$O$110;MATCH(1;($M$2:$M$110=C2)*($N$2:$N$110=E2);0);3)

The relative reference to C2 and E2 seems to be treated as an absolute reference. I want E2 and C2 to change.

I'm using OpenOffice Calc, so I have ; instead of , in the functions.


回答1:


In Calc (OpenOffice or LibreOffice) you will always create one array formula for the whole overlined area if you fill down or sidewards a array formula with the fill handle (small black dot in the bottom right corner of the active cell).

If you need to create single array formulas for each cell, then you have to copy the formula, then select the destination cells and paste the formula.

You can also copy, not fill, if you hold Ctrl + Shift while dragging the fill handler.



来源:https://stackoverflow.com/questions/25482586/how-do-you-copy-an-array-formula-down-a-column-in-calc

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