Skip to main content
Question

Using IF to test multiple conditions

  • February 16, 2019
  • 0 replies
  • 1196 views

I am building a scorecard where if the value of a field changes to "N/A", I need the total to be divided by a different value (ie: total value - value of field that is set to "N/A"). However, I need the formula to first check if ANY of these 7 fields has a value of N/A, then subtract the values of any fields where the condition is true, and divide the sum of the remaining values by this new "total". If none of the fields has a value of "N/A"). 

I have set up the fields and form this way:

  • Multiple choice text field to check for Condition, and associated fields for Value of Condition (If or Case formula, depending on # of conditions - Y/N, or Y/N/N/A)
  • A "Subtotal" for groups of Values
  • A Total of all Subtotals
  • Missing: A % Total as described above
This topic has been closed for replies.

  • Quickbase Alumni
  • February 16, 2019
In a formula field you can put multiple conditions into your IF statement, eg:

IF(
[Field1] = "N/A", [Field2]/5,
[Field1] = "Yes", [Field2]/3,
[Field1] = "No", [Field2]/10,
0
)

Basically this says if the value of Field1 is "N/A" then divide Field2 by 5, otherwise if the value of Field1 is "Yes", then divide Field2 by 3, otherwise if the value of Field1 is "No" then divide Field2 by 10.  If all the above are false then make the value 0.

All of these different criteria can be changed to suit your requirements.

It's not really clear what you're asking.