Hi, I am currently trying to use Aspoce.Cells .NET for calculation purposes. What I do is to transfer data to a template workbook that I want to execute formulas on then return the result to my application. But I can’t get this working 100%.
What I want to do is to use a combination of match and index to find a value based on 2 keys.
Type ; Weight ; ProductKey
A ; 100 ; 132425
A ; 120 ; 124666
B ; 100 ; 476128
A ; B ; C ; D ; ….
SomeLine ; A ; 120 ; [Formula] ; … Other values that use the result of formula…
This is the formula I use (tested ok on excel 2003)
=INDEX(BigBags!A2:C29; MATCH(B1&C1;BigBags!A2:A29&BigBags!B2:B29;0); 3)
I use Workbook.CalculateFormula() to execute the formulas, and it executes with no exception, but the result it returns holds the value: “#VALUE!”. I stored the workbook and opened it in excel where it shows value, if the formula don’t return a key in excel it shows “#N/A”.
Is there a fix or workaround to this problem?