Max function

dave8

Active Member
Joined
Jul 8, 2007
Messages
275
I have a worksheet with the following data:


Column A Column B
John 60
Ann 80
Joe 50
John 75
Pete 95
Ann 75
Joe 65



I want to be able to get the highest (or Lowest) score in Column B, based on the Name in Column A. For example, I want the highest score for John. In this case, would be 75. Is there a Max function or something similar to get this?
 
xxx="Web Training"
num =4
Selection.FormulaArray = "=Max(IF(B2:B" & num & " = " & """" & xxx & """" & ", E2:E16))"
 
Upvote 0
Thanks to both for the Formula. It works!! I like to take this a step further and only provide a Max if the value in Column A = "" and Column G = "Yes". How to add this in the IF statement within the formula?
 
Upvote 0

Forum statistics

Threads
1,226,795
Messages
6,193,046
Members
453,772
Latest member
aastupin

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