I want to construct Excel addin with the following functions:
[ExcelFunction()]
public static double myAverage1(double[] inputVector)
{
return inputVector.Sum()/inputVector.Length ;
}
[ExcelFunction()]
public static double myAverage2(DateTime[] TS1_DateTime)
{
return 12.5;
}
Problem is that Excel does not recognize function myAverage2.
The problem is related to the DateTime type, I tried to change it into String type but the function is strill not recognized. Any idea how to resolve this ?
What I eventually want to acheive is to give the function two DateTime arrays and get back the intersection of these.