Syntax
Step(Year1, Value1, Year2, Value2,... YearN, ValueN) or
Step(ExcelFilename, ExcelRangeName)
Description
Calculates a value in any given year using a step function between a time-series of year/value pairs.
Using the above two alternatives syntaxes year/value pairs can either be entered explicitly or linked to a range in an Excel spreadsheet. Use the Yearly Time-series Wizard to input these values or to specify the Excel data. In either case, years do not need to be in any particular order, but duplicate years are not allowed, and must be in the range 1990-2200.
When linking to a range in Excel, you specify the full path name of a valid Excel worksheet or spreadsheet (an XLS or XLW) file, followed by a valid Excel range. A range can be either a valid named range (e.g. "Import") or a range address (e.g. "Sheet1!A1:B5"). The Excel range must contain pairs of years and values in its cells arranged into 2 columns. Use the WEAP Yearly Time-series Wizard to select a worksheet, to choose among the valid named ranges in the worksheet, and to preview the data that will be imported.
NB: The Current Accounts value is always implicit in the function, and will override any value explicitly entered for that year by the user. So for example, if the Current Accounts year is 1997 and the Current Accounts value (entered in Current Accounts) is 200.0 then the above function will results in the value 200.0 for both 1998 and 1999.
Example
Step (2000, 300.0, 2010, 500.0, 2020, 900.0)
2000 = 300.0
2012 = 500.0
2022 = 900.0
Tip
Use the Yearly Time-Series Wizard to enter the data for this function.
See Also
ExpForecast, Growth, GrowthAs, GrowthFrom, Interp, LinForecast, LogisticForecast, Smooth