Breadcrumbs

ACCOUNTNAME

Overview

The ACCOUNTNAME function returns the name of one or more specified GL accounts.

Syntax

=ACCOUNTNAME(
    ConnectionName, 
    Account
)

Arguments

The ACCOUNTNAME function uses the following arguments (see our articles on using arrays or cell ranges as arguments):

Argument

Required / Optional

Description

ConnectionName

Optional

Provide one of the following values:

OR

Omit the argument to return results for all compatible connections with default aggregation settings.

Account

Required

The general ledger account (or Excel array containing multiple accounts) to use for the calculation.

Examples

Example 1

Referencing a single account

=ACCOUNTNAME(
    "Demo", 
    "10100"
)


Description: Returns the name of general ledger account #10100.

Result: Petty Cash

Example 2

Referencing a list of accounts

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/aO4zG6eKIcz8zEP_J3SX3RgsKF7hOQ9qfg.png


Description: Returns the names of general ledger accounts included in a list in cell C2

Example 3

Referencing an array of accounts

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/Ys_dxJxXGb6ORpDhhh8Ln9gWOxjmf0Rk5w.png


Description: Returns the names of general ledger accounts displayed by an array starting in column C2


If a non-existent account code is specified, the ACCOUNTNAME function will display the message Account 'xxxxx' not found...

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/vMo--5HaIq32QN34is-pw9D4wDEZXfcepw.png

or, if you have configured Velixo reports to return zero values under certain circumstances...


https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/FbALjl-MYJKBZSQ0UZ3eMtRjeBfyUcNYEQ.png

... your report will display Excel's #N/A error:


https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/fIHZNieHDZtVSstunivLa07mD3fz8o3zig.png