Skip to content

formula error with worksheet containing German Umlaute (äöü) #2221

Open
@G-Kevin

Description

@G-Kevin

This is:

- [X] a bug report
- [ ] a feature request
- [X] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

Getting a value from a call in a worksheek with German Umalute works.

What is the current behavior?

Getting a formular error:

PHP Fatal error:  Uncaught PhpOffice\PhpSpreadsheet\Calculation\Exception: Konten!AB16 -> Konten!AC16 -> Übersicht!S57 -> Formula Error: An unexpected error occurred in C:\...\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Cell\Cell.php:275

What are the steps to reproduce?

<?php

require 'vendor/autoload.php';

$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
$spreadsheet = $reader->load( $excelFilePath );

$worksheet = $spreadsheet->getSheetByName( 'Konten' );
echo $worksheet->getCell( 'AB16')->getCalculatedValue();

Cell AB16 contains the formula
=Übersicht!S57
Renaming the worksheet from Übersicht to Uebersicht works.

Which versions of PhpSpreadsheet and PHP are affected?

php 8.0.8
PhpSpreadsheet 1.18.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions