Hello all. Im wondering how I can do calculations on a column of cells, based on reference column having consecutive values. Say I have the following
A|B
-----
5|1
5|1
5|1
6|1
3|1
2|1
5|1
5|1
5|1
I want to have one cell (say C1) contain the sum of the first block of values in column B, that corresponds with the first block of consecutive 5s in column A. Then I'd have another cell (C2) contain the sum of the values in column B that corresponded with the second block of consecutive 5s, and so on for the entire spreadsheet.
Basically as soon as there is a break from a certain value (5 in this case) in a column I want a new calculation to be performed, for a different cell, on the next set of data that corresponds with consecutive values.
Does that make any sense? Thanks!
A|B
-----
5|1
5|1
5|1
6|1
3|1
2|1
5|1
5|1
5|1
I want to have one cell (say C1) contain the sum of the first block of values in column B, that corresponds with the first block of consecutive 5s in column A. Then I'd have another cell (C2) contain the sum of the values in column B that corresponded with the second block of consecutive 5s, and so on for the entire spreadsheet.
Basically as soon as there is a break from a certain value (5 in this case) in a column I want a new calculation to be performed, for a different cell, on the next set of data that corresponds with consecutive values.
Does that make any sense? Thanks!