Formula to return the contents of a cell next to the largest number.

mtaylor

Board Regular
Joined
May 1, 2013
Messages
78
Office Version
  1. Prefer Not To Say
Platform
  1. Windows
  2. MacOS
I'm hoping this is a straight forward ask.

I have 4 numbers appearing in the columns C27: C30 (these numbers will be the total points earnt across a competition)

Next to those numbers (in cells: B27:B30) are the respective houses. Please could the "house" next to the greatest number appear in a separate cell (specifically F27)

Thank you
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Try:
Excel Formula:
=INDEX(B27:B30,MATCH(MAX(C27:C30),C27:C30,0))

Other options are available depending on your Excel version.
 
Upvote 0
Solution
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Is it possible that more than one house earns equal most points? If so (and you have an appropriate version for my suggestion) then ..

24 11 15.xlsm
BCDEF
26HousePointsHighest
27House 115House 2, House 4
28House 223
29House 34
30House 423
mtaylor
Cell Formulas
RangeFormula
F27F27=TEXTJOIN(", ",1,IF(C27:C30=MAX(C27:C30),B27:B30,""))
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Is it possible that more than one house earns equal most points? If so (and you have an appropriate version for my suggestion) then ..

24 11 15.xlsm
BCDEF
26HousePointsHighest
27House 115House 2, House 4
28House 223
29House 34
30House 423
mtaylor
Cell Formulas
RangeFormula
F27F27=TEXTJOIN(", ",1,IF(C27:C30=MAX(C27:C30),B27:B30,""))
Same idea but with FILTER
=TEXTJOIN(", ",1,FILTER(B27:B30,C27:C30=MAX(C27:C30)))
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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