How to SUM Values Between Conditions in Excel or Google Sheets

Master conditional summing with just one formula. No filters. No scripts.