You need to sign in to do that
Don't have an account?

IF(TEXT( Formula Assistance
Hello - I am attempting to create a formula that will allow us to build metrics on case turn around time. The formula will output a number based off of the "status" picklist selection.
There are two picklist options that can trigger the formula and I am having trouble figuring out how to have one formula that references a picklist field be able to take action on more than one picklist option.
Below is what I have;
IF(TEXT(ThinkLP__Status__c) = "Verified True Variance", NOW() - CreatedDate, NULL)
OR(
IF(TEXT(ThinkLP__Status__c) = "Verified False Variance", NOW() - CreatedDate, NULL)
I have tried a number of different variations to the formual to no avail...any help is appreciated.
Thank You,
Christopher
There are two picklist options that can trigger the formula and I am having trouble figuring out how to have one formula that references a picklist field be able to take action on more than one picklist option.
Below is what I have;
IF(TEXT(ThinkLP__Status__c) = "Verified True Variance", NOW() - CreatedDate, NULL)
OR(
IF(TEXT(ThinkLP__Status__c) = "Verified False Variance", NOW() - CreatedDate, NULL)
I have tried a number of different variations to the formual to no avail...any help is appreciated.
Thank You,
Christopher
If you are going to use the IF function and you need to get different values then you need to do it in a nested manner-
IF(
ISPICKVAL(ThinkLP__Status__c,"Verified True Variance"),Now() - CreatedDate,
IF(ISPICKVAL(ThinkLP__Status__c,"Verified False Variance")),Now()-LastModifiedDate,Null
)
If for both the conditions you need Now() - CreatedDate then simply go for the OR clause in the if expression
IF(ISPICKVAL(ThinkLP__Status__c,"Verified True Variance") || ISPICKVAL(ThinkLP__Status__c,"Verified False Variance"),Now()-CreatedDate(),Null)
Thanks,
Kaustav
All Answers
If you are going to use the IF function and you need to get different values then you need to do it in a nested manner-
IF(
ISPICKVAL(ThinkLP__Status__c,"Verified True Variance"),Now() - CreatedDate,
IF(ISPICKVAL(ThinkLP__Status__c,"Verified False Variance")),Now()-LastModifiedDate,Null
)
If for both the conditions you need Now() - CreatedDate then simply go for the OR clause in the if expression
IF(ISPICKVAL(ThinkLP__Status__c,"Verified True Variance") || ISPICKVAL(ThinkLP__Status__c,"Verified False Variance"),Now()-CreatedDate(),Null)
Thanks,
Kaustav
You help is much appreciated!