ok here is some code
$highestRow = 16; // e.g. 10
$highestColumn = 'F'; // e.g 'F'
$highestColumnIndex = PHPExcel_Cell::columnIndexFromString($highestColumn); // e.g. 5
for ($row = 9; $row <= $highestRow; ++$row) {
$val=array(); //i have initialized the array
for ($col = 1; $col <= $highestColumnIndex; ++$col) {
$cell=$objWorksheet->getCellByColumnAndRow($col, $row);
$val[]=$cell->getValue();
}
echo $val[0] //from what is read from excel, it returns data like this 7563
}
How the data was in the excel sheet before, B9
had 75
, B10
had 6
and B11
had 3
After reading i echo $val[0] //output 7563
Now i would like to add additional data to the result so if i echo $val[0]
after adding the info it shows the output as
echo $val[0] //output average=75% ; rsd = 6%; n=3% instead of just 7563