I'm trying to create an Excel formula that will create a sum whose range is based on the contents of a different cell. So for example I have the following data:
The "Yes's" are based on criteria from another part of the Excel sheet, and will not always be in the same places. I want to be able to sum the values "between" the "Yes's", so in this case C9=SUM(B1:B9) and C21=SUM(B10:B21). Any ideas?

