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

valmir

Board Regular
Joined
Feb 10, 2021
Messages
239
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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,215,336
Messages
6,124,331
Members
449,155
Latest member
ravioli44

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