Two dimensional subscripts
Posted: Tue Dec 23, 2008 1:00 pm
I am a new Vensim user and am currently in the "learning by trial and error"
mode.
I am trying to set up a two dimensional array to hold population data that will be read in from an Excel spreadsheet.
My subscripts are AgeCohort and Gender with values (AC1 - AC18) and (Male, Female) respectively.
I've set up the following equation to read the data from Excel:
Population[Gender,AgeCohort] := GET XLS DATA('AllData.xls','Population','4','C5').
However, I get a message stating that "More than one subscript is a subscript range". I've reviewed the subscript portion of the manual and at this point I'm not sure what to try or do next.
Any assistance you could provide would be most appreciated.
Thank you.
John
[Edited on 12-23-2008 by jfolczak]
mode.
I am trying to set up a two dimensional array to hold population data that will be read in from an Excel spreadsheet.
My subscripts are AgeCohort and Gender with values (AC1 - AC18) and (Male, Female) respectively.
I've set up the following equation to read the data from Excel:
Population[Gender,AgeCohort] := GET XLS DATA('AllData.xls','Population','4','C5').
However, I get a message stating that "More than one subscript is a subscript range". I've reviewed the subscript portion of the manual and at this point I'm not sure what to try or do next.
Any assistance you could provide would be most appreciated.
Thank you.
John
[Edited on 12-23-2008 by jfolczak]