Is there a way I can calculate the range of number of Days between nonzero columns? Ie..
column A is dates 1/1/2011 - 1/1/2012 Column B is a value either 0 or a whole number. Column B consists mostly of zeros. I would like a formula to calculate number of days between two dates in column A. For example if A1 =1/1/2011 and B1 =20 & the next whole number in column B is B10=1 I would like to calculate the number of days between A1 and A10. Is this possible? See example below.
date...... Runs.......Average Run Cycle
1/1/2012........1
1/2/2012........0
1/3/2012....... 0
1/4/2012....... 0
1/5/2012....... 0
1/6/2012....... 0
1/7/2012....... 0
1/8/2012....... 6
1/9/2012....... 8
1/10/2012...... 0
1/11/2012.......0
1/12/2012...... 0
1/17/2012...... 1
column A is dates 1/1/2011 - 1/1/2012 Column B is a value either 0 or a whole number. Column B consists mostly of zeros. I would like a formula to calculate number of days between two dates in column A. For example if A1 =1/1/2011 and B1 =20 & the next whole number in column B is B10=1 I would like to calculate the number of days between A1 and A10. Is this possible? See example below.
date...... Runs.......Average Run Cycle
1/1/2012........1
1/2/2012........0
1/3/2012....... 0
1/4/2012....... 0
1/5/2012....... 0
1/6/2012....... 0
1/7/2012....... 0
1/8/2012....... 6
1/9/2012....... 8
1/10/2012...... 0
1/11/2012.......0
1/12/2012...... 0
1/17/2012...... 1