Explanation
TheSUMIFS functionis designed to sum numeric values using multiple criteria.
This allows the formula to change as needed when the formula is copied throughout the table.
With both criteria together, the SUMIFS function correctly sums the opportunities by name and by stage.
Without names ranges
This example uses named ranges for convenience only.
Note: apivot tablewould also be an excellent way to solve this problem.