Spread WPF 18
Features / Formulas and Functions / Array Formulas
In This Topic
    Array Formulas
    In This Topic

    Spread for WPF allows you to use array formulas in the worksheets. An array formula performs calculations on one or more items in an array and can return either a single result or multiple results. To create an array formula in a worksheet, you can use the FormulaArray property of the IRange interface.

    The following image demonstrates how to create an array formula in the worksheet.

     

    Refer to the following example code to create an array formula in the worksheet.

    Copy Code
    // Create array formula.
    spreadSheet1.Workbook.ActiveSheet.Range("D1:D4").FormulaArray = "B1:B4*C1:C4";
    
    Copy Code
    ' Create array formula.
    spreadSheet1.Workbook.ActiveSheet.Range("D1:D4").FormulaArray = "B1:B4*C1:C4"