Home : TodayIF
Q14324 - INFO: TodayIF

TodayIF Returns Current Date being calculated when condition is True, else the NoDate date literal when false. Short form for the expression IF(condition, D, Nodate).  Usually used with an advanced math toolbox function. 

SYNTAX:

TodayIF(Condition)

EXAMPLES:

Example 1: Sum a fiscal year worth of values, starting on July 1st and ending on June 30th.

GETSUM(C5, #7/1/-1 TO TODAYIF(D=#6/30))

C5 : Get the average over time of variable 5
#7/1/-1 : From July 1st of last year
TODAYIF(D=#6/30) : To today, if today is June 30th

Example 2: Return the Date Number (Number of the days since Dec 31, 1899) if the current date is Aug 6th

TODAYIF(D=#8/6)

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 5/13/2015 4:42 PM.
Last Modified on 5/13/2015 4:45 PM.
Last Modified by Scott Dorner.
Article has been viewed 3095 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article