You are viewing limited content. For full access, please sign in.

Question

Question

Forms Calculation

asked on November 16, 2017

I'm trying to set a date of "the 7th of the following month, with a cutoff of the 24th of the month", calculating from a field called "CCPostDate".  The following calculation works perfectly in Excel, and it appears that all the same functions are available in Forms. 

=IF(DAY(CCPostDate)<=24,EDATE(CONCATENATE(MONTH(CCPostDate),"/07/",YEAR(CCPostDate)),1),EDATE(CONCATENATE(MONTH(CCPostDate),"/07/",YEAR(CCPostDate)),2))

 

The formula seems to validate fine when I refresh the form design, but when I do a preview form, I get the following error;

 

This field contains a calculation error.
References: Credit Card Posting Date, Credit Card Posting Date, Credit Card Posting Date, Credit Card Posting Date, Credit Card Posting Date

I was using the following formula, but I ended up with dates like 13/07/2017 and 14/07/2017.

=CONCATENATE((IF((DAY(CCPostDate))<=24,SUM((MONTH(CCPostDate))+1),SUM((MONTH(CCPostDate))+2))),"/07/",(YEAR(CCPostDate)))

 

Any ideas would be appreciated! 

0 0

Replies

replied on November 16, 2017 Show version history

Hi Clarissa

For your original formula

As you are using SUM to calculate the New Date, instead of SUM((MONTH(CCPostDate))+1), it should look like SUM((MONTH(CCPostDate)),1)

Which translates SUM(the Month Value of CCPostDate and this value(1))

1 0
replied on November 16, 2017

Ha!!   It's so SIMPLE.  I knew another set of eyes would do it.  I was staring at that thing for way too long! 

 

Thanks, Steve!!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.