private static function cellAddressInDeleteRange($cellAddress, $beforeRow, $pNumRows, $beforeColumnIndex, $pNumCols) {
		list($cellColumn, $cellRow) = PHPExcel_Cell::coordinateFromString($cellAddress);
		$cellColumnIndex = PHPExcel_Cell::columnIndexFromString($cellColumn);
		//	Is cell within the range of rows/columns if we're deleting
		if ($pNumRows < 0 &&
			($cellRow >= ($beforeRow + $pNumRows)) &&
			($cellRow < $beforeRow)) {
			return TRUE;
		} elseif ($pNumCols < 0 &&
			($cellColumnIndex >= ($beforeColumnIndex + $pNumCols)) &&
			($cellColumnIndex < $beforeColumnIndex)) {
			return TRUE;
		}
		return FALSE;
	}
private static function cellAddressInDeleteRange($cellAddress, $beforeRow, $pNumRows, $beforeColumnIndex, $pNumCols) {
		list($cellColumn, $cellRow) = PHPExcel_Cell::coordinateFromString($cellAddress);
		$cellColumnIndex = PHPExcel_Cell::columnIndexFromString($cellColumn);
		//	Is cell within the range of rows/columns if we're deleting
		if ($pNumRows < 0 &&
			($cellRow >= ($beforeRow + $pNumRows)) &&
			($cellRow < $beforeRow)) {
			return TRUE;
		} elseif ($pNumCols < 0 &&
			($cellColumnIndex >= ($beforeColumnIndex + $pNumCols)) &&
			($cellColumnIndex < $beforeColumnIndex)) {
			return TRUE;
		}
		return FALSE;
	}
private static function cellAddressInDeleteRange ( $ cellAddress , $ beforeRow , $ pNumRows , $ beforeColumnIndex , $ pNumCols ) { list ( $ cellColumn , $ cellRow ) = PHPExcel_Cell :: coordinateFromString ( $ cellAddress ) ; $ cellColumnIndex = PHPExcel_Cell :: columnIndexFromString ( $ cellColumn ) ; //	Is cell within the range of rows/columns if we're deleting if ( $ pNumRows < 0 && ( $ cellRow >= ( $ beforeRow + $ pNumRows ) ) && ( $ cellRow < $ beforeRow ) ) { return TRUE ; } elseif ( $ pNumCols < 0 && ( $ cellColumnIndex >= ( $ beforeColumnIndex + $ pNumCols ) ) && ( $ cellColumnIndex < $ beforeColumnIndex ) ) { return TRUE ; } return FALSE ; }
Test whether a cell address falls within a defined range of cells

@param   string     $cellAddress        Address of the cell we're testing
@param   integer    $beforeRow          Number of the row we're inserting/deleting before
@param   integer    $pNumRows           Number of rows to insert/delete (negative values indicate deletion)
@param   integer    $beforeColumnIndex  Index number of the column we're inserting/deleting before
@param   integer    $pNumCols           Number of columns to insert/delete (negative values indicate deletion)
@return  boolean
Test whether a cell address falls within a defined range of cells