alanhather
New Member
- Joined
- Feb 2, 2018
- Messages
- 24
Hi -
Im trying to enter an array formula into VB if possible - i know the formula is too big but struggling to get it to work.
the formula im using is entered in Cell C180 and looks like this.
=SUM(--(FREQUENCY(IF('Raw Data Prev Year'!$B:$B<>"",IF('Raw Data Prev Year'!$D:$D=A171,IF('Raw Data Prev Year'!S:S>=$B$168,IF('Raw Data Prev Year'!$S:$S<=$C$168,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))
it is used to count an unique Alphanumeric ID within a specific date range and name and it only counts the alphanumeric ID once if it is a duplicate. As im doing a few calculations it can take a while to calculate but i do get the result.
Is this possible to run in VB or is there a way i can use as a countif?
thanks in advance
Im trying to enter an array formula into VB if possible - i know the formula is too big but struggling to get it to work.
the formula im using is entered in Cell C180 and looks like this.
=SUM(--(FREQUENCY(IF('Raw Data Prev Year'!$B:$B<>"",IF('Raw Data Prev Year'!$D:$D=A171,IF('Raw Data Prev Year'!S:S>=$B$168,IF('Raw Data Prev Year'!$S:$S<=$C$168,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))
it is used to count an unique Alphanumeric ID within a specific date range and name and it only counts the alphanumeric ID once if it is a duplicate. As im doing a few calculations it can take a while to calculate but i do get the result.
Is this possible to run in VB or is there a way i can use as a countif?
thanks in advance