Skip to main content
Back to Functions

XO.LACCOUNT

Lookup a property of a GL account by account code. Returns name, type, class, status, description, or tax type.

Syntax

=XO.LACCOUNT(org_id, account_code, property)

Parameters

ParameterRequiredDescription
org_idYesOrganization ID from XO.ORG()
account_codeYesGL account code (e.g., "4000")
propertyYesProperty to return (0-5, see table below)

Property Options

CodePropertyDescription
0nameAccount name (e.g., "Sales - General")
1typeAccount type (BANK, CURRENT, FIXED, etc.)
2classAccount class (ASSET, LIABILITY, REVENUE, EXPENSE, EQUITY)
3statusAccount status (ACTIVE, ARCHIVED)
4descriptionAccount description
5taxTypeTax type code

Examples

Get account name:

=XO.LACCOUNT(A2, "4000", 0)

Get account class:

=XO.LACCOUNT($A$2, "200", 2)

Get account type:

=XO.LACCOUNT(A2, "800", 1)

Related Functions