I just want to ask if there\'s a function in excel/phpexcel that can SUM a range of
cells but skip to add every one cell.
Ex. Range is A1:G1
Build the formula dynamically in your PHP script:
$startCell = 'A';
$endCell = 'H';
$row = 1;
$formula = '=' . $startCell . $row;
while ($startCell++ != $endCell && $startCell++ != $endCell) {
$formula .= '+' . $startCell . $row;
}
EDIT
Note that I've also added a pure Excel formula answer to your previous question