hello, I’m trying to pass several cells of different sheets of an excel to gams using gdx, and I get strange errors, this I have until now:
Parameter DH1 (K0, J01) call GDXXRW Alt_Tables.xlsx par = DH1 rng = H1(K0,J01)! A1: B7 output = DH1.gdx
GDXIN DH1.gdx LOAD DH1
GDXIN
At the beginning it appears that the sheet does not exist, then I write again the name of the sheets in excel and the program recognizes them, this is very rare. The other strange thing is that he does not run me because he tells me that the DH3 has ‘symbol not in gdx’ since I can open DH3.gdx Does anyone know what the problem is?
Thank you!
There were plenty of spaces in the code in your original posting. They will confuse gdxxrw. Moreover, your third call to gdxxrw was saving the results again in DH2 but you try to extract DH3. So I am not sure what you really tried.
I need to transport some parameters from *.gdx file into excel.
I would like to do it precisely column by column, no transportation of columns into rows.
The excel output is attached. I was trying to play with trace and filter options to have the year span as column as well - like in .gdx file. So what I need is to have all (six) dimensions as columns with extra (seventh) column containing values of my parameter.
And get the names for the columns as well.
Why don’t you add rdim=5 cdim=1 to your call to read this data?
Otherwise, reformulate your question and attach code and the excel sheet.
Cheers
Renger
PS. This is a new question, so better start always a new topic. If you add a reaction to an existing topic, it will not be shown under the “unanswered topics”.