SUMIF Function

From Planfix
Jump to: navigation, search

The SUMIF() function sums only the values of those rows from the field that meet the condition.

Format

  • SUMIF(expression;condition)

Arguments:

  • expression — mandatory, variable, or formula containing the final sum of several lines that meet the condition.
  • condition — mandatory, from the IF function, only the condition is specified, without specifying the word IF and the positive and negative result.

Example

We display in the dynamic block the sum of the non-target expenses specified in the data tag:

U5AKEN.jpg

FORMULA:

SUMIF({{Data tag.IRS Check.Price}}*{{Data tag.IRS Check.Amount}};{{Data tag.IRS Check.Expense type}}="Non-targeted")

nxWe3v.jpg

DESCRIPTION:

{{Data tag.IRS Check.Price}}*{{Data tag.IRS Check.Amount}} — calculated expression
{{Data tag.IRS Check.Expense type}}="Non-targeted" — condition

RESULT:

32RNeo.jpg

Go To