Max If formula other than Array Function

scorpene

New Member
Joined
Aug 2, 2019
Messages
11
Hello All,

I am trying to extract maximum values in a given set of data. I am currently using an array function :( =MAX(IF($A$2:$A$12=B2,$C$2:$C$12)) ). Every time i need to press Ctrl+Shift+Enter.

Is there anyway that I can get the maximum values out of a given data set without using an array function. I have attached screenshot for ready reference.

Thanks !!
 

Attachments

  • MAXIF.jpg
    MAXIF.jpg
    89 KB · Views: 6

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
How about
=AGGREGATE(14,6,$C$2:$C$12/($A$2:$A$12=B2),1)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
@scorpene
I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

For example, if you have Excel 365 with the FILTER function you could also use
=MAX(FILTER(C$2:C$12,A$2:A$12=B2,0))

Also suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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