Hi,
I am trying to identify a specific non-duplicate value in a list with a variable range within the list. What I need the formula to do is look for "Y", until it finds a "N", then identify the duplicate(s) "Y" in that identified range. Following a "N", when another "Y" has been identified, I need the formula to again look for duplicates in then next range.
I tried the array formula below, but it counts the number of "Y" and I need the very first "Y" in each "range within a range" to be identified as the first "Y" (or identified as a non-duplicate).
=IF(COUNTIF(A1:A30,"N"),COUNTIF(A1:INDEX(A1:A30,MATCH(TRUE,A1:A30="N",0)),"Y"),COUNTIF(A1:A30,"Y"))
In the example below, I would like the first "Y" to be identified as a non-duplicate, the next two "Y" can be either counted or can show as a single number (ex. 1 = duplicate within the range, 0 = non-duplicate). "N" does not necessarily need to be distinguished from "Y", as I believe I can use an if(and statement to separate the "Y" and "N" in another column.
Y 0
Y 1
Y 2
N -
Y 0
N -
Thank you in advance,
Jared
Bookmarks