ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   improve formula offset and indirect (https://www.excelbanter.com/excel-worksheet-functions/31212-improve-formula-offset-indirect.html)

John Contact

improve formula offset and indirect
 
Hi,

Can someone have a look at the below formula and some ideas on how to
improve the arrays, I understand I should be using the offset and indirect to
find the exact range to improve performance, however not to sure where to
brgin with this.

=SUM(IF((DUDListData!$T$2:$T$65536=DUDListData!$Y$ 1)*(DUDListData!$U$2:$U$65536=Summary!$G$2)=1,1,0) )/SUM(IF(DUDListData!$U$2:$U$65536=Summary!$G$2,1,0) )

Many thanks John

Biff

Hi!

IF you used dynamic named ranges:

Normally entered:

=SUMPRODUCT(--(Rng1=DUDListData!$Y$1),--(Rng2=Summary!$G$2))/COUNTIF(Rng2,Summary!$G$2)

Biff

"John Contact" wrote in message
...
Hi,

Can someone have a look at the below formula and some ideas on how to
improve the arrays, I understand I should be using the offset and indirect
to
find the exact range to improve performance, however not to sure where to
brgin with this.

=SUM(IF((DUDListData!$T$2:$T$65536=DUDListData!$Y$ 1)*(DUDListData!$U$2:$U$65536=Summary!$G$2)=1,1,0) )/SUM(IF(DUDListData!$U$2:$U$65536=Summary!$G$2,1,0) )

Many thanks John





All times are GMT +1. The time now is 04:30 PM.

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