错误,无法设置范围类的公式数组属性 [英] Error, Unable to set the formulaArray property of the range class
本文介绍了错误,无法设置范围类的公式数组属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了以下公式:
=IFNA(LOOKUP(10^99,--MID(O2,MIN(IF((--ISNUMBER(--MID(O2,ROW($1:$25),1))=0)*ISNUMBER(--MID(O2,ROW($2:$26),1)),ROW($2:$26))),ROW($1:$25))),SUMPRODUCT(MID(0&RIGHT(N2,4),LARGE(INDEX(ISNUMBER(--MID(RIGHT(N2,4),ROW($1:$25),1))* ROW($1:$25),0),ROW($1:$25))+1,1)*10^ROW($1:$25)/10))
它查看列N"并仅通过数字字符串.如果有 N/A,它将在作为数组运行的O"列上执行相同的操作,并且工作正常.
It looks at column "N" and bring through just the number string. If there is an N/A it will then do the same on column "O" which is ran as an array and it works fine.
然而,当我将其转换为 VBA 代码时,我收到了标题中提到的错误.
Yet when I converted it to VBA code, I get the error mentioned in the title .
Range("L2").Select
Selection.FormulaArray = _
"=IFNA(LOOKUP(10^99,--MID(RC[3],MIN(IF((--ISNUMBER(--MID(RC[3],ROW(R1:R25),1))=0)*ISNUMBER(--MID(RC[3],ROW(R2:R26),1)),ROW(R2:R26))),ROW(R1:R25))),SUMPRODUCT(MID(0&RIGHT(RC[2],4),LARGE(INDEX(ISNUMBER(--MID(RIGHT(RC[2],4),ROW(R1:R25),1))* ROW(R1:R25),0),ROW(R1:R25))+1,1)*10^ROW(R1:R25)/10))"
怎么了?
推荐答案
感谢 Dick 为我指出正确的方向,感谢 Rory 纠正我的错误
thank you Dick for pointing me in the right directions and Rory for correcting my error
http://www.mrexcel.com/forum/excel-questions/853889-long-array-visual-basic-applications-issue.html
这篇关于错误,无法设置范围类的公式数组属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文