Mathsy
New Member
- Joined
- Oct 20, 2021
- Messages
- 3
- Office Version
- 365
- 2019
- 2016
- 2013
- Platform
- Windows
- MacOS
Hi,
Please give me a hand here! I'm trying to average a lot of data, but only if it fits certain criteria.
I have data for different items, split across different months. And each row is given a category
So, for example:
What I'm trying to do is find the average for each category, excluding the 0s. So, I'd want the average for fruit, (so the orange, apple and banana columns), but only if the value is not 0. I've tried to do an averageif formula and all sorts but it won't work with the categories.
Really need to get this done so would appreciate any advice!
Please give me a hand here! I'm trying to average a lot of data, but only if it fits certain criteria.
I have data for different items, split across different months. And each row is given a category
So, for example:
Item | Category | Jan | Feb | March | April |
Orange | Fruit | 3 | 6 | 0 | 8 |
Apple | Fruit | 8 | 0 | 0 | 2 |
Cabbage | Vegetable | 0 | 0 | 3 | 8 |
Banana | Fruit | 9 | 8 | 8 | 8 |
Potato | Vegetable | 8 | 6 | 6 | 0 |
Chair | Furniture | 9 | 7 | 0 | 0 |
What I'm trying to do is find the average for each category, excluding the 0s. So, I'd want the average for fruit, (so the orange, apple and banana columns), but only if the value is not 0. I've tried to do an averageif formula and all sorts but it won't work with the categories.
Really need to get this done so would appreciate any advice!