错误,无法设置范围类的FormulaArray属性 [英] Error, Unable to set the formulaArray property of the range class
本文介绍了错误,无法设置范围类的FormulaArray属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了以下公式:
=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))"
出了什么问题?
推荐答案
感谢迪克为我指明了正确的方向,感谢罗里(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
这篇关于错误,无法设置范围类的FormulaArray属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文