GET XLS DATA skipping values

Use this forum to post Vensim related questions.
Post Reply
lamalcz
Junior Member
Posts: 6
Joined: Fri Apr 02, 2004 3:33 pm

GET XLS DATA skipping values

Post by lamalcz »

I have a small model successfully retrieving data from Excel using GET XLS DATA, for example:

industrial fuel consumption[IndustrialFuels] =
GET XLS DATA('BBAM.xls','IndustrialFuel','A','B4')

However, this next code reads the first values then skips two entries and reads the fourth value and so on.

transportation fuel consumption[TransportationFuels] =
GET XLS DATA('BBAM.xls','TransportationFuel','A','B4')

I have checked the subscripts, they are of the right number and order. The data file has no hidden rows. The Worksheet names are correct.

Of the five sets of GET XLS DATA on this particular View, only this one (transportation fuel consumption) fails to read the correct values.
lamalcz
Junior Member
Posts: 6
Joined: Fri Apr 02, 2004 3:33 pm

Post by lamalcz »

Fixed my problem. It seems that there was data in the rows below the input data. That caused GET XLS DATA to behave differently.
Post Reply