JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,553
- Office Version
- 365
- Platform
- Windows
I need to calculate the average ratio of a set of numbers. This minisheet is a simple example.
In P11, I want to calculate the average ratio of the values in L/K for each value in J. The expression in O11 works, but the one in P11 does not. Can anyone tell me why? And what do I need to do to make it work. The values in J11:L16 are sorted on J, but I need the expression to work no matter how they are sorted.
Thanks
In P11, I want to calculate the average ratio of the values in L/K for each value in J. The expression in O11 works, but the one in P11 does not. Can anyone tell me why? And what do I need to do to make it work. The values in J11:L16 are sorted on J, but I need the expression to work no matter how they are sorted.
Average Ratings.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
J | K | L | M | N | O | P | |||
11 | a | 2 | 4 | a | 2 | =sumifs(L11:L16/K11:K16,J11:J16,N11) | |||
12 | a | 3 | 6 | b | 3 | ||||
13 | a | 4 | 8 | ||||||
14 | b | 2 | 6 | ||||||
15 | b | 3 | 9 | ||||||
16 | b | 4 | 12 | ||||||
Test |
Cell Formulas | ||
---|---|---|
Range | Formula | |
O11 | O11 | =SUM(L11:L13/K11:K13)/3 |
O12 | O12 | =SUM(L14:L16/K14:K16)/3 |
Thanks