Although this is already marked as solved, can I suggest another approach? Something similar to this post.
It creates objects or dictionaries in a json like format from the excel data, so parameters can be retrieved by a given key (not more fiddling with the indexes!)