View Single Post
  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

No, which is one of the reasons never to use DSUM, DCOUNT, etc. in Excel
since they're now VERY ANCIENT and nearly useless. Summing with multiple
conditions is easier (though perhaps not quite as fast) using SUMPRODUCT.

=SUMPRODUCT((INDEX(Data,0,Yr)=2001)*(INDEX(Data,0, Nm)="Revenue")
*(INDEX(Data,0,Rg)="East"),INDEX(Data,0,Value))

where Yr, Nm and Rg are the column indices of the Year, Name and Region
columns the Data range. Or you could use MATCH, so instead of

(INDEX(Data,0,Yr)=2001)

you'd use

(INDEX(Data,0,MATCH("Year",INDEX(Data,1,0),0))=200 1)

Alternatively, you could use SQL.REQUEST, but it has memory leak issues if
you need to use many such formulas.




The only good thing about D functions is that if you learn them you learn
how to handle the advanced filter which has similar criteria ranges

--
Regards,

Peo Sjoblom

(No private emails please)