title: Argument 1 passed to PHPExcel_Shared_Date::isDateTime() must be an instance of PHPExcel_Cell, double given
body: <p>I'm using PHPExcel for my code and I'm getting an error in this part: </p>
  
  <p>line 159 -179 :</p>
  
  <pre><code>if($extitle == $h){ 
  
                      $data = $objWorksheet-&gt;getCellByColumnAndRow($col, $row);
  
  
                              if(PHPExcel_Shared_Date::isDateTime($data)){
                                      $cellValue = $objWorksheet-&gt;getCellByColumnAndRow($col, $row)-&gt;getValue();
                                      $dateValue = PHPExcel_Shared_Date::ExcelToPHP($cellValue);
  
                                       $dob =  date('Y-m-d',$dateValue);                              
  
                                          $tz  = new DateTimeZone('Asia/Manila');
                                          $rage = DateTime::createFromFormat('Y-m-d', $dob, $tz)-&gt;diff(new DateTime('now', $tz))-&gt;y;
  
                              }else{
  
                                  $dob = "NULL";
  
                              }
  
                  }
  </code></pre>
  
  <p>line 180 -185</p>
  
  <pre><code>if($extitle == $i){ $data = $objWorksheet-&gt;getCellByColumnAndRow($col, $row)-&gt;getValue();   $mstatus = $data;               
                  }
  
                  if($extitle == $j){ $data = $objWorksheet-&gt;getCellByColumnAndRow($col, $row)-&gt;getValue();   $category = $data;              
                  }
  </code></pre>
  
  <p>I get the error : <code>Catchable fatal error:  Argument 1 passed to PHPExcel_Shared_Date::isDateTime() must be an instance of PHPExcel_Cell, double given, called in *****\uploadexceldata.php on line 187 and defined in ******\Classes\PHPExcel\Shared\Date.php on line 254</code></p>
  
  <pre><code>if($extitle == $q){
  
                      $data = $objWorksheet-&gt;getCellByColumnAndRow($col, $row)-&gt;getValue();           
  
  //in this part the error occured    
  
  
  
                      if(PHPExcel_Shared_Date::isDateTime($data)){
                                      $cellValue = $objWorksheet-&gt;getCellByColumnAndRow($col, $row)-&gt;getValue();
                                      $dateValue = PHPExcel_Shared_Date::ExcelToPHP($cellValue);
  
                                       $efdate =  date('Y-m-d',$dateValue);                               
  
  
  
                              }else{
  
                                  $efdate = "NULL";
  
                              }
                  }
  </code></pre>
  
  <p>But, when I erase the line 189 where <code>if($extitle == $p){   $data = $objWorksheet-&gt;getCellByColumnAndRow($col, $row)-&gt;getValue();</code> it works fine.</p>
  
  <p>Now, I want to know why this happens and how do I fix it.</p>