Dear Tim,
Given the department codes you have set up a departmental mask will not help you.
Instead, take a look at the Adagio =function called RngMerge.
It will allow you to consolidate a range of non contiguous accounts (and departments).
You can find a description of the function in the Adagio Help under Adagio =Functions