Hi, I have a table similiar to this on Sheet1:

Col A ColB
2 Dog
5 Dog
3 Cat
8 Dog

On Sheet2, I want to calculate the average of the values in ColA where
ColB says Dog.

So sheet 2 would be:
Average
Dog 5
Cat 3


How can i do this?

Thank you!!