REWRITE
i am currently using sumifs to selectively grab data from one tab (29000 rows) for display in several other tabs. On any given destination tab, there is between 2000 and 15000 individual formulas, with four sets of criteria within each of these sumifs formula. the destination tabs are all arranged in the same format and display revenue earnt for our branches from particular customers on specific routes on a weekly basis. business is transport, BTW.
Code:
=SUMIFS(TransAmount,'FY11 Rev Data'!$A$2:$A$33000,$F$2,INDIRECT($E$3),$B25,INDIRECT($E$2),$C25,'FY11 Rev Data'!$M$2:$M$33000,O$4)
where TransAmount is a named range holding the revenue amounts
- FY11 Rev Data is the tab with the data in A2:Ab33000
- 'FY11 Rev Data'!$A$2:$A$33000 - holds the Branch codes
- $F$2 is the Branch cost centre (on Destination Tab)
- INDIRECT($E$3) - E3 contains the range name for the particular destination list for each branch (on FY11 Rev Data tab)
- $B25 (or $Bxx) - contains the particular destinations (on Destination Tab)
- INDIRECT($E$2) - E2 contains the range name for the particular customer list for each branch (on FY11 Rev Data tab)
- $C25 (or $Cxx) - contains the particular customers (on Destination Tab)
-'FY11 Rev Data'!$M$2:$M$33000 - contains the particular week numbers for each load transported (on FY11 Rev Data tab)
- O$4 (or $Oxx) - contains the particular week number (on Destination Tab)
Is there a better (more efficient or faster) way to set this up? Each time I recalculate the entire file takes a few minutes. if anyone has a good idea or needs further info to qualify their response, please just respond.
__________________