Breadcrumbs

BRANCHNAME

Overview

The BRANCHNAME function returns the name of a specified branch ID.

Syntax

=BRANCHNAME(
    ConnectionName, 
    Branch
)

Arguments

The BRANCHNAME function uses the following arguments (see our article 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.

Branch

Required

The code of the branch.

Example

=BRANCHNAME(
    "Demo", 
    "PRODWHOLE"
)


Description: Returns the name of PRODWHOLE branch.

Result: Products Wholesale

Empty List

If a non-existent branch code is specified, the BRANCHNAME function will display the message Branch 'xxxxx' not found...

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/0zqL78AFOudRmoYL-2mQTFZFjhMlpevUjw.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/7FPwDYFB739iYkTUihiRbieBtON31rifXQ.png


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

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