FRACCT Function

This function retrieves data from G/L account records, including account optional fields. It cannot retrieve data from transaction optional fields.

Syntax

FRACCT(field name, account reference, criteria, formatted)

Note: The function returns a blank if the account reference is missing, the account does not exist, or if no accounts exist in the specified range.

Arguments

Argument Description
field name

The name of a field from the G/L account record, including account optional fields.

Tip: Account optional fields have an "A." prefix.

account reference

A string specifying a single account or a range of accounts. See About Account Number References.

  • For a range of accounts, the function returns only the data that is common to all accounts.
  • If the account does not exist, FRACCT returns a hyphen (-).
criteria An expression that imposes selection criteria on the accounts. The account reference and expression together determine the accounts that will be included in the calculation. See About Selection Criteria for Filtering Accounts.
formatted (Optional)

Indicates whether the return value should be formatted according to the presentation defined in the view. If omitted, the default is "Formatted." Use one of the following constructs:

  • "FORMATTED", "F", or "FMT"
  • "UNFORMATTED", "U", or "UNFMT"

Examples

Statement Return Value
=FRACCT("ACCTDESC","1000-333") "Cost of goods sold"
=FRACCT("QTYSW","1000-333","F') "Yes"
=FRACCT("ACCTTYPE",
"1000-333","FMT")
"Income"
=FRACCT("A.ACCTCLASS","4000") "Sales"
=FRACCT("ACCTDESC","1000-333:1000-400")

Prints a description that includes only those words that are common to each account in the account range.

For example, if the accounts in the range have the following descriptions, the word "Receivable" would be the return value.

  • Accounts Receivable: customers
  • Accounts Receivable: employees
  • Receivable: over 90 days