Hi,

How do you get 22 occurrences of the 000001 pattern. I can only see 13

Wouldn't it be simpler to concatenate B3:G3 into say A3, copy it down. Do the same with L4:Q4 in say K4, then in R4 use

Formula: copy to clipboard
=COUNTIF(A:A,K4)