Consolidated XL provides the following powerful spill function to get a list of GL accounts, by GL Major Headings (Click for Xero, QuickBooks or Sage list) or Cost Center/Department, derived from one or consolidated from many connected companies. Consolidated XL Wizards utilise those to quickly produce a Profit and Loss, Balances sheet, Dashboard or Sales Report, etc.
See Wizards and Examples for more information. See the "CXL Lookups" sheet they create.
CXL.CodesSpill() will return a list of GL Account codes contained in all companies, defined in the CompCodeRange parameter, for reporting. This function is used in the Trial Balance, P&L/Income statement, and Balancesheet Wizards to create a Consolidated list of GL Accounts for all Companies selected.
If the CompCodeRange is a range, then Consolidated XL will return a list of account codes contained in all companies for reporting. This function is used in the Trial Balance, P&L/Income statement, and Balancesheet Wizards to create a Consolidated list of GL Accounts for all Companies selected.
You will get Excel error "#SPILL!" if the function has not got enough space to write to adjacent cells.
The wizards use CXL.CodesSpill(CompCodeRange, "GLCodesByHead","Y2") to write the GL Accounts to the Balance Sheet or Income statement It will return a list of GL Accounts from multiple companies consolidated into one list, removing any not used for 2 years "Y2" in options. Above we can see the same function used to get Cost Centres and Departments in Sage Accounting, AKA Tracking Codes in Xero, Classes/Locations in QuickBooks.
For a tutorial on this function, click here