-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Successfull translating from excel to c, but getting many failure test #10
Comments
The simplest possible cause is that the Excel had not been recalculated before it was saved. It is worth triggering a manual recalculation in the excel, saving it, and running the conversion again. If that isn’t the reason, then the next possibility is that it is some failure in the conversion process. I can take a look, but not until later in the week. All the btest Tom
|
Hi Tom, for example what's the possiblitiy of this? is that something we missed in the excel model? |
Ok. I will take a look. Though may not get to it until the weekend.
|
The first thing I have found is this: On sheet XII.a, cell N16 and similar, it has: Which the excel to C translation gets wrong. It expects the arguments to MATCH to be made explicitly, i.e., by using a ,0) rather than ,) as in: =INDEX(INDIRECT("'"&XII.a.Inputs[#Headers]&"'!Year.Matrix"),MATCH("SubTotal."&$A$2,INDIRECT("'"&XII.a.Inputs[#Headers]&"'!Year.Modules"),0),MATCH([Vektor],INDIRECT("'"&XII.a.Inputs[#Headers]&"'!Year.Vectors”),0)) Changing those gets the number of errors down to 18. I will look at what is causing those next. Best wishes Tom
|
Ok. That seems to be it. If I replace all the times that the Excel uses ,) with ,0) then the translation happens without errors. |
Hi @tamc
I'm using the calculator (the old one) for indonesia here (http://calculator2050.esdm.go.id)
we made some changes to the model.xlsx (here)
when trying to translate the model into c, it getting many test failures. log file
My assumption it's a excel version issue?
Regards
The text was updated successfully, but these errors were encountered: