Home : GRANGE
Q10793 - INFO: GRANGE
GRANGE returns the range of a certain variables.

SYNTAX:

GRange(VarNum,GroupOffset/StartDate,Grouping/EndDate) 

VarNum:  The variable number that refers to the values you want to look at.

GroupOffset/StartDate: Used with the Grouping parameter to set the dates to calculate the stat for.  Sets the number of Groups (set by the Grouping Parameter) to be added to set the dates.  See examples below. If this field is a date string (i.e. "07/16/2004") or refers to a cell with a date in it, it is assumed to be the start date to calculate the stat for.

Grouping/EndDate: Used to set which dates to calculate the stat for.  If the Grouping is a date literal string (i.e. "07/16/2004") or refers to a cell with a date in it, it is assumed to be the end date to calculate the stat for. Common Groupings are:

"D" Days
“M” Monthly 
"R" Report Dates
Click here for available Grouping option.

NOTES:

 

EXAMPLES:

GRANGE(11, 1, "M")  Returns the range for variable 11 for the date range which is the current month.

GRANGE(11, "11/21/07", "11/30/07")  Returns the range for variable 11 considering only the values from the 21st to the 30th of Nov 2007.

Download Example Template: Help_GRANGE_Examples.ss3 (Click here for download instructions)

See Also: 

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 2/21/2008 10:49 AM.
Last Modified on 2/21/2008 10:49 AM.
Last Modified by No Author Name Available!.
Article has been viewed 2074 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article