I must be doing something wrong...but I came through all the manuals on the web and I am doing it exactly the same how it should work.
I have a table. And for each person (name) and each level, I want to get the maximum value from the column "number".
So if I select the whole range in column "formula", enter this:
it should work, right?
Well, wrong. In every row, it returns the same value 7. Which is the maximum for name "a" and level "3". The reference on the name and level doesn't move.
Instead it should return 7 for the first three rows, then 3 for the next three rows, etc...
[TABLE="width: 500"]
<tbody>[TR]
[TD]name[/TD]
[TD]level[/TD]
[TD]number[/TD]
[TD]formula[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]3[/TD]
[TD]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]3[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]7[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]7[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]7[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]2[/TD]
[TD]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]2[/TD]
[TD]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Can you please tell me, what am I doing wrong?
Thanks.
I have a table. And for each person (name) and each level, I want to get the maximum value from the column "number".
So if I select the whole range in column "formula", enter this:
Code:
{=MAX(IF(((A2:A18=A2)*(B2:B18=B2))>0,C2:C18))}
it should work, right?
Well, wrong. In every row, it returns the same value 7. Which is the maximum for name "a" and level "3". The reference on the name and level doesn't move.
Instead it should return 7 for the first three rows, then 3 for the next three rows, etc...
[TABLE="width: 500"]
<tbody>[TR]
[TD]name[/TD]
[TD]level[/TD]
[TD]number[/TD]
[TD]formula[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]3[/TD]
[TD]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]3[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]7[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]7[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]7[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]2[/TD]
[TD]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]2[/TD]
[TD]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Can you please tell me, what am I doing wrong?
Thanks.