Thanks Chris,
I was able to get for the first parameter (ParkingPermitIssued(k)) based on your advice but I could not get for the next one which is a two dimensional data.
This is the error I get:
ExcelRetrieveTable(Myfile2.csv, NumberofSpaceAvailable(i,k), B2:C7, B1:C1, , , 1) failed: The dimensions of the row and/or column array do not match the dimensions of data array.
And this is my code:
ExcelRetrieveTable( ExcelWorkbook : "Myfile2.csv",
Parameter : NumberofSpaceAvailable(i,k),
DataRange : "B2:C7",
RowsRange : "B1:C1",
ColumnsRange : "",
AutomaticallyExtendSets : 1
) ;
And the data in my excel sheet is in this format:
| reserved |
Unreserved |
| 40 |
161 |
| 138 |
0 |
| 27 |
99 |
| 32 |
110 |
| 68 |
0 |
| 72 |
300 |
Thanks for your help.