'Phpspreadsheet: how i can use the function excel in php

how i can use the function excel in php with phpspreadsheet? For example: the function SUM. Because i try with:

$spreadsheet->getActiveSheet()->setCellValue('E'.$row.'', '=Somma(E4:E'.$row_1.')');

But this doesn't work



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source