Hi,
I am trying to find the average of the most recent 3 values meeting the criteria of pet type.
In other words, I need the average of the 3 most recent (by date) Dog values, 3 most recent (by date) Cat values etc.
Apologies, I can't seem to add an attachment. I have pasted the data below.
Date Animal Value
1/01/11 Dog 17
2/03/11 Cat 10
8/07/11 Cat 7
8/09/11 Dog 8
9/01/12 Cat 13
8/07/12 Bird 9
6/08/12 Cat 2
4/07/13 Bird 3
8/07/13 Dog 20
5/07/14 Bird 15
5/08/14 Cat 19
6/08/14 Cat 16
8/09/14 Bird 12
3/05/15 Dog 11
4/07/15 Dog 5
6/07/15 Bird 18
5/09/15 Bird 1
6/06/16 Dog 14
6/08/16 Bird 6
7/08/16 Cat 4
7/08/16 Dog 7
Thanks for the help!
Bookmarks