I need an array formula containing 3 dynamic named ranges. The formula with a specifically defined range is {=1000*sum(if((mastercode=TEXT(A46,”#######”))*(Period=AI6,Quantity))} returns a correct value. Mastercode, Period, and Quantity are currently specific named ranges, but need to be dynamic named ranges.
I defined a dynamic named range … say DMastercode as follows =offset(‘Worksheet’!$A$2,0,0,Counta(‘Worksheet’!$A:$A),1) If I substitute the dynamic named range DMastercode in the formula, it returns #N/A. I also created a dynamic named range for DQty but since the first failed I didn’t try to substitute it in the formula.
I tried =sumif(DMASTERCODE,TEXT(A46,”#######”),DQTY). This formula returns a correct value so I know the dynamic ranges are defined properly.
I need to be able to filter on the 2nd criteria “Period” so I need the Array formula .. but as soon as I used the array formula I get the error.
Any ideas, suggestions, etc..etc..etc…??? I will be eternally grateful if someone can help get around this.
Thanks in advance for your time and trouble.