Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Range in Array Formula 1

Status
Not open for further replies.

osx99

Technical User
Apr 9, 2003
250
GB
I have the following array formula in cell A1

{=SUM(IF(('701'!$BN$5:$BN$5001>0),'701'!$BN$5:$BN$5001))}

In cell B1 I have a formula

=CONCATENATE("'701'!",ADDRESS(5,MATCH(B3,'701'!$A$3:$DY$3,0)),":",ADDRESS(5001,MATCH(B3,'701'!$A$3:$DY$3,0)+3))

which outputs text $BN$5:$BN$5001

How can I update cell A1 so it uses the output range in B1?

{=SUM(IF((B1>0),B1))} does not work?

Many thanks,
Os
 
INDIRECT accepts a string reference and outputs a range pointer

{=SUM(IF((indirect(B1)>0),indirect(B1)))}



Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top