ACCOUNTTOTALCREDITS
Overview
The ACCOUNTTOTALCREDITS function calculates the total credits of one or more general ledger accounts over a given period.
Syntax
=ACCOUNTTOTALCREDITS(ConnectionName, Ledger, AccountClass, Account, Subaccount, Branch, FromPeriodOrDate, ToPeriodOrDate, IncludeUnposted, UseMasterFinancialCalendar)
Arguments
The ACCOUNTTOTALCREDITS function uses the following arguments (see our articles on Filtering Velixo Functions and using arrays or cell ranges as arguments):
Argument | Required/Optional | Description |
| Required | The name of the connection, as specified in the Connection Manager |
| Required | Ledger to use in the calculation. |
| Optional, though required if | The account class to use for the calculation. |
| Optional, though required if | The general ledger account(s) to use for the calculation. |
| Optional | The general ledger subaccounts(s) to include. |
| Optional | The branch(es) to include. |
| Required | The beginning financial period, in MM-YYYY format or a reference to a cell containing the beginning date in a valid Excel date format |
| Required | The ending financial period, in MM-YYYY format. or a reference to a cell containing the ending date in a valid Excel date format |
| Optional | 1 - Include posted transactions only (default) 2 - Include Unposted transactions only 3 - Include Posted and Unposted transactions
|
| Optional | Use Acumatica's Master Financial Calendar instead of the financial calendar defined within the specific tenant associated with the connection being accessed (this can be useful for consolidation reports).
|
Examples
Based on this data:

Example 1
=ACCOUNTTOTALCREDITS("Demo", "ACTUAL", , "10200", , "01-2019", "01-2019")
Description: Calculates the total posted credits of General Ledger account #10200 (as noted in cell B6) during the first financial period of the year 2019 (as noted in cell G1).
Result: (3,431,030)

Example 2
=ACCOUNTTOTALCREDITS("Demo", "ACTUAL", , "11000", , $C$4, $D$4,3)
Description: Calculates the combined total of the posted and unposted credits of General Ledger account #11000 (as noted in cell B10) between January 1, 2019 (as noted in cell C4) and January 15, 2019 (as noted in cell D4).
Result: (1,248,715)

Limitations to filtering by date instead of financial period
This feature cannot be used with the Net Income account
Drilldown will show transactions for the entire financial period (you will then need to manually filter on the date column)
Balances are calculated based on the total from the nearest financial period, and then adjusted based on the filtered transaction date
Balances will not reflect transactions within the specified date range but which have been posted to a different financial period.