Hi,
I have a complex calculation one of my excel.
This is how excel organized in short...
Sheet2 => There 6 column row and each cell has a formula. Then I have dragged this 6 cells row up to 10000 rows so each row has a repeated formula.
Sheet1 => There is cell (Ex: A1) value and depending on the value Sheet2's above mentioned rows getting evaluated
Sheet3 => Similar logic as Sheet2
Sheet2 => There are couple of columns which does VLOOKUP from Sheet3 aa,d Sheet3 has similar VLOOKUP from another Sheet such as Sheet2/Sheet3
Input => Sheet1:A1 = Number
Output => Sheet1:A2 = VLOOKUP from Sheet2's above mention 6col x 10000rows area
This is a complex recursive evaluation and sometimes you might see it is redundant (But it is not because of the logic behind it, but sure there might be a better way)
When I try to get Sheet1["A2"].CalculatedValue, return #NA after 2,3 minutes.
If I tried Sheet1["A2"] in the Watch area in the VS debugger, it dumps "Function evaluation is disabled because a previous function evaluation timed out" message.
I really sure this very complex to solve in a regular programming model. But I would except at least "too complex" message if there are more than 100 (default) recursive calls, but what it returns is "#NA".
My questions are,
1. Is there a way to debug XlsIO so I can find out where it is getting failed
2. Is there any advice you can give me (I'm OK to drop this evaluation since it is too complex, but #NA value is not something I can go with, I need to find a better reason why it is failing..etc)
3. Are there limitations with the above scenario?
Essential Studio 15.3.0.26
Note: Works with MS Excel 2013, but there is a 3,4 seconds delay sometimes.
Thank you very much!