a computer is entering data from a totalizer into an excel spreadsheet like below: (the entries begin at the botom)
notice the totalizer reset and started counting again.
(the actual total gallons for the day would be: 572.229 +24.317)
how do I create a formula to see only the highest number in each runtime for calculation (sum)

total gallons
24.317
24.317
24.317
15.303
0.580
572.229
554.862
126.832
113.046
95.847
81.529
65.807
49.757
33.871
20.030
1.775
0.000
0.000