Formula for Returning Highest Value in a Set

wilsork

New Member
Joined
Mar 27, 2013
Messages
2
Excel 2007
Windows XP Pro

Based on the Main Acct (Column B) and highest Unique Value (Column C) how can I retrieve a result of a Y (Column D) for the highest value for a Main Acct? Terrible explanation I feel like, but an example of what I am trying to accomplish is below. I've tried using a Max function, but to no avail. I have basic knowledge of Excel, but this might be well beyond my limitations. Any help provided would be extremely appreciated.

Acct</SPAN>
Main Acct</SPAN>
Unique</SPAN>
Result</SPAN>
123</SPAN>
11111</SPAN>
3</SPAN>
????</SPAN>
321</SPAN>
11111</SPAN>
2</SPAN>
????</SPAN>
443</SPAN>
11111</SPAN>
1</SPAN>
????</SPAN>
556</SPAN>
22222</SPAN>
1</SPAN>
????</SPAN>
487</SPAN>
33333</SPAN>
1</SPAN>
????</SPAN>
456</SPAN>
44444</SPAN>
5</SPAN>
????</SPAN>
789</SPAN>
44444</SPAN>
4</SPAN>
????</SPAN>
987</SPAN>
44444</SPAN>
3</SPAN>
????</SPAN>
654</SPAN>
44444</SPAN>
2</SPAN>
????</SPAN>
234</SPAN>
44444</SPAN>
1</SPAN>
????</SPAN>

<TBODY>
</TBODY>


Acct
</SPAN>

Main Acct</SPAN>
Unique</SPAN>
Result</SPAN>
123</SPAN>
11111</SPAN>
3</SPAN>
Y</SPAN>
321</SPAN>
11111</SPAN>
2</SPAN>
N</SPAN>
443</SPAN>
11111</SPAN>
1</SPAN>
N</SPAN>
556</SPAN>
22222</SPAN>
1</SPAN>
Y</SPAN>
487</SPAN>
33333</SPAN>
1</SPAN>
Y</SPAN>
456</SPAN>
44444</SPAN>
5</SPAN>
Y</SPAN>
789</SPAN>
44444</SPAN>
4</SPAN>
N</SPAN>
987</SPAN>
44444</SPAN>
3</SPAN>
N</SPAN>
654</SPAN>
44444</SPAN>
2</SPAN>
N</SPAN>
234</SPAN>
44444</SPAN>
1</SPAN>
N</SPAN>

<TBODY>
</TBODY>
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Excel 2007
Windows XP Pro

Based on the Main Acct (Column B) and highest Unique Value (Column C) how can I retrieve a result of a Y (Column D) for the highest value for a Main Acct? Terrible explanation I feel like, but an example of what I am trying to accomplish is below. I've tried using a Max function, but to no avail. I have basic knowledge of Excel, but this might be well beyond my limitations. Any help provided would be extremely appreciated.

AcctMain AcctUniqueResult
123111113????
321111112????
443111111????
556222221????
487333331????
456444445????
789444444????
987444443????
654444442????
234444441????

<tbody>
</tbody>


Acct
Main AcctUniqueResult
123111113Y
321111112N
443111111N
556222221Y
487333331Y
456444445Y
789444444N
987444443N
654444442N
234444441N

<tbody>
</tbody>

Control+shift+enter, not just enter:

=INDEX(YesNoRange,MATCH(1,IF(AcctRange=Acct,IF(MainAcctRange=MainAcct,IF(UniqueRange=Unique,1))),0))
 
Upvote 0
in d2, try:
Code:
=IF(C2=MAX(IF($B$2:$B$11=B2,$C$2:$C$11,-E999)),"Y","N")
entered with Ctrl-Shift-Enter instead of just Enter. Copy/Paste down.
 
Upvote 0
Thank you both for your input. Problem = solved!! Only if I had a tenth of y'all's knowledge in Excel, I could be dangerous.
 
Upvote 0

Forum statistics

Threads
1,196,028
Messages
6,012,956
Members
441,740
Latest member
IammeResources

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