EXPANDCOMPANYRANGE
Overview
The EXPANDCOMPANYRANGE function returns all company codes within the specified range
Velixo recommends the use of Microsoft 365 for this feature. Experimentally, Excel 2010 or higher may be used. See the Prerequisites for additional information.
Syntax
=EXPANDCOMPANYRANGE(Connection, Range)
Arguments
The EXPANDCOMPANYRANGE 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 company codes to include in the results |
Examples
Example 1
=EXPANDCOMPANYRANGE("Demo")
Description
Returns an Excel dynamic array containing all company codes in the tenant defined in the specified connection.
Result

Example 2
=EXPANDCOMPANYRANGE("Demo";"*;-PRODUCTS")
Description
Returns all company codes except PRODUCTS.
Result
