Array Formula Question - Condition An Array by Itself

grant1377

New Member
Joined
Nov 6, 2019
Messages
2
Hello! I'm trying to solve the following issue using an array formula but I'm struggling. I'm fairly versed with arrays but can't figure this out. Thank you in advance for the help!


Using the example below, I'd like to pull the max number associated with each individual text in the first column. E.g., 'Test 1' would be 9, 'Test 2' 8, and 'Test 3' 6. Then I'd like to return the max of that, which would be 9.

Is this possible using one single array formula? There are two paths that I thought could work to solve this, but I'm struggling to figure out how to use an array and then qualify that array by the array itself, if that makes sense. I'm struggling to even figure out what to search online to help find info on this.

For example, the formula below would work but only calculates the total for the text in A2, 'Test 1'. I essentially need a formula so that the array becomes: =max(sums Test 1,sums Test 1,sums test 2,sums test 2,sums test 3), and then =max(9,9,8,6).

=Sum((A2:A6)=A2)*(B2:B6))


[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]Test 1[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Test 1[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Test 2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Test 2[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Test 3[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]



Thank you! :pray:
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
The CSE formula =MAX(SUMIF(A1:A5,A1:A5,B1:B5)) will give you the max of Test1 total, Test2 total, Test3 total.

To convert that Test1, Test2, or Test 3
=INDEX(A1:A5, MATCH(MAX(SUMIF(A1:A5,A1:A5,B1:B5)),SUMIF(A1:A5,A1:A5,B1:B5),0), 1)
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,020
Members
452,542
Latest member
Bricklin

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