Skip to main content
Question

SUBTRACT MULTIPLE FIELDS

  • March 20, 2018
  • 0 replies
  • 32 views

Hello I am trying to subtract multiple fields.  Here is what I am trying to do:

((payment amount) - (client fee) - (override) )/2

The main problem I am having is the override field has blanks so it does't recognize the formula.  Perhaps the field types need to be changed?

Payment amount - Currency Field
Client Fee - Currency Field
Override - Formula - Numeric

Thanks for your help.
This topic has been closed for replies.

  • Quickbase Alumni
  • March 20, 2018
Try this:
Sum([Payment amount],-[Client Fee],-[Override])/2

You have two choices.
Set the properties of the [override] field to treat blank as zero.

or else

([payment amount] - [client fee] - Nz([override]) )/2

The Nz function will change a null numeric to a zero.

  • Author
  • Quickbase Alumni
  • March 20, 2018
Awesome... that worked!  Thank you!