2
我要構建的Excel插件具有以下功能:Excel不能識別C#函數的DateTime參數
[ExcelFunction()]
public static double myAverage1(double[] inputVector)
{
return inputVector.Sum()/inputVector.Length ;
}
[ExcelFunction()]
public static double myAverage2(DateTime[] TS1_DateTime)
{
return 12.5;
}
問題是,Excel不能識別功能myAverage2。
該問題與DateTime類型有關,我試圖將其更改爲String類型,但該函數未被識別。任何想法如何解決這個問題?
我最終想要達到的目標是給函數兩個DateTime數組並返回這些交集。