MVSUM compares the values of a specified set of variables each day and returns the total of the values.
SYNTAX:
MVSUM(Cj, Cn:Cw, Cy, ...)
where :
Cx is a conditional variable x
NOTES:
Each variable must be specified as a Conditional Variable (use "C" instead of "V").
The variables may be referenced two different ways; single variables separated by commas or a range specified by a beginning variable, a colon, and an ending variable. These two methods can be combined. (i.e., C14:C22 will include all variables whose numbers fall between Variable 14 and Variable 22)
When specifying a range of variables, there can be gaps in the series of existing variables. For instance, if the specified range is C11:C17 and variable 14 does not exist, the function will calculate the remaining variables.
This function only works properly when all variables are the same frequency, i.e. all daily, all hourly, etc... This function will handle up to 199 variables.
EXAMPLES:
V128 = MVSUM(C1001:C1004, C1011)
Variable 128 will contain the daily total of the variables specified in the function:
V4764 = MVSUM(C4762,C4763)
where V4764,V4762, and V4763 are all 4-hour daily detail variables. Note, to calculate values must be in the same data slot, not necessarily the same time.