Formula to calculate a % of a total

billyshears

Board Regular
Column D Column E
Green 1
Red 2
Blue 5
Orange 7
Yellow 8
Blue 6
Green 2

Is there any way to write a formula that will analyze the Column D and E, and return which Category Color has the highest total if you add up Column E?

For instance, Blue appears twice in the Column D and has a total of 11. IS there any forumula that would return the answer as Blue or Blue 11?

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Array enter

=INDEX(D2:D7,MATCH(MAX(SUMIF(\$D\$2:\$D\$7,D2:D7,\$E\$2:\$E\$7)),SUMIF(\$D\$2:\$D\$7,D2:D7,\$E\$2:\$E\$7)))

Replies
2
Views
225
Replies
1
Views
337
Replies
0
Views
219
Replies
4
Views
177
Replies
4
Views
334

1,203,605
Messages
6,056,231
Members
444,852
Latest member
MJaspering

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.

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

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