Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: Search for text in a long, descriptive cell with line break

$
0
0
If you can read the cell value you can then just pass it on to the PHP function strpos().

Example:
$objPHPExcel = $objReader->load('example.xlsx');
$sheet = $objPHPExcel->getActiveSheet();
$cell = $sheet->getCellByColumnAndRow(3,3);
if (strpos($cell->getValue(), 'Remote Operating system:') !== false) {
  // Found text in cell now do something.
}

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>