Sum consecutive cells that meet criteria
Please provide the excel formula for the below criteria
excel formula for sum of the Amount values when same price occurs consecutively till the next change of price
Actual
Price Amount
2 100
2 100
4 220
5 280
2 300
2 300
Expected
Price Amount result
2 100 200
2 100 200
4 220 220
5 280 280
2 300 600
2 300 600
Please provide the excel formula for the below criteria
excel formula for sum of the Amount values when same price occurs consecutively till the next change of price
Actual
Price Amount
2 100
2 100
4 220
5 280
2 300
2 300
Expected
Price Amount result
2 100 200
2 100 200
4 220 220
5 280 280
2 300 600
2 300 600