Skip to content

Conditional formatting that spans two sheets is read incorrectly #4629

@jpaul3rdl

Description

@jpaul3rdl

test.xlsx

When this file is read and then written, the rules that reference only one sheet are lost.

I believe those rules are overwritten by the other rule here and I think it has to do with them having the same cell range.

https://github.com/PHPOffice/PhpSpreadsheet/blob/fb51c3d964f7e03b48ccf19bd2098109b137ba97/src/PhpSpreadsheet/Reader/Xlsx.php#L847

Also, the rule that references both sheets loses its font color and its 'stop if true' value.

PHP 8.2
PHPSpreadsheet 1.29

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