Jump to content

Calculating Dates


This topic is 6254 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I am stuck on a calculation and need some help.

I have created a calculation on a date being show 4 weeks before a certain date field.

eg: ="Date Due" - "Call Date"

But what I want is a calculation showing that if, the call date is past the current date, then the formula equals

= "Current Date"+4

I am not sure how to do it via the "if" function.

Thanks In Advance

Link to comment
Share on other sites

Case( CallDate > Get(CurrentDate) ; Get(CurrentDate) + 4 ; DateDue - CallDate )

Or with If...

If( CallDate > Get(CurrentDate) ; Get(CurrentDate) + 4 ; DateDue - CallDate )

The difference is:

Case( Condition1 ; Result1 ; Condition2 ; Result2 ; Conditionx ; Resultx ; defaultIfNoConditionsMet )

or

Case( Condition1 ; Result1 )

If:

If( Condition1 ; Result1 ; defaultIfResult1NotMet)

or

If( Condition1 ; Result1 )

Essentially Case is more useful in 95% of circumstances...

Link to comment
Share on other sites

This topic is 6254 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.