Lookup max value that meets all criteria

Drew_

Board Regular
Joined
Jul 8, 2017
Messages
87
Hi all.

I have a fairly complicated question and I've been racking my brain for a while. I have the following data set:

<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
DrewRubenHussainPush UpsSit UpsWeek Ending Date
50% Normal for Week?YesNoYes2002504/1/18
10% Triangle for Week?YesYesYes575254/1/18
20% Wide for Week?NoYesYes22504/1/18
50% Normal for Week?NoNoNo4/8/18
10% Triangle for Week?NoNoNo4/8/18
20% Wide for Week?NoNoNo4/8/18
50% Normal for Week?NoNoNo4/15/18
10% Triangle for Week?NoNoNo4/15/18
20% Wide for Week?NoNoNo4/15/18
50% Normal for Week?NoNoNo4/22/18
10% Triangle for Week?NoNoNo4/22/18
20% Wide for Week?NoNoNo4/22/18
50% Normal for Week?NoNoNo4/29/18
10% Triangle for Week?NoNoNo4/29/18
20% Wide for Week?NoNoNo4/29/18

<colgroup><col style="width: 146px"><col width="79"><col width="83"><col width="73"><col width="58"><col width="58"><col width="84"></colgroup><tbody>
</tbody>

Drew has 200 push ups, Ruben has 575, and Hussain has 225. Essentially, I want to return the name of the person who has the maximum number of push ups AND who meets all 3 criteria (3 Yes') for each date. So I need to come up with a formula that will return "Hussain" as my answer.

I've tried various MAX/IF functions, INDEX/MATCH variables, SUMPRODUCT formulas, and I think I just have too many criteria. Or maybe I need to organize my data better (probably this).

Any help would be appreciated. Thank you.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
dwsd._zps9v7rokfa.jpg


Hi, i'm not sure how the pushup values correspond to the names. and does column A have to do with this?
 
Upvote 0
Yes, I figured I needed to reorganize my data. The push up values don't correspond to the names as of now, I was not sure how to include them in the table.

Essentially, I am doing a competition with my buddies and we are seeing who can do the most push ups in a week, and we're doing it every week for a few months. I want to label a winner each week; however, the winner must meet all 3 criteria, which are 50% of their reps have to be normal push ups, 10% of the reps have to be triangle push ups and 20% of the reps have to be wide angle push ups. So what I want my formula to say is this:

"Tell me who did the most push ups this week AND met all 3 criteria." So even though Ruben has completed 575 push ups, he has not met all 3 criteria therefore he can't win.
 
Upvote 0
I transposed my column headers so I think this will work better:

<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
50% Normal for Week?10% Triangle for Week?20% Wide for Week?Push UpsSit UpsWeek Ending Date
DrewYesYesNo2002504/1/18
RubenYesNoYes575504/1/18
HussainYesYesYes22504/1/18
DrewNoNoNo4/8/18
RubenNoNoNo4/8/18
HussainNoNoNo4/8/18
DrewNoNoNo4/15/18
RubenYesNoNo4/15/18
HussainNoNoNo4/15/18
Drew
No
NoNo4/22/18
RubenNoNoNo4/22/18
HussainNoNoNo4/22/18

<colgroup><col style="width: 54px"><col width="79"><col width="83"><col width="73"><col width="58"><col width="58"><col width="84"></colgroup><tbody>
</tbody>


I have the following formula that tells me the name of the MAX for the week: INDEX($R$3:$R$5,MATCH(MAX(V3:V5),V3:V5,0)) where the names are in the R column. However, this formula does not consider the criteria, and I need all 3 criteria to say "Yes" in order for a winner to be determined.
 
Upvote 0
Something like this?

ABCDEFGHIJ
150% Normal for Week?10% Triangle for Week?20% Wide for Week?Push UpsSit UpsWeek Ending DateWeekWinner
2DrewYesYesNo2002504/1/20184/1/2018Hussain
3RubenYesNoYes575504/1/20184/8/2018Drew
4HussainYesYesYes22504/1/20184/15/2018No one
5DrewYesYesYes2504/8/20184/22/2018Hussain
6RubenNoNoNo2754/8/2018
7HussainNoNoNo3004/8/2018
8DrewYesYesNo1004/15/2018
9RubenYesNoYes1254/15/2018
10HussainNoYesYes2504/15/2018
11DrewNoNoNo3004/22/2018
12RubenYesYesYes1234/22/2018
13HussainYesYesYes4444/22/2018

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
J2{=IFERROR(INDEX(A:A,MOD(LARGE(IF(MMULT(IF($B$2:$D$13="Yes",1,0),{1;1;1})=3,IF($G$2:$G$13=I2,$E$2:$E$13+ROW($E$2:$E$13)/10000)),1),1)*10000),"No one")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,843
Members
449,051
Latest member
excelquestion515

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