I need help with an IF formula for recapitulating a spreadsheet as seen below: A B C D 1 O7 1 0 2 O6 1 1 3 O6 1 0 4 O5 3 4 5 Total 6 5 6 7 Recapitulation 8 O7 1 0 9 O6 2 1 10 O5 3 4 11 Total 6 5