RoganLogan
New Member
- Joined
- Dec 7, 2011
- Messages
- 45
Hi
I was trying to use averageifs to average numbers I have in row 1 from A1:AV1 by a corresponding criteria number I have in row 2 from A2:AV2. So if the numbers in the cells in row 1 have a 1 below in the criteria row 2 they are averaged in row 3 and the same for all the other criteria numbers. The criteria numbers in row 2 go from 1 to 20. This is what i want to achieve below with the formula in row 3 giving me the average
[TABLE="width: 200"]
<tbody>[TR]
[TD]10[/TD]
[TD]20[/TD]
[TD]25[/TD]
[TD]20[/TD]
[TD]40[/TD]
[TD]50[/TD]
[TD]30[/TD]
[TD]40[/TD]
[TD]50[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]18.33[/TD]
[TD]18.33[/TD]
[TD]18.33[/TD]
[TD]36.66[/TD]
[TD]36.66[/TD]
[TD]36.66[/TD]
[TD]40[/TD]
[TD]40[/TD]
[TD]40[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]
I tried using avergeifs but have since discovered that averageifs works on AND condition not OR. So I've tried using array formulas but still cant get it to work. Any help would be greatly appreciated.
Many thanks,
RL
I was trying to use averageifs to average numbers I have in row 1 from A1:AV1 by a corresponding criteria number I have in row 2 from A2:AV2. So if the numbers in the cells in row 1 have a 1 below in the criteria row 2 they are averaged in row 3 and the same for all the other criteria numbers. The criteria numbers in row 2 go from 1 to 20. This is what i want to achieve below with the formula in row 3 giving me the average
[TABLE="width: 200"]
<tbody>[TR]
[TD]10[/TD]
[TD]20[/TD]
[TD]25[/TD]
[TD]20[/TD]
[TD]40[/TD]
[TD]50[/TD]
[TD]30[/TD]
[TD]40[/TD]
[TD]50[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]18.33[/TD]
[TD]18.33[/TD]
[TD]18.33[/TD]
[TD]36.66[/TD]
[TD]36.66[/TD]
[TD]36.66[/TD]
[TD]40[/TD]
[TD]40[/TD]
[TD]40[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]
I tried using avergeifs but have since discovered that averageifs works on AND condition not OR. So I've tried using array formulas but still cant get it to work. Any help would be greatly appreciated.
Many thanks,
RL
Last edited: