Hi,
I have a set of data where I need to find the mean and median, based on certain criteria.
Basically, I need to find the mean and median price for "Apple", "Pear", and "Grape" based on the year purchased, and then the overall for all 3 fruits (cells in yellow). Can anyone help with the formula? Thanks!
I have a set of data where I need to find the mean and median, based on certain criteria.
Fruit | Year | Price | Fruit | Year | Mean | Median | Overall | ||||
Apple | 11/4/2022 | 20 | Apple | 2015 | |||||||
Pear | 23/3/2015 | 35 | 2016 | Fruit | Mean | Median | |||||
Grape | 9/12/2019 | 61 | 2017 | Apple | |||||||
Apple | 19/7/2021 | 21 | 2018 | Grape | |||||||
Apple | 20/9/2021 | 85 | 2019 | Pear | |||||||
Pear | 26/3/2018 | 62 | 2020 | ||||||||
Apple | 21/3/2016 | 31 | 2021 | ||||||||
Pear | 20/6/2016 | 11 | 2022 | ||||||||
Grape | 3/4/2017 | 25 | Grape | 2015 | |||||||
Grape | 11/9/2017 | 85 | 2016 | ||||||||
Grape | 14/11/2016 | 64 | 2017 | ||||||||
Pear | 24/9/2018 | 12 | 2018 | ||||||||
Pear | 5/8/2019 | 58 | 2019 | ||||||||
Pear | 28/7/2022 | 87 | 2020 | ||||||||
Apple | 5/5/2020 | 42 | 2021 | ||||||||
Pear | 6/12/2021 | 65 | 2022 | ||||||||
Grape | 22/2/2022 | 65 | Pear | 2015 | |||||||
2016 | |||||||||||
2017 | |||||||||||
2018 | |||||||||||
2019 | |||||||||||
2020 | |||||||||||
2021 | |||||||||||
2022 | |||||||||||
Basically, I need to find the mean and median price for "Apple", "Pear", and "Grape" based on the year purchased, and then the overall for all 3 fruits (cells in yellow). Can anyone help with the formula? Thanks!