I have a table like this
Product Price Currency
________ _____ ________
Product 1 10 USD
Product 2 11 EUR
Product 3 12 USD
Product 4 13 CNY
Product 5 14 EUR
_____
=subtotal(109)
I use filter in Currency column, and subtotal(109) formula in price column to sum prices. So if USD is selected from filter, it filters all products with USD price and sums them. But if currency is not filtered subtotal(109) sums prices anyway, which is wrong (USD 1 + EUR 1 is not 2).
I want to fire subtotal(109) formula only if values in currency column are equal to each other. Like, count NOT unique values among filtered rows, and if that is equal to 1 fire subtotal(109).
Note: I know how to do it with SUMIF by placing a dropdown list with currencies in a separate cell. But i want to use filter to do this task.