thegreengrocer
New Member
- Joined
- Mar 2, 2010
- Messages
- 15
I have a huge amount of data (on the left) from which i would like to extract the averages to the table on the right.
the formula to go in K4 would give me the average of the Buy1 numbers in column B:B, but only if these numbers had the ID of '3' in column A:A. the formula would want to ignore 0 if possible.
many thanks in advance.
the formula to go in K4 would give me the average of the Buy1 numbers in column B:B, but only if these numbers had the ID of '3' in column A:A. the formula would want to ignore 0 if possible.
many thanks in advance.
Excel Workbook | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | |||
1 | Data | Table | ||||||||||||||||
2 | ||||||||||||||||||
3 | ID | Buy1 | Buy2 | Buy3 | Buy4 | Buy5 | Buy6 | ID | Buy1 | Buy2 | Buy3 | Buy4 | Buy5 | Buy6 | ||||
4 | 3 | 74 | 74 | 71 | 0 | 0 | 0 | 3 | ||||||||||
5 | 3 | 69 | 76 | 75 | 0 | 0 | 0 | 4 | ||||||||||
6 | 3 | 71 | 77 | 69 | 0 | 0 | 0 | 5 | ||||||||||
7 | 4 | 69 | 70 | 72 | 0 | 0 | 0 | 6 | ||||||||||
8 | 4 | 69 | 71 | 0 | 0 | 0 | 0 | |||||||||||
9 | 4 | 71 | 78 | 74 | 0 | 0 | 0 | |||||||||||
10 | 4 | 67 | 75 | 0 | 0 | 0 | 0 | |||||||||||
11 | 5 | 69 | 71 | 77 | 0 | 0 | 0 | |||||||||||
12 | 6 | 73 | 69 | 72 | 0 | 0 | 0 | |||||||||||
13 | 6 | 74 | 75 | 72 | 0 | 0 | 0 | |||||||||||
Sheet1 |