Hi all,
I have an array formula where I am looking to return only 1 reference number if the number of incidents are equal to 4. In the spreadsheet the reference can appear multiple times, I have added a column to identify the first incidence of the reference number, not sure if I need this.
The array formula works to identify the number of incidents and area but returns duplicate reference numbers.
Please help!!
As an Array
Please see file attached
I have an array formula where I am looking to return only 1 reference number if the number of incidents are equal to 4. In the spreadsheet the reference can appear multiple times, I have added a column to identify the first incidence of the reference number, not sure if I need this.
The array formula works to identify the number of incidents and area but returns duplicate reference numbers.
Please help!!
Code:
=IF($B$4:$B$17="Yes",INDEX($D$4:$D$17,SMALL(IF(COUNTIF(search_states,$C$4:$C$17)*COUNTIF(search_dates,$E$4:$E$17),(ROW($E$4:$E$17)-MIN(ROW($B$4:$B$17))+1),""),ROW(A1))))
Please see file attached