I have tables which look like this:

I want to filter out the sum of the maximum values in column C for every unique text value in column A, where the value in column B equals "d".
So for the linked example, the result would be a sum of C3+C6+C9 equaling 9. I am able to get the right results using pivot tables, macros etc., but I'm looking to solve it with a single function.
