I am trying to create a formula with several specific requirements to calculate call contact rates.
The first IF section of my formula works on its own, however adding the additional IF statements gives me this error: Warning Error when encoding row-level formula: Syntax error. Extra IF
Here is the formula I am trying to accomplish. Not sure if I need to add an ELSE statement somewhere. Any help is appreciated
IF(
AND(NVMStatsSF__NVM_Call_Summary__c.Voicemail_Customer_Voicemail__c=0,NVMStatsSF__NVM_Call_Summary__c.NVMStatsSF__Agent_Talk_Time__c>0, NVMStatsSF__NVM_Call_Summary__c.NVMStatsSF__Agent_Talk_Time__c<21, NVMStatsSF__NVM_Call_Summary__c.NVMStatsSF__EndReason__c='Agent', NVMStatsSF__NVM_Call_Summary__c.NVMStatsSF__Agent_Percent__c>0,NVMStatsSF__NVM_Call_Summary__c.NVMStatsSF__Customer_Percent__c>0),
"YES","NO")
IF(
AND(NVMStatsSF__NVM_Call_Summary__c.Voicemail_Customer_Voicemail__c=0,NVMStatsSF__NVM_Call_Summary__c.NVMStatsSF__Agent_Talk_Time__c>20, NVMStatsSF__NVM_Call_Summary__c.NVMStatsSF__Agent_Percent__c>0,NVMStatsSF__NVM_Call_Summary__c.NVMStatsSF__Customer_Percent__c>0),
"YES","NO")
IF(
AND(NVMStatsSF__NVM_Call_Summary__c.Voicemail_Customer_Voicemail__c>0,NVMStatsSF__NVM_Call_Summary__c.NVMStatsSF__Agent_Talk_Time__c>180),
"YES","NO")
IF(
AND(NVMStatsSF__NVM_Call_Summary__c.Voicemail_Customer_Voicemail__c=1,NVMStatsSF__NVM_Call_Summary__c.NVMStatsSF__Agent_Talk_Time__c>119,NVMStatsSF__NVM_Call_Summary__c.NVMStatsSF__Agent_Talk_Time__c<180),
"YES","NO")