A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Let's say your data are in A1:C33.
Enter the category you want to analyze (e.g. Fish) in E2.
Enter the following array formula in F2, confirmed with Ctrl+Shift+Enter:
=AVERAGE(IF((A2:A33=E2)*(B2:B33>=LARGE(IF(A2:A33=E2,B2:B33),MIN(5,COUNTIF(A2:A33,E2)))),C2:C33)
Remember, each time you edit the formula, you will have to confirm it with Ctrl+Shift+Enter again, otherwise it will not return the correct value.