Hi, I have an excel column that consists of a 1s or 0s like so: 1 1 1 0 1 1 1 1 0 0 1 0 0 0 0 0 0 1 1 1 1 1. I would like to be able to count how many 1s there are after there are 2 consecutive 1s and before 6 consecutive 0s (so in this case I would get a result of 6). I have to do this for about 200 columns so a formula that automatically does this would be really useful. Please can you tell me if it possible to do this, and, if so, how? Thanks very much for your help.