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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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