All,
Thank you for your time for looking at my question.
I would like to count the # of consecutive cells in a column that have a zero in them if there are more than 10 consecutive cells with a value of zero. For example, I have a spreadsheet that records production data from a machine. Each row represents one minute of the day (17:30, 17:31, 17:32, etc). If there are 10 or more consecutive rows that have zero (0) production recorded, I want to tally up those minutes. For one of my days of production, I have about 44 rows that had production one minute, zero the next, production for the next 12 mins, and then I went 19 mins without production due to a malfunction, and production picked back up after the 33rd minute; there were 3 minutes (non-consecutive) after that in which there was zero production. In this case, there would be 19 mins of downtime.
Let's say I have a range of minutes in Col. A (A1:A30) and in col. B I have a record of production units (1 or 2 units; never more than 2). From A9:A22 there was zero production; I want to have a value of 1 in G9 to indicate at that particular minute, the machine was down because the 10 min trigger had been reached if one were to look at the next 10 minutes. Since there are more than 10 cells with values of zero in A9:A22, I want G9:G22 to sum up to 14 minutes.
I tried nesting several if statements together but I couldn't get them to work.
I apologize for not posting an example spreadsheet; I am on my home computer while my spreadsheets are on my work computer.
I truly appreciate your time in helping me out.
Thank you,
Adam
Thank you for your time for looking at my question.
I would like to count the # of consecutive cells in a column that have a zero in them if there are more than 10 consecutive cells with a value of zero. For example, I have a spreadsheet that records production data from a machine. Each row represents one minute of the day (17:30, 17:31, 17:32, etc). If there are 10 or more consecutive rows that have zero (0) production recorded, I want to tally up those minutes. For one of my days of production, I have about 44 rows that had production one minute, zero the next, production for the next 12 mins, and then I went 19 mins without production due to a malfunction, and production picked back up after the 33rd minute; there were 3 minutes (non-consecutive) after that in which there was zero production. In this case, there would be 19 mins of downtime.
Let's say I have a range of minutes in Col. A (A1:A30) and in col. B I have a record of production units (1 or 2 units; never more than 2). From A9:A22 there was zero production; I want to have a value of 1 in G9 to indicate at that particular minute, the machine was down because the 10 min trigger had been reached if one were to look at the next 10 minutes. Since there are more than 10 cells with values of zero in A9:A22, I want G9:G22 to sum up to 14 minutes.
I tried nesting several if statements together but I couldn't get them to work.
I apologize for not posting an example spreadsheet; I am on my home computer while my spreadsheets are on my work computer.
I truly appreciate your time in helping me out.
Thank you,
Adam