简体   繁体   English

用另一张工作表中的单元格引用逐步填充公式? (= INDIRECT?)

[英]Incrementally autofill a formula with a cell reference from another sheet? (=INDIRECT?)

I'm trying to autofill these formulas down, increasing the cell references to follow the pattern below. 我正在尝试自动填写这些公式,增加单元格引用以遵循以下模式。

The formulas average blocks of 12 and the cell references increase 11 at a time; 公式的平均块为12,单元格引用一次增加11; I viewed some other related problems and I think the INDIRECT function is the way to go, but I'm having trouble working it into my formula: 我查看了其他一些相关问题,并且认为INDIRECT函数是可行的方法,但是在将其应用于公式时遇到了麻烦:

Sheet2, Cell D2 Sheet2,单元格D2

 =IF(ISERROR(SUM('Sheet1'!D2:D13)),0,SUM('Sheet1'!D2:D13)/MAX(1,COUNTIF('Sheet1'!D2:D13,">0")))

Sheet2, Cell D3 Sheet2,单元格D3

=IF(ISERROR(SUM('Sheet1'!D14:D25)),0,SUM('Sheet1'!D14:D25)/MAX(1,COUNTIF('Sheet1'!D14:D25,">0")))

Sheet2, Cell D4 Sheet2,单元格D4

=IF(ISERROR(SUM('Sheet1'!D26:D37)),0,SUM('Sheet1'!D26:D37)/MAX(1,COUNTIF('Sheet1'!D26:D37,">0")))

UNTESTED. UNTESTED。 Please try: 请试试:

=IF(ISERROR(SUM(INDIRECT("Sheet1!D"&ROW()+(ROW()-2)*11&":D"&ROW()+(ROW()-1)*11))),0,SUM(INDIRECT("Sheet1!D"&ROW()+(ROW()-2)*11&":D"&ROW()+(ROW()-1)*11))/MAX(1,COUNTIF(INDIRECT("Sheet1!D"&ROW()+(ROW()-2)*11&":D"&ROW()+(ROW()-1)*11),">0")))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM