Find max value, including more than one match, if any

valmir

Board Regular
Joined
Feb 10, 2021
Messages
235
Office Version
  1. 365
Platform
  1. Windows
Hello everyone
I'm using the formula =MAX(range) to find the maximum value from a range. However, as you know, this formula only returns the first maximum value and in case there is more than one maximum value, it will return the first value it finds.
In addition to that, I want that single or multiple maximum values to reference to adjacent cell(s) on the left.
Thanks
 

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.
Hi valmir!

Try using OFFSET.
eg. =OFFSET(MAX(range), 0, 1)
 
Upvote 0
Using your formula I get: "this formula contains an error"
This is what I'm using only that it returns only the first maximum value it finds, instead of all existing maximum values.
=INDEX(range;MATCH(MAX(range);range;0))
If possible I would like to have the referenced cell values (if more than one) separated by a comma.
 
Upvote 0
MrExcelPlayground.xlsx
BCDE
2Jamie6silly, that, good
3is7
4a8
5silly9
6goose8
7that9
8eats6
9good9
10food4
Sheet15
Cell Formulas
RangeFormula
E2E2=TEXTJOIN(", ",TRUE, IF(C2:C10=MAX(C2:C10),B2:B10,""))
 
Upvote 0
Solution
MrExcelPlayground.xlsx
BCDE
2Jamie6silly, that, good
3is7
4a8
5silly9
6goose8
7that9
8eats6
9good9
10food4
Sheet15
Cell Formulas
RangeFormula
E2E2=TEXTJOIN(", ",TRUE, IF(C2:C10=MAX(C2:C10),B2:B10,""))
Hi James
Based on your example this is exactly what I am looking for, however I don't know why I am getting "#NAME?" as a result.
Could it be because I am using Office 2010?
 
Upvote 0
Hi James
Based on your example this is exactly what I am looking for, however I don't know why I am getting "#NAME?" as a result.
Could it be because I am using Office 2010?
I have a version problem. You're right - it won't work in 2010.
 
Upvote 0
If you want all the values returned in one cell, you would be better of with VBA, is that an option for you?
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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