Referencing a Cell in Min/Max Formulas

kivikatz

New Member
Joined
Sep 12, 2020
Messages
25
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi all. I am trying to reference a cell to use in a range of cells in MIN/MAX formulas. Not sure if it can be done, or if there is an alternative solution. Below is a sample worksheet to give you a better idea of what I am trying to accomplish. Basically, I am trying to find the MIN within a range by using the MAX within the range as the starting cell.

I tried adding the MAX formula within the MIN formula but it doesn't work as intended, for example, =MIN(CELL("address",MAX($A$1:A29)):A29). In the example, the MAX starting point used in cell C29 formula, would be A11 (0.15), which should return A22 (0.00), and not A1 (-0.01), the pre-MAX MIN.

I am probably overlooking the obvious solution, and would appreciate your help. Thanks.

Book1
ABCDEFGHIJ
1-0.01$A$1
20.02$A$2
30.05$A$3
40.09$A$4
50.10$A$5
60.11$A$6
70.12$A$7
80.13$A$8
90.14$A$9
100.14$A$10
110.15$A$11
120.14$A$11
130.14$A$11
140.13$A$11
150.12$A$11
160.12$A$11
170.10$A$11
180.08$A$11
190.07$A$11
200.05$A$11
210.02$A$11
220.00$A$11
230.01$A$11
240.03$A$11Pre-Max Min
250.05$A$11Max
260.07$A$11Min
270.08$A$11
280.10$A$11Bad Formula:Bad Formula:
290.12$A$11MIN(CELL("contents",B29):A29)MIN(CELL("address",MAX($A$1:A29)):A29)
30
Sheet1
Cell Formulas
RangeFormula
B1:B29B1=CELL("address",XLOOKUP(MAX($A$1:A1),$A$1:A1,$A$1:A1,"",0))
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
How about
Excel Formula:
=MIN(INDEX(A1:A29,MATCH(MAX(A1:A29),A1:A29,0)):A29)
 
Upvote 0
Thanks! That works great. Guess I need to learn how to use Index/Match functions.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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