Formula for numeric field " if null"

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
Hello Everyone,

I'm trying to write a formula where if my price field is left empty the default list price is inserted.



This SELL PRICE (currency field) is in the LINE ITEM table where the lookup on the PRODUCTS table where DEFAULT PRICE(currency field)  is located.

In Salesforce it was something like " if null = default price"..........................

 
Photo of alessandro

alessandro

  • 30 Points

Posted 2 years ago

  • 0
  • 1
Photo of dwhawe

dwhawe, Champion

  • 886 Points 500 badge 2x thumb
It depends on the field properties of [Default Price].

If Treat blank values as 0 in calculation is checked:

If([Default Price]=0,then statement,else statement)

If Treat blank values as 0 in calculation is not checked:

If(IsNull([Default Price]),then statement,else statement)
Photo of alessandro

alessandro

  • 30 Points
Thanks I will try the second option
Photo of alessandro

alessandro

  • 30 Points
Hey dwhave
I'm getting this message:
Please check the syntax of your entire formula. Possible culprits are a mismatched set of parentheses, missing quotes, or an extra bracket.

This is my formula .
The DNprice field is a look up in  the PRODUCT TABLE

If(IsNull([Product - DN Price])
Photo of dwhawe

dwhawe, Champion

  • 886 Points 500 badge 2x thumb
Another closing parenthesis:   If(IsNull([Product - DN Price]))