phpexcel - PHP Excel - extracting data to a variable -
i've been working phpexcel, , have been able take dataset data , create arrays on large data sets. if want allow client draw data single cell, can't seem make work.
what i'm looking take data single cell in excel , place in php variable.
assuming you're using phpexcel library.
to "raw" cell value:
$cella1value = $objphpexcel->getactivesheet()->getcell('a1')->getvalue();
or calculated value cell containing formula:
$cellb2value = $objphpexcel->getactivesheet()->getcell('b2')->getcalculatedvalue()
or formatted value cell:
$cellc3value = $objphpexcel->getactivesheet()->getcell('c3')->getformattedvalue()