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

Date Formula
Hi Guys I need your help with this Date Formula Field. It is very urgent
Here is my Formula
IF(Billing_Frequency__c = "M" && Today()> PurchaseDate && Today()< UsageEndDate, DATE(IF(Month(PurchaseDate)= 12, YEAR(Today())+1,YEAR(Today())), (MONTH(PurchaseDate)+ FLOOR((Today()- PurchaseDate) / 31)+ 1), DAY(PurchaseDate)),
IF(Billing_Frequency__c = "M" && Today() <= PurchaseDate && Today()< UsageEndDate, PurchaseDate, NULL))
This Formula is working fine if Year of PurchaseDate is 2015 or above but if Year of PurchaseDate is 2014 then I am getting #Error! value.
Can you please let me know what I am doing wrong? Once again it is very urgent. Thanks in advance!!!
Here is my Formula
IF(Billing_Frequency__c = "M" && Today()> PurchaseDate && Today()< UsageEndDate, DATE(IF(Month(PurchaseDate)= 12, YEAR(Today())+1,YEAR(Today())), (MONTH(PurchaseDate)+ FLOOR((Today()- PurchaseDate) / 31)+ 1), DAY(PurchaseDate)),
IF(Billing_Frequency__c = "M" && Today() <= PurchaseDate && Today()< UsageEndDate, PurchaseDate, NULL))
This Formula is working fine if Year of PurchaseDate is 2015 or above but if Year of PurchaseDate is 2014 then I am getting #Error! value.
Can you please let me know what I am doing wrong? Once again it is very urgent. Thanks in advance!!!
Problem with next line
when you count for 2014 result > 12, but this is incorect. Month should be from 1 to 12.
As a common practice, if your question is answered, please choose 1 best answer.
But you can give every answer a thumb up if that answer is helpful to you.
Thanks,
Alex
Thanks,
Alex
try this formula
And other formula with Quarterly type
As a common practice, if your question is answered, please choose 1 best answer.
But you can give every answer a thumb up if that answer is helpful to you.
Thanks,
Alex
We have Formula Field Billing Frequency and we have PurchaseDate Standard Date Field and UsageEndDate Standard Date Field.
I need to create a Formula Field to Calculate the Future Bill Date
Scenario:
If we have Billing_Frequency__c = Monthly and PurchaseDate = 8/1/15 and EndDate = 12/1/15
Suppose Today() Date is 9/23/15
then if Today() Date is > PurchaseDate and < EndDate then this Formula Field should show Future Bill Date as 10/1/15
so when Today() Date be 10/2/15 then this Formula Field should show Future Date as 11/1/15
If Today() Date is <= PurachaseDate then this Formula Field show just show PurchaseDate
In case Today()Date is < EndDate then this Field should be Blank.
and
If we have Billing_Frequency__c = Quarterly and PurchaseDate = 05/1/15 and EndDate = 12/1/16
Suppose Today() Date is 10/05/15
then if Today() Date is > PurchaseDate and < EndDate then this Formula Field should show Future Bill Date as 11/1/15 (if we add 3 months to 5/1/15 then future bill date be 8/1/15 but 8/1/15 is still past date of today's date so we are gonna add 3 more months to 8/1/15 then we will get the correct future bill date which will be 11/1/15. Same think when today's date will pass 11/1/15 mean when today() date be 11/2/15 then Future Bill Date should be showing 2/1/15. (Just added 3 more months to 11/1/15).
If Today() Date is <= PurachaseDate then this Formula Field show just show PurchaseDate
In case Today()Date is < EndDate then this Field should be Blank.
Please let me know if it is still not clear.