gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
Is there a way to fill a range with an Array formula. I need the formula going into column R to be an Array
Code:
Sub Macro3()
'
' Macro3 Macro
'
'
Range("Q3:Q11").FormulaR1C1 = _
"=IF(AND(INDEX(C25,MATCH(RC15,C[7],0))=TRUE,COUNTA(R3C22:R230C22)=0),RC[-3],IF(AND(INDEX(C25,MATCH(RC15,C[7],0))=TRUE,COUNTIF(R3C22:R230C22,RC[-1])>0),RC[-3],""""))"
Range("R3:R11").FormulaR1C1 = _
"=IFERROR(INDEX(R2C17:R248C17,SMALL(IF(ISTEXT(R2C17:R248C17),ROW(R1C17:R247C17)), ROW(R[-1]C[-1]))),"""")"
End Sub