It’s also very fast.

The inputs for these criteria are the cells H5, H6, and H7.

Excel formula: VLOOKUP with multiple criteria

Excel formula: INDEX and MATCH with multiple criteria

Excel formula: SUMIFS with multiple criteria and OR logic

Excel formula: SUMIFS with Excel Table

Excel SUMIFS function