Max Value?

Welsh Mark3

Board Regular
Joined
Apr 7, 2014
Messages
164
Office Version
  1. 365
[TABLE="width: 500"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Value[/TD]
[TD]Desired Result[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]20[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]20[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]50[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]150[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]5[/TD]
[TD]150[/TD]
[/TR]
</tbody>[/TABLE]

I am treying to write a formula that finds the maximum value in a given mnmth. The table attempts to show what i am trying to do, the desired result is the value i am trying to produce.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
If you have MAXIFS, try
=MAXIFS($B$2:$B$7,$A$2:$A$7,A2)

otherwise
=MAX(IF($A$2:$A$7=A2,$B$2:$B$7))
This needs to be confirmed with Ctrl Shift Enter, rather than just Enter
 
Upvote 0
=MAX(IF($A$2:$A$7=A2,$B$2:$B$7)) seems to give me the largest value from the entire range but not for each month.
I have used the fill down function to drage the formula down, Do I need to try something? And again I appreciate your help

 
Upvote 0
Did you confirm it with Ctrl Shift Enter?
If so you shold see the formula wrapped in {}
 
Upvote 0
Do I need to select the entire array of cells and simply select Ctrl Shift Enter? I do not see the fomula wrapped
 
Upvote 0
Select the first cell the formula is in, press F2, then Ctrl Shift Enter, then drag the formula down.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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