Skip to content
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

Optimizing Excel Model Efficiency with Pre-Calculation #126

Open
rmrf2020 opened this issue Dec 19, 2023 · 0 comments
Open

Optimizing Excel Model Efficiency with Pre-Calculation #126

rmrf2020 opened this issue Dec 19, 2023 · 0 comments

Comments

@rmrf2020
Copy link

Is your feature request related to a problem? Please describe.
When I use func=excel_model.compile(inputs=inputs, outputs=outputs) to generate a function, I encounter a formula =IF($A5="","",VLOOKUP($I5,PriceTable!$D$2:$H$59711,2,0)/1000*InputSheet!$F$11). My only input is InputSheet!$F$11, and $I5 and $A5 have default values. I'm looking for a way to incorporate the result of VLOOKUP($I5,PriceTable!$D$2:$H$59711,2,0) directly into the formula, like =IF(10="","",1.9/1000*InputSheet!$F$11), to avoid repetitive VLOOKUP execution.

Describe the solution you'd like
An optimization in excel_model.compile(inputs=inputs, outputs=outputs) to pre-calculate or efficiently handle the VLOOKUP($I5,PriceTable!$D$2:$H$59711,2,0) value, focusing on the InputSheet!$F$11 input for smoother processing.

Describe alternatives you've considered
Manual optimization, though impractical for large datasets.

Additional context
This feature would significantly streamline calculations and enhance the utility of the project. Your guidance or suggestions for implementing this would be greatly appreciated. Thank you for your impactful work on this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant