How to find maximum value in a range of more than 255 numbers? MAX does not work

Tille

New Member
Joined
Feb 27, 2023
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
I have a table of historical daily data for a few years, so well over a thousand records and I want to find the maximum value in a given column for all records.

But the MAX function apparently allows only up to 255 values in its range, and I can't find any function that will find the maximum value in a column of over 255 values.

Any solution?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
That simply isn't true (see below demo looking at 100K cells in column A).
Could you provide a copy of the sheet in question (you can disguise any sensitive data) using the XL2BB add in as there may be something else going on?

Book1
AB
11100000
22
33
44
55
66
77
88
99
1010
1111
1212
1313
1414
1515
1616
1717
1818
1919
2020
Sheet1
Cell Formulas
RangeFormula
B1B1=MAX(A1:A100000)
 
Upvote 0
To be complete:

The maximum 255 arguments is a number I found mentioned in some articles on the MAX function when I was looking for solutions to my problem.

In my own worksheet, the maximum number of values searched for which MAX will return a correct answer is only 123. No idea why.

So for example: MAX(A1:A123) will give me a correct maximum value, but extending the range one single more line to MAX(A1:A124) will generate a N/A.

One last thing, the column of values I am searching contain vlookup functions. Not sure how that factors in...
 
Upvote 0
That simply isn't true (see below demo looking at 100K cells in column A).
Could you provide a copy of the sheet in question (you can disguise any sensitive data) using the XL2BB add in as there may be something else going on?

Book1
AB
11100000
22
33
44
55
66
77
88
99
1010
1111
1212
1313
1414
1515
1616
1717
1818
1919
2020
Sheet1
Cell Formulas
RangeFormula
B1B1=MAX(A1:A100000)
You are correct. I just tried MAX on a different column containing just numbers, not function results, and it seems to work fine.

So it seems that the vlookup results are diminishing the range that can be used in MAX.

Very puzzling
 
Upvote 0
Could you share your worksheet via Dropbox, Google Drive or something similar?
 
Upvote 0
You are correct. I just tried MAX on a different column containing just numbers, not function results, and it seems to work fine.

So it seems that the vlookup results are diminishing the range that can be used in MAX.

Very puzzling
That simply isn't true (see below demo looking at 100K cells in column A).
Could you provide a copy of the sheet in question (you can disguise any sensitive data) using the XL2BB add in as there may be something else going on?

Book1
AB
11100000
22
33
44
55
66
77
88
99
1010
1111
1212
1313
1414
1515
1616
1717
1818
1919
2020
Sheet1
Cell Formulas
RangeFormula
B1B1=MAX(A1:A100000)


Sorry, I don't know how to use add-ins, am just a very basic user.
It's ok, I'll just work around the issue and copy paste my vlookup column as values.

Thanks!
 
Upvote 0
So for example: MAX(A1:A123) will give me a correct maximum value, but extending the range one single more line to MAX(A1:A124) will generate a N/A
Welcome to the MrExcel board!
That sounds to me like one or more of the formulas could be returning a #N/A result (though perhaps it may be hidden with conditional formatting?)

In any case, try this on your original data
Excel Formula:
=AGGREGATE(14,6,A1:A10000,1)
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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