This image is the file I wish to importI tried to import my excel file in MySQL, and I was able to do it but I want to remove certain rows and start importing from E4 instead of A1 cell. I only need some columns like the ones highlighted in yellow. This is my code, I only got this through a tutorial and want to make some difference.
if(isset($_POST['import_mandate']))
{
    $filename = $_FILES['import-file']['name'];
    $file_ext = pathinfo($filename, PATHINFO_EXTENSION);
    
    $allowed_ext = ['Xls','xlsx','csv'];
    
    if(in_array($file_ext, $allowed_ext))
    {
        $inputFileName = $_FILES['import-file']['tmp_name'];
        /** Load $inputFileName to a Spreadsheet object **/
        $spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($inputFileName);
        $data = $spreadsheet->getActiveSheet()->toArray();
        
      
        foreach($data as $row)
        {
                 
            $nycid = $row['4'];
            $lastname = $row['5'];
            $firstname = $row['6'];
            $grade = $row['10'];
            $adbn = $row['12'];
            $pldbn = $row['13'];
            $stype = $row['18'];
            $mb = $row['19'];
            $language = $row['20'];
            $ig = $row['21'];
            $gsize = $row['22'];
            $freq = $row['23'];
            $dur = $row['24'];
            $provider = $row['28'];
            $mandatequery = "INSERT INTO mandates (nycid, lastname, firstname, grade, adbn, pldbn, stype, mb, language, ig, gsize, freq, dur, provider) VALUES ('$nycid', '$lastname', '$firstname', '$grade', '$adbn', '$pldbn', '$stype', '$mb', '$language', '$ig', '$gsize', '$freq', '$dur', '$provider')";
            $query_run = mysqli_query($con,$mandatequery);
            $msg = true;
            
        }
        if(isset($msg))
        {
            $_SESSION['message'] = "Successfully Imported!";
            header("Location: mandates.php");
            exit(0);
        }
        else
        {
            $_SESSION['message'] = "Not Imported!";
            header("Location: mandates.php");
            exit(0);   
        }
    }
    else
    {
        $_SESSION['message'] = "Invalid File!";
        header("Location: mandates.php");
        exit(0);`enter code here`
    }
Is there any way I can have some code that will allow me to only get data from E4 cell of my excel file?
 
    