Hi

A B

X 1
Y 1
X 2
Y 2
Y 4
X 5


I want to sum up those numbers in B column which contains Y in their opposite in A column.