Is this possible, function to read list and return largest value?

dooder

New Member
Joined
Jun 27, 2017
Messages
11
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?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Welcome to the forums!

This seems to accomplish what you're looking to do.


Excel 2013/2016
ABC
1PersonCase#Formula
2Joe17Y
3Bob17
4Bob18Y
5Doug17
6Doug18
7Doug19Y
Sheet1
Cell Formulas
RangeFormula
C2{=IF(B2=MAX(IF(A:A=A2,B:B)),"Y","")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Oh, my gosh, thank you. I actually tried something similar to that and gave up, but just realize my col b was read in as text.
 
Upvote 0
Oh, my gosh, thank you. I actually tried something similar to that and gave up, but just realize my col b was read in as text.

Glad I was able to find a working solution for you - thanks for the feedback. Have a good weekend!
 
Upvote 0

Forum statistics

Threads
1,224,768
Messages
6,180,850
Members
453,002
Latest member
anifnisar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top