EXPANDACCOUNTRANGE
Overview
The EXPANDACCOUNTRANGE function returns all general ledger account numbers within the specified range
Velixo recommends the use of Microsoft 365 or Excel 2021 for this feature. Experimentally, Excel 2010 or higher may be used. See the Prerequisites for additional information.
Syntax
=EXPANDACCOUNTRANGE(Connection, Range, IncludeInactive)
Arguments
The EXPANDACCOUNTRANGE function uses the following arguments (see our article on Filtering Velixo functions):
Argument | Required/Optional | Description |
| Required | The name of the connection as configured in the Connection Manager |
| Optional | The range of accounts to include in the results |
| Optional |
|
Examples
Example 1
=EXPANDACCOUNTRANGE("Demo", "10000:11000", TRUE)
Description
Returns all general ledger account numbers (including inactive accounts) between account 10000 and account 11000 (inclusive).
Result

Example 2
=EXPANDACCOUNTRANGE("Demo", "*;-33000", FALSE)
Description
Returns all active general ledger account numbers EXCEPT account 33000.