Hi ODCSPL,
If you wish to create a cell that sums a range of account for a specific department, we've found that a certain syntax is required for the formula. For the range you specified, the syntax would be:
=ACCPAC("gldata.M","610000:619999-OL1: OL1")
The difference is that an extra ': OL1' had to be added to the end of the account key string. Otherwise, the formula returned the sum of all accounts in the range of 610000 to 619999-OL1 inclusive, for all departments and not limited to OL1.
Because you are using cell references to pick up the account and department, there are two ways you can address this:
1) If all your =ACCPAC formulas are based on account ranges (and not a single account), then the easiest change to make is simply modify the cell that contains the departments. Instead of OL1, use OL1: OL1.
2) If you have =ACCPAC formulas based on a single account, the above change will cause problems to these formulas. In this case, you won't be able to make a 'global' change like this. Instead, you have to edit the formula to add the department cell reference again. Thus the formula you posted would be:
=ACCPAC("gldata.M",$A69&"-"&$D$8&":"&$D$8)
If I've posted this correctly, the portion in bold must be added, which is just a repeat of the department cell reference.
Regards,