alanhather
New Member
- Joined
- Feb 2, 2018
- Messages
- 24
Hi all,
I'm trying to input this array formula in VBAand its filling in the cell C180. Any ideas?
The sheet5 is called admissons
Sub Array_Formula()
Range("C180").Select
Selection.FormulaArray = "=SUM(--(FREQUENCY(IF('Raw Data Prev Year'!$B:$B<>"",IF('Raw Data Prev Year'!$D:$D=A180,IF('Raw Data Prev Year'!S:S>=$B$167,IF('Raw Data Prev Year'!$S:$S<=$C$167,MATCH('Raw Data Prev Year'!$B:$B,'Raw Data Prev Year'!$B:$B,0))))),ROW('Raw Data Prev Year'!$B:$B)-ROW('Raw Data Prev Year'!$B$1)+1)>0))"
End Sub
Thanks
I'm trying to input this array formula in VBAand its filling in the cell C180. Any ideas?
The sheet5 is called admissons
Sub Array_Formula()
Range("C180").Select
Selection.FormulaArray = "=SUM(--(FREQUENCY(IF('Raw Data Prev Year'!$B:$B<>"",IF('Raw Data Prev Year'!$D:$D=A180,IF('Raw Data Prev Year'!S:S>=$B$167,IF('Raw Data Prev Year'!$S:$S<=$C$167,MATCH('Raw Data Prev Year'!$B:$B,'Raw Data Prev Year'!$B:$B,0))))),ROW('Raw Data Prev Year'!$B:$B)-ROW('Raw Data Prev Year'!$B$1)+1)>0))"
End Sub
Thanks