ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Address func in array reference (https://www.excelbanter.com/excel-worksheet-functions/11935-address-func-array-reference.html)

Joe Blow

Address func in array reference
 

Hi,

I am trying to use ADDRESS(B1-1,1,4,1) in a MIN function, the result
is and should be A307. The sub step I am looking for would be
MIN(ARC!A4:A307)

Such as MIN(ARC!A4:ADDRESS(B1-1,1,4,1))

but I get an error message. Any pointers on how I can make this work?

Thanks,
Joe

Bernie Deitrick

Hey Joe,

=MIN(INDIRECT("ARC!A4:"&ADDRESS(B1-1,1,4,1)))

Or, more simply

=MIN(INDIRECT("ARC!A4:A"& B1-1))

HTH,
Bernie
MS Excel MVP

"Joe Blow" wrote in message
...

Hi,

I am trying to use ADDRESS(B1-1,1,4,1) in a MIN function, the result
is and should be A307. The sub step I am looking for would be
MIN(ARC!A4:A307)

Such as MIN(ARC!A4:ADDRESS(B1-1,1,4,1))

but I get an error message. Any pointers on how I can make this work?

Thanks,
Joe




Joe Blow

On Mon, 7 Feb 2005 13:11:11 -0500, "Bernie Deitrick" <deitbe @
consumer dot org wrote:

Hey Joe,

=MIN(INDIRECT("ARC!A4:"&ADDRESS(B1-1,1,4,1)))

Or, more simply

=MIN(INDIRECT("ARC!A4:A"& B1-1))

HTH,
Bernie
MS Excel MVP

"Joe Blow" wrote in message
.. .

Hi,

I am trying to use ADDRESS(B1-1,1,4,1) in a MIN function, the result
is and should be A307. The sub step I am looking for would be
MIN(ARC!A4:A307)

Such as MIN(ARC!A4:ADDRESS(B1-1,1,4,1))

but I get an error message. Any pointers on how I can make this work?

Thanks,
Joe



Thanks So Much Bernie!

Your most eloquent solution worked like a charm!
Joe

Harlan Grove

Bernie Deitrick wrote...
....
Or, more simply

=MIN(INDIRECT("ARC!A4:A"& B1-1))

....

Simpler still,

=MIN(OFFSET(ARC!A4,0,0,B1-3))



All times are GMT +1. The time now is 01:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com