Hello Excel gosu's,
I have a pickle with an excel formula, and I can't seem to find an answer anywhere.
My data looks vaguely like the data below
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]student[/TD]
[TD="class: xl65, width: 64"]class[/TD]
[TD="class: xl65, width: 64"]marks[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]A[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]A[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]B[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]C[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]C[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]D[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]D[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]
Let's say I want the maximum 'marks' of student B but NOT for class A & B. (let's assume there are thousands of records)
I know I can fix this by hardcoding A, B in the MAXIFS function, but I want to read these values from a list or table.
excludeClass is a named range containing {"A";"B"}
In my head the function looks like this: {=MAXIFS(marks,student,"A",class,"<>"&excludeClass)}
That doesn't work (it says 7 instead of 4).
I then tried converting 'class' to a ones and zeroes like this
=MAXIFS(marks,student,"A",IF(ISERROR(MATCH(class,excludeClass,0)),1,0),1)
That function returns {0;0;0;0;0;0;1;1} which I wanted to filter on 1, but apparantly that doesn't work either
It gives me an embarassing #VALUE
Does anyone have a clue ?
Cheers!
I have a pickle with an excel formula, and I can't seem to find an answer anywhere.
My data looks vaguely like the data below
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]student[/TD]
[TD="class: xl65, width: 64"]class[/TD]
[TD="class: xl65, width: 64"]marks[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]A[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]A[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]B[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]C[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]C[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]D[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]D[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]
Let's say I want the maximum 'marks' of student B but NOT for class A & B. (let's assume there are thousands of records)
I know I can fix this by hardcoding A, B in the MAXIFS function, but I want to read these values from a list or table.
excludeClass is a named range containing {"A";"B"}
In my head the function looks like this: {=MAXIFS(marks,student,"A",class,"<>"&excludeClass)}
That doesn't work (it says 7 instead of 4).
I then tried converting 'class' to a ones and zeroes like this
=MAXIFS(marks,student,"A",IF(ISERROR(MATCH(class,excludeClass,0)),1,0),1)
That function returns {0;0;0;0;0;0;1;1} which I wanted to filter on 1, but apparantly that doesn't work either
It gives me an embarassing #VALUE
Does anyone have a clue ?
Cheers!