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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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
2Mon10Wed
3Tue15
4Wed20
5Mon15
6Tue10
7Wed20

<colgroup><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Cover

Worksheet Formulas
CellFormula
C2=INDEX(A2:A7,MATCH(MAX(B2:B7),B2:B7,0))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
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,203,101
Messages
6,053,530
Members
444,670
Latest member
laurenmjones1111

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