So here is what I am trying to achieve
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Person[/TD]
[TD="width: 64"]Case#[/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD]17[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]18[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]Doug[/TD]
[TD]17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Doug[/TD]
[TD]18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Doug[/TD]
[TD]19[/TD]
[TD]Y[/TD]
[/TR]
</tbody>[/TABLE]
I want the third col to "trigger" with a "Y" when col B is the highest value for the variable in col A. I'm playing around with countif functions, and maybe search functions, but I'm just blocked. I tried to do a if A2=A3 or A2=A1 then if B2>B3 etc... but because the number of case# per person varies, it get very long, and gets messed up when I enter a new row. Is there some way I read the col b values into an array for each change in col A, and then return the highest value is col C?
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Person[/TD]
[TD="width: 64"]Case#[/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD]17[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]18[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]Doug[/TD]
[TD]17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Doug[/TD]
[TD]18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Doug[/TD]
[TD]19[/TD]
[TD]Y[/TD]
[/TR]
</tbody>[/TABLE]
I want the third col to "trigger" with a "Y" when col B is the highest value for the variable in col A. I'm playing around with countif functions, and maybe search functions, but I'm just blocked. I tried to do a if A2=A3 or A2=A1 then if B2>B3 etc... but because the number of case# per person varies, it get very long, and gets messed up when I enter a new row. Is there some way I read the col b values into an array for each change in col A, and then return the highest value is col C?