![]() |
#1
|
||||
|
||||
![]()
Hi. I have a sheet that contains characters combined with "X". I would like to count the number of rows that contain 5 consecutive cells with the letter "X". I found the below array formula that i think would be a jump off point for me to get the number of rows but couldn't seem to come to the correct result when I added COUNTIF before the SUM. If possible, I wouldn't need to add a helper column.
=SUM(IF(FREQUENCY(IF(ISNUMBER(SEARCH("X",$A1:$G1)) ,COLUMN($A1:$G1)-COLUMN($A1)+1),IFERROR(SEARCH("X",$A1:$G1),COLUMN( $A1:$G1)-COLUMN($A1)+1))>=5,1)) Thank you. Um, how do I attach a screenshot in a post? Last edited by Marcia; 11-17-2018 at 08:51 PM. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
mihnea96 | Word VBA | 4 | 05-08-2017 12:09 PM |
Counting Consecutive Periods In Rows Using Numbers | Yaaseen23 | Excel | 18 | 03-24-2017 11:15 AM |
![]() |
Jennifer Murphy | Word Tables | 1 | 08-23-2016 03:00 PM |
![]() |
RavenSuzumiya | Word Tables | 1 | 06-09-2016 03:38 PM |
![]() |
Ian A King | Word | 2 | 05-11-2015 10:13 PM |