willow1985
Well-known Member
- Joined
- Jul 24, 2019
- Messages
- 929
- Office Version
- 365
- Platform
- 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
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Red [/TD]
[TD="class: xl65, width: 64, align: right"]50%[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD="class: xl65, align: right"]10%[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD="class: xl65, align: right"]90%[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD="class: xl65, align: right"]50%[/TD]
[/TR]
[TR]
[TD]Red [/TD]
[TD="class: xl65, align: right"]100%[/TD]
[/TR]
[TR]
[TD]Red [/TD]
[TD="class: xl65, align: right"]75%[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD="class: xl65, align: right"]25%[/TD]
[/TR]
</tbody>[/TABLE]
This is what the results should be:
A B
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Red [/TD]
[TD="class: xl63, width: 64, align: right"]100%[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD="class: xl63, align: right"]10%[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD="class: xl63, align: right"]90%[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD="class: xl63, align: right"]50%[/TD]
[/TR]
</tbody>[/TABLE]
However what I get is:
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Red [/TD]
[TD="class: xl65, width: 64, align: right"]100%[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD="class: xl65, align: right"]100%[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD="class: xl65, align: right"]100%[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD="class: xl65, align: right"]100%[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be greatly appreciated
Thank you
Carla
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
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Red [/TD]
[TD="class: xl65, width: 64, align: right"]50%[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD="class: xl65, align: right"]10%[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD="class: xl65, align: right"]90%[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD="class: xl65, align: right"]50%[/TD]
[/TR]
[TR]
[TD]Red [/TD]
[TD="class: xl65, align: right"]100%[/TD]
[/TR]
[TR]
[TD]Red [/TD]
[TD="class: xl65, align: right"]75%[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD="class: xl65, align: right"]25%[/TD]
[/TR]
</tbody>[/TABLE]
This is what the results should be:
A B
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Red [/TD]
[TD="class: xl63, width: 64, align: right"]100%[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD="class: xl63, align: right"]10%[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD="class: xl63, align: right"]90%[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD="class: xl63, align: right"]50%[/TD]
[/TR]
</tbody>[/TABLE]
However what I get is:
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Red [/TD]
[TD="class: xl65, width: 64, align: right"]100%[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD="class: xl65, align: right"]100%[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD="class: xl65, align: right"]100%[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD="class: xl65, align: right"]100%[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be greatly appreciated
Thank you
Carla