Max IF formula

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
886
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to get a Max IF formula to work. At first I thought of using an index match with Max however I read online that the below formula would be a better fit:

=MAX(IF(('% Complete'!A1:A6=A1),'% Complete'!$B$1:$B$7))

I need the formula to return the Maximum percentage from the list below for each color match:

% Complete
A B
Red 50%
Blue10%
Green90%
Yellow50%
Red 100%
Red 75%
Yellow25%

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>

This is what the results should be:
A B
Red 100%
Blue10%
Green90%
Yellow50%

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>


However what I get is:

Red 100%
Blue100%
Green100%
Yellow100%

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>


Any help would be greatly appreciated

Thank you :)

Carla
 
Re: Need help with a Max IF formula

Thank you so much! I learned a lot today. I think I will use this formula more often. I like that the AGGREGATE ignores errors and that you can chose to have it return the 1st or 2nd Largest value etc.

Thank you very very much!!

Carla
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Re: Need help with a Max IF formula

Use sumproduct formula:

=SUMPRODUCT(MAX(('Labor Input BLANK'!$F$3:$F$1000=D2)*('Labor Input BLANK'!$H$3:$H$1000)))

Other recommendations. Your current file is 17 megabytes :eek:

Do not copy formulas, or validations, or formats throughout the sheet, just copy what you occupy. If you delete all the rows you don't occupy you will have a 57Kb file. This makes it easier to work. ;)
 
Upvote 0
Re: Need help with a Max IF formula

You're welcome & thanks for the feedback
 
Upvote 0
Re: Need help with a Max IF formula

The worksheet is not mine but I will clean it up before I send it back to my college.

Thank you very much for all your help :)

Carla
 
Upvote 0

Forum statistics

Threads
1,214,552
Messages
6,120,172
Members
448,948
Latest member
spamiki

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