Formula for the max value of a sumif

nruk123

New Member
Joined
Feb 25, 2019
Messages
4
I need a formula that looks at the two columns below and gives me the result "Wed" as the max value

Mon 10
Tue 15
Wed 20
Mon 15
Tue 10
Wed 20
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi. Try this entered CTRL-SHIFT-ENTER:

=INDEX(A1:A6,MATCH(MAX(SUMIFS(B1:B6,A1:A6,A1:A6)),SUMIFS(B1:B6,A1:A6,A1:A6),0))
 
Upvote 0
How about


Excel 2013/2016
ABC
2Mon10Wed
3Tue15
4Wed20
5Mon15
6Tue10
7Wed20
Cover
Cell Formulas
RangeFormula
C2=INDEX(A2:A7,MATCH(MAX(B2:B7),B2:B7,0))
 
Last edited:
Upvote 0
That one nearly works. I want it to come back with Wed as the sum 40 is the highest total

How about

Excel 2013/2016
ABC

<colgroup><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]2[/TD]
[TD="align: right"]Mon[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]Wed[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]Tue[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]Wed[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"][/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]Mon[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"][/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]Tue[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"][/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]Wed[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"][/TD]

</tbody>
Cover

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C2[/TH]
[TD="align: left"]=INDEX(A2:A7,MATCH(MAX(B2:B7),B2:B7,0))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
If you dont like CTRL-SHIFT-ENTER then maybe this:

=LOOKUP(2,1/((MAX(INDEX(SUMIFS(B1:B6,A1:A6,A1:A6),0))=SUMIFS(B1:B6,A1:A6,A1:A6))),A1:A6)
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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