A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Though Pivot table is the best approach but in case because of business / design need, you are looking for formula, below is the formula -
=SUMPRODUCT(SUBTOTAL(3,OFFSET(B6,ROW(B6:B20)-ROW(B6),))*(B$6:B$20<>"")*(MONTH(B$6:B$20)=6))
The above formula will give you Total for June month. For applying other criteria, just keep multiplying the criteria. Hence, for example, for Closed ones -
=SUMPRODUCT(SUBTOTAL(3,OFFSET(B6,ROW(B6:B20)-ROW(B6),))*(B$6:B$20<>"")*(MONTH(B$6:B$20)=6)*(C$6:C$20="Closed"))
You can build the same for other criteria also.