Skip to main content
In the included formula, I'm receiving "Error: Incorrect number of parameters for function 'IF()'. Expected 3, received 2"

 

The goal is this:

 

1. If US Local = "YES" AND Hourly Rate >=11.01, then Multiply Taxable Dues Amount * 0.22 and Add Initiation Fee Tax Amount, else 5.00

 

OR

 

2. If US Local = "NO" AND Hourly Rate >=11.01, then Multiply Taxable Dues Amount * 0.165 and add Initiation Fee Tax Amount, else 5.00

 

Here's my formula - any suggestions on how to write this to get past the error?

 

 

IF(

Order.CVRSOS__Job__r.CVRSOS__HourlyRate__c >=11.01,

IF(Order.Contract.US_Local__c ="YES",

Taxable_Dues_Amount__c *0.22 + Initiation_Fee_Tax_Amount__c,5.00,

IF(Order.CVRSOS__Job__r.CVRSOS__HourlyRate__c >=11.01,

IF(Order.Contract.US_Local__c ="NO",

Taxable_Dues_Amount__c *0.165 + Initiation_Fee_Tax_Amount__c,5.00

)

),

0.00)

)

 

 
6 respuestas
  1. 30 ene 2019, 22:30

    You could also do it like this

    IF(

    Order.CVRSOS__Job__r.CVRSOS__HourlyRate__c < 11.01,

    5.00,

    CASE(Order.Contract.US_Local__c,

    "YES",

    ((Taxable_Dues_Amount__c * 0.22) + Initiation_Fee_Tax_Amount__c),

    "NO",

    ((Taxable_Dues_Amount__c * 0.165) + Initiation_Fee_Tax_Amount__c),

    0.00)

    )

     

     
0/9000