Hello,
I am trying to apply the following array formula to a range in Excel:
=IFERROR(INDEX(AllFiles!A$2:A$1000000,SMALL(IF(AllFiles!$C$2:$C$1000000=$A$2,ROW(AllFiles!A$2:A$1000000)-ROW(AllFiles!A$2)+1),ROWS(AllFiles!A$2:AllFiles!A2))),"")
using the following methods that I found online (I'm not fluent in VBA)...
Sub filldowntest()
ActiveSheet.Range("D2:G2").FormulaArray = "=IFERROR(INDEX(AllFiles!A$2:A$1000000,SMALL(IF(AllFiles!$C$2:$C$1000000=$A$2,ROW(AllFiles!A$2:A$1000000)-ROW(AllFiles!A$2)+1),ROWS(AllFiles!A$2:AllFiles!A2))),"")"
ActiveSheet.Range("D2:G10000").FillDown
End Sub
I keep getting the 1004 error, produced when FormulaArray uses more than 255 characters...yet my formula is within these characters. I even tried the Replace method but that didn't work either.
Anyone know how to solve this?
I also need the cells to show only the results, by the way, not the formula...Thank you very much.
I am trying to apply the following array formula to a range in Excel:
=IFERROR(INDEX(AllFiles!A$2:A$1000000,SMALL(IF(AllFiles!$C$2:$C$1000000=$A$2,ROW(AllFiles!A$2:A$1000000)-ROW(AllFiles!A$2)+1),ROWS(AllFiles!A$2:AllFiles!A2))),"")
using the following methods that I found online (I'm not fluent in VBA)...
Sub filldowntest()
ActiveSheet.Range("D2:G2").FormulaArray = "=IFERROR(INDEX(AllFiles!A$2:A$1000000,SMALL(IF(AllFiles!$C$2:$C$1000000=$A$2,ROW(AllFiles!A$2:A$1000000)-ROW(AllFiles!A$2)+1),ROWS(AllFiles!A$2:AllFiles!A2))),"")"
ActiveSheet.Range("D2:G10000").FillDown
End Sub
I keep getting the 1004 error, produced when FormulaArray uses more than 255 characters...yet my formula is within these characters. I even tried the Replace method but that didn't work either.
Anyone know how to solve this?
I also need the cells to show only the results, by the way, not the formula...Thank you very much.