Forum Discussion

daniel95's avatar
daniel95
Copper Contributor
Oct 02, 2019

counting an the number of cells in which a run on 1s appears

I am creating a spread sheet for a stats class. I am simulating tossing a fair coin and having 1 appear if it is a head and 0 if it is a tail. I'd like to calculate the longest run of 1s in each row, where a row represents 100 tosses of a coin. Thanks.

3 Replies

    • daniel95's avatar
      daniel95
      Copper Contributor
      Thanks Sergie. It is not quite working. I changed the As to Bs because my data starts in column B. Otherwise I just did a cut and paste. I get #Value! as error message. When I try to trace it I just get a line across row 1. Any thoughts?

Resources