I need to get the total of the cells only if the "U" occurs consecutively 6 or more times. For instance:
U U U U U U U U P P U U U U U U P U U U P P
In the line above, there are a total of 17 "U"s, but I only need the sum of the ones that occur consecutively 6 or more times, so in this case, the value would be 14.
I am using:
=SUMPRODUCT(--(FREQUENCY(IF(H19:AD19="U",COLUMN(H19:AD19)),IF(H19:AD19<>"U",COLUMN(H19:AD19)))>=6))
to identify that the 6+ consecutive times happens 2 times, but now need the count of those cells.
Thank you
Bookmarks