To insert a single new column before column A:
$objPHPExcel->getActiveSheet()->insertNewColumnBefore('A', 1);
Then you can either insert the new values for cells in column 'A' as a formula:
for($row = 2; $row = 20; $row++) {
$objPHPExcel->getActiveSheet()
->setCellValue('A'.$row, '="AFS-" && B'.$row);
}
or as an absolute value
for($row = 2; $row = 20; $row++) {
$objPHPExcel->getActiveSheet()
->setCellValue('A'.$row, 'AFS-' . $objPHPExcel->getActiveSheet()->getCell("B".$row)->getValue());
}
To do this for all sheets, just iterate over the sheets
EDIT
foreach ($objPHPExcel->getWorksheetIterator() as $worksheet) {
...
}
and then reference $worksheet
instead of $objPHPExcel->getActiveSheet()