Dean Redding Posted February 13, 2007 Share Posted February 13, 2007 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 More sharing options...
Genx Posted February 13, 2007 Share Posted February 13, 2007 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 More sharing options...
Dean Redding Posted February 13, 2007 Author Share Posted February 13, 2007 Thank you for that, it works a treat! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now