You need to sign in to do that
Don't have an account?
Kim Amaral
Stop Aging Once Criteria is Met
I am trying to create an aging field to see how many days it takes for items to be inventoried.
I have an "Aging" field (with formula: "TODAY() - Delivery_Date__c"), a "Delivery Date" (date format), and a picklist "Inventory Status".
The Aging field is counting how many days from the "Delivery Date" to today, but I need it to stop once the "Inventory Status" is switched to "Needs Pricing".
I was trying to change my "Aging" formula to
IF(ISPICKVAL(Inventory_Status__c,'Awaiting Inventory'), TODAY() - Delivery_Date__c)
but i get the following error "Error: Incorrect number of parameters for function 'IF()'. Expected 3, received 2"
I have an "Aging" field (with formula: "TODAY() - Delivery_Date__c"), a "Delivery Date" (date format), and a picklist "Inventory Status".
The Aging field is counting how many days from the "Delivery Date" to today, but I need it to stop once the "Inventory Status" is switched to "Needs Pricing".
I was trying to change my "Aging" formula to
IF(ISPICKVAL(Inventory_Status__c,'Awaiting Inventory'), TODAY() - Delivery_Date__c)
but i get the following error "Error: Incorrect number of parameters for function 'IF()'. Expected 3, received 2"
"Error: Formula cannot use another formula field that directly or indirectly refers to itself. Cohort__c.Aging__c -> Cohort__c.Aging__c"
Hi Kim
The format of If is IF(condition, what to do if true, what to do if false)
Maybe you should try wf rules instead of formula.
Change from Criteria is met to formula evaluates to true and enter your condition
I need it to stop? does that mean you want it to be 0?
I was trying to change my "Aging" formula to
IF(ISPICKVAL(Inventory_Status__c,'Awaiting Inventory'), TODAY() - Delivery_Date__c)
Why are you comparing to "Awaiting Inventory" when you mentioned "Needs Pricing" above?
Based on what what I can surmised, your formula could be like this:
Which means age is only valid for status "Awaiting Inventory", otherwise age is not valid and set to 0.
Thx.