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))

A | B |

Test 1 | 5 |

Test 1 | 4 |

Test 2 | 1 |

Test 2 | 7 |

Test 3 | 6 |

<tbody>

</tbody>

Thank you! ray: