So here is the table:
Name Indicator Amount
Anson 1 3.5
Anson 2 2.6
Anson 4 8.4
Anson 5 3.2
Ben 1 7
Ben 3 4.7
Ben 4 3.6
How can I get the sum amount if the indicator is consecutive? This is the result I want:
Name Indicator Amount
Anson 1,2 6.1
Anson 4,5 11.6
Ben 1 7
Ben 3,4 8.3
Thanks!