Skip to main content
Skip table of contents

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

CODE
=EXPANDACCOUNTRANGE(Connection, Range, IncludeInactive)

Arguments

The EXPANDACCOUNTRANGE function uses the following arguments (see our article on Filtering Velixo functions):

Argument

Required/Optional

Description

Connection

Required

The name of the connection as configured in the Connection Manager

Range

Optional

The range of accounts to include in the results

IncludeInactive

Optional

TRUE / FALSE indicating whether or not to include inactive accounts (default is TRUE)

Examples

Example 1

CODE
=EXPANDACCOUNTRANGE("Demo", "10000:11000", TRUE)


Description
Returns all general ledger account numbers (including inactive accounts) between account 10000 and account 11000 (inclusive).

Result

expandacctrange.png


Example 2

CODE
=EXPANDACCOUNTRANGE("Demo", "*;-33000", FALSE)


Description
Returns all active general ledger account numbers EXCEPT account 33000.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.