EXCEL function

BHSCanners

New Member
Joined
Feb 23, 2016
Messages
2
I have used MAX to put out the largest number in a range. However, I would like Excel to give me the text information to the left that is associated with that highest number. Is there a function that can do this?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Welcome to the board.

If numbers are in say B2:B10, and the associated TEXT value you want is in A2:A10

=INDEX(A2:A10,MATCH(MAX(B2:B10),B2:B10,0)
 
Upvote 0
Thank you. I understand the logic up until the last part of the equation -- B2:B10,0 -- Am I correct -- the B2:B10 is the range that must match with the max range and the 0 means return the first value that is equal to the max function?
 
Upvote 0
I left off an ending )

It should be
=INDEX(A2:A10,MATCH(MAX(B2:B10),B2:B10,0))

The 0 is the 3rd argument of the MATCH, which makes it look for an EXACT match.
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,447
Members
448,898
Latest member
drewmorgan128

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