Array Function to Return Name of Largest Value in a Range

ClaytonKershaw

New Member
Joined
Dec 31, 2012
Messages
6
I'm working on an array formula to return the name of the value with the largest value in a range.

In column A, I have the cities names and in column B I have the pouplations that correspond to the city name.

I can do an if formula such as =IF(B3=MAX($B$2:$B$44),A3,"") and that will provide the name of the largest value. However, I have to fill handle it down the entire range. Thus why I am trying to create an array so I can just enter it in one cell.

Thanks






<TBODY>
</TBODY>
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
welcome to the board...

Try

=INDEX($A$2:$A$44,MATCH(MAX($B$2:$B$44),$B$2:$B$44,0))


Note, if there are 2 or more of the same MAX value, it will return the value from the top one.
 
Upvote 0

Forum statistics

Threads
1,213,521
Messages
6,114,104
Members
448,548
Latest member
harryls

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