headtoadie
Board Regular
- Joined
- Aug 1, 2003
- Messages
- 219
All, I'm trying to use dynamic ranges for a conditional sum statement, but it's not working - just returns #N/A. If I use static ranges the conditional sum statement works fine. The conditional sum statement looks like below and is entered as an array:
{=SUM(IF(Major=F5,IF(Type=G5,Amount,0),0))}
I'm creating the dynamic ranges using the Insert->Name function on the menu. The formula looks correct. After I enter the offset formula if I click the little box at the end of the window where you enter the formula it highlights the correct range.
The offset statement creates a range named "Major" and looks like:
=OFFSET(sheet1!$A$1,0,1,COUNTA(sheet1!$B:$B),1)
So, independently the two formulas appear correct, but when I try to use them in unison it breaks.
Is it possible to use dynamic ranges with conditional sum statements? If so, what am I doing wrong?
Thanks,
HT
{=SUM(IF(Major=F5,IF(Type=G5,Amount,0),0))}
I'm creating the dynamic ranges using the Insert->Name function on the menu. The formula looks correct. After I enter the offset formula if I click the little box at the end of the window where you enter the formula it highlights the correct range.
The offset statement creates a range named "Major" and looks like:
=OFFSET(sheet1!$A$1,0,1,COUNTA(sheet1!$B:$B),1)
So, independently the two formulas appear correct, but when I try to use them in unison it breaks.
Is it possible to use dynamic ranges with conditional sum statements? If so, what am I doing wrong?
Thanks,
HT