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

Can anyone shorten this formula?
Code:
DATE ( YEAR(CloseDate) + FLOOR((((FLOOR((((YEAR( TODAY() ) * 12) + MONTH( TODAY() )) - ((YEAR( CloseDate ) * 12) + MONTH( CloseDate ))) / Term_in_Months__c) + 1) * Term_in_Months__c) + (MONTH(CloseDate) - 1)) / 12), CASE(MOD(((FLOOR((((YEAR( TODAY() ) * 12) + MONTH( TODAY() )) - ((YEAR( CloseDate ) * 12) + MONTH( CloseDate ))) / Term_in_Months__c) + 1) * Term_in_Months__c) + MONTH(CloseDate),12), 1,01, 2,02, 3,03, 4,04, 5,05, 6,06, 7,07, 8,08, 9,09, 10,10, 11,11, 12), IF( AND(DAY(CloseDate) = 29,MONTH(CloseDate) = 02) , 28, DAY(CloseDate)))
Compiles to 18,869 characters, references no custom formula fields.
Message Edited by Buell on 10-02-2008 02:23 PM
as you are so far above the limit, simply shortening it won't help. I think you need to think about another way of doing it... Generally, a CASE statement uses up a lot of formula space. In a lot of cases you can save chars by replacing it with IF-statements.
What exactly ARE you tying to do? My eyes glazed over after the 5th nested function... ;)
Marc
Marc