MATCH MIN INDIRECT ADDRESS

xoxe1337

New Member
Joined
May 22, 2022
Messages
2
Office Version
  1. 2021
  2. 2019
  3. 2016
Platform
  1. Windows
  2. MacOS
Hello, I would really appreciate if somebody could assist with the problem.

=IFERROR(MATCH(MIN(INDIRECT("'Export Data'!"&ADDRESS(
MATCH(I2,'Export Data'!$A:$A,0),51,4)&":"&ADDRESS(
MATCH(I3,'Export Data'!$A:$A,0),51,4))),'Export Data'!AY:AY,0)-2,"")

I2 and I3 specify row range numbers
51 is column same as AY:AY
I wanted the formula to check the values of cells(numbers) between row numbers in range specified in I2 and I3 cells and return minimum row number value.
The formula is working fine unless AY:AY has repetitive value then it will ignore I2 I3 range and return the first repetitive number.
If i want to find the smallest value in range of row numbers 45-57, the formula will ignore my specified range and return me the row 35, just because row 35 has the same numeric value as row 49 which is in range 45-57.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Welcome to the Forum!

A bit of a guess ....

You say I2 and I3 are row numbers, and your formula takes off 2 at the end, so I am guessing that 'Export Data' looks like this:

AAYAZ
1
2
3199
421
5399
6499
7599
8699
971<--- Row 9
10899
11999
121099
131199
141299
15etc
Export Data

In which case, in Excel 2021 you could do this:

ABCDEFGHIJK
1In: RowsOut
259
38
Sheet1
Cell Formulas
RangeFormula
K2K2=LET(r,ROW('Export Data'!A3)-1,AY,'Export Data'!AY:AY,x,INDEX(AY,I2+r):INDEX(AY,I3+r),MATCH(MIN(x),x,)+I2+r-1)

But perhaps you need this instead?

AAYAZ
1
2
3Blah99
4Blah1
5Blah99
6Blah99
7Start99
8Blah99
9Blah1<--- Row 9
10End99
11Blah99
12Blah99
13Blah99
14Blah99
15etc
Export Data


ABCDEFGHIJK
1In: RowsOut
2Start9
3End
Sheet1
Cell Formulas
RangeFormula
K2K2=LET(A,'Export Data'!A:A,AY,'Export Data'!AY:AY,x,INDEX(AY,MATCH(I2,A,)):INDEX(AY,MATCH(I3,A,)),MATCH(MIN(x),x,)+MIN(ROW(x))-1)
 
Upvote 0
Solution
Thank you very much for your time and assistance. Sadly LET function does not work in that specific Excel version. But this one below worked perfectly:

=IFERROR(
MATCH(
MIN(
INDEX('Export Data'!AY:AY,MATCH(I2,'Export Data'!$A:$A,0))
:INDEX('Export Data'!AY:AY,MATCH(I3,'Export Data'!$A:$A,0))
),
INDEX('Export Data'!AY:AY,MATCH(I2,'Export Data'!$A:$A,0))
:INDEX('Export Data'!AY:AY,MATCH(I3,'Export Data'!$A:$A,0)),
0
)-3+MATCH(I2,'Export Data'!$A:$A,0),
""
)
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,243
Members
449,075
Latest member
staticfluids

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