Skip to content

Autofilter in Xlsx with $A:$F throws "Invalid cell coordinate A" #727

Description

@CybotTM

This is:

- [X] a bug report

What is the expected behavior?

Having a Xlsx with autofilters on areas defined by $A:$F are loaded without errors

What is the current behavior?

Exception "Invalid cell coordinate A"

What are the steps to reproduce?

Create an Xlsx with autofilter over area $Table1.$A:$F

  1. new Xlsx
  2. Enter some column labels in first row
  3. mark whole sheet and hit "Autofilter"
  4. save under /var/www/html/web/template.xlsx
<?php

require __DIR__ . '/vendor/autoload.php';

// Create new Spreadsheet object
$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load('/var/www/html/web/template.xlsx');
// throws "Invalid cell coordinate A"

Which versions of PhpSpreadsheet and PHP are affected?

  • phpoffice/phpspreadsheet v1.4.1
  • PHP 7.2.11

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions