

Formulas

For more information about formulas and functions, see:
https://support.microsoft.com/en-us/office/294d9486-b332-48ed-b489-abe7d0f9eda9
| This formula | Refers to | And returns |
|---|---|---|
| =C2 | Cell C2 | the value in cell C2 |
| =A1:F4 | Cells A1 through F4 | the values in all cells, but you must additionally set the Array Formula field |
| =Sheet3!B2 | Cell B2 on Sheet3 | the value in cell B2 on Sheet3 You can find an example of a sheet reference at Edit Evaluations, Tips & Tricks, Get data via sheet reference. |

| Formula ID | Will be replaced by |
|---|---|
| [%1] | the value of the current field |
| [TOTALVALUE] | Will be replaced by the sum of the field values of all records in the case of a numeric (Decimal, Integer, BigInteger) field.
These Formula IDs can be used, for example, to implement the old NC Cube field setting Count/Total.
Since the functionality has now been implemented as a Formula ID, new possibilities arise.
For example, if the Formula =100*[%1]/[TOTALVALUE] is specified for the Sales (LCY) field of the customer, the percentage value of the amount will be calculated.
[TOTALVALUE] is replaced by the total Sales (LCY) of all customers within the filters.
[%1] is replaced by the Sales (LCY) of the customer.
|
| [COL] | the current Excel column no. |
| [ROW] | the current Excel row no. |
| [USERID] | the current User ID |
| [COMPANY] | the current Company Name |
| [PERIOD_TEXT] | the current period (e.g. 2022/03 March) of a (parent) Date Loop |
| [PERIOD_DATE] | the current period (e.g. 03/01/22..03/31/22) of a (parent) Date Loop |
| [TOTALRECORDS] | the number of all records |
| [RECORDNO] | a sequential number for the current record |
| [RECORDID] | the RecordID of the current Record |

For each Customer Ledger Entry, the percentage of Balance (LCY) of the customer is calculated first.
For this purpose, the Balance (LCY) field was assigned the Formula ID [B] and the Amount (LCY) field was assigned the Formula ID [A].
The percentage value can thus be calculated in a Formula Field using the Formula =100/[B]*[A].
In addition, all entries are marked that are above a certain percentage value.
For this, the Percent Formula Field was assigned the Formula ID [P].
In this example, the limit value is implemented via a text line before the data table.
The default value for the limit value is 50 percent. The Formula ID [LP] was assigned to the Limit field.
The following result is displayed in Excel after executing the evaluation:

[B] was replaced by the cell reference of the Balance (LCY) field.
[A] was replaced by the respective cell reference of the Amount (LCY) field.
[P] was replaced by the respective cell reference of the Percent formula field.
[LP] was replaced by the cell reference of the Limit field.
The changes have been marked in the image.
In version 1, the Customer No. field is added to the entries.
Using the formula =COUNTIF([PNO:COL]:[PNO:COL],[NO]) all rows are counted where the column with the Formula ID [PNO] contains the value of the Formula ID [NO] and thus the No. of the customer.
The changes have been marked in the image.
In this version a Formula Field Customer RowID is added to the entries.
The field is filled via a Formula with the row no. of the Number of Entries field and thus with the row no. of the customer record. Thus, each entry has a unique criterion for the query.
Using the formula =COUNTIF([RID:COL]:[RID:COL],[ROW]) all rows are counted where the column with the Formula ID [RID] contains the value of the row no. of the customer record.


![]() | FinanzOnline VAT Reg. No. Validation VAT Reg. No. validation via the Austrian FinanzOnline (FON) service. More information ![]() |