Reputation: 13
I have a column A with many numbers (that are from 2000000 to 4999999). In cell K3 I want to have the maximum number of this column in the range of 280030 and 289999
Upvotes: 0
Views: 92
Reputation: 37125
Use this formula: Press Ctrl+Shift+Enter as it is an array formula.
=MAX(IF(A:A>=280030,IF(A:A<=289999,A:A)))
Screenshot:
Upvotes: 0
Reputation: 13
D1011 is my min value and E1012 is my max value
=MAX(WENN((B4:B999>D1011)*(B4:B999<E1012);B4:B999))
That works!
Upvotes: 0
Reputation: 237
Assuming the set of numbers is between 2,000,000 to 4,999,999 & the conditional Max needs to return the highest number between 2,800,300 and 2,899,999 ( Instead of 280,030 and 289,999 )
If you are using excel you can use a helper column to convert all numbers of the larger set to zero that do not conform to the criteria of being between 2,800,300 and 2,899,999. I accomplished this with a formula and copied it down =IF(AND(A1>2800300,A1<2899999),A1,)
such that the helper column has an output for every number in Column A.
If my helper column is in Column B, you can use the max formula =MAX(B:B)
to return the conditional max.
=MAX(FILTER(A:A,A:A>2800300,A:A<2899999))
Upvotes: 1