Find MAX(Column C) where Row in Column B = 1

Twatwood

New Member
Joined
Nov 10, 2016
Messages
13
Office Version
  1. 365
Platform
  1. Windows
I have a need to find out which Person has the highest number of reviews performed that found 1 defect

Sample data:

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Column A
(Person)[/TD]
[TD]Column B
(Defects Found)[/TD]
[TD]Column C
(Reviews Performed)[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]65[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]42[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]85[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD]54[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]74[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]108[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD]85[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD]49[/TD]
[/TR]
</tbody>[/TABLE]

In the above, person 2 did 74 reviews that found 1 defect
Once I get the 74 review count, I plan to do an INDEX/MATCH to identify that it was Person 2

To get the 74 I tried this, but it didn't work

{=IF(B1:B11=1,MAX(C1:C11),0)}

Any suggestions on how to fix this?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Based on your expressed logic, why would you not have a greater expectation for returning Person 3 than you indicated you have for Person 2, because Person 3 had 108 reviews performed with only 1 defect found.
 
Upvote 0
Hi,

The correct result should be 108 from Person 3, also pointed out by Tom, try it this way, CSE formula cause I don't have MAXIF:


Book1
ABCDE
1(Person)(Defects Found)(Reviews Performed)
21065108
31142
41285
51454
62025
72174
82345
931108
103315
113585
124149
Sheet85
Cell Formulas
RangeFormula
E2{=MAX(IF(B2:B12=1,C2:C12))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
Yes, the correct answer is 108 (my bad)

And, that works.

Thanks mate.
 
Upvote 0

Book1
ABCDE
1(Person)(Defects Found)(Reviews Performed)1
21065108
31142who?
412853
514548
62025
72174
82345
931108
103315
113585
124149
1353108
1481108
Sheet1


In E2 just enter:

=MAXIFS($C$2:$C$14,$B$2:$B$14,E$1)

If there is no MAXIFS on your system, control+shift+enter, not just enter:

=MAX(IF($B$2:$B$14=E$1,$C$2:$C$14))

In E4 control+shift+enter, not just enter, and copy down:

=IF(ROWS(E$4:E4)>COUNTIFS($B$2:$B$14,E$1,$C$2:$C$14,E$2),"",INDEX($A$2:$A$14,SMALL(IF($B$2:$B$14=E$1,IF($C$2:$C$14=E$2,ROW($A$2:$A$14)-ROW($A$2)+1)),ROWS(E$4:E4))))
 
Upvote 0

Forum statistics

Threads
1,223,975
Messages
6,175,742
Members
452,667
Latest member
vanessavalentino83

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