-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
This is:
- [X] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the expected behavior?
A cell that contains value like 200 number, $200 value
that is formatted as Text should be recognized as 200 number - $200 value
when using the rangeToArray
function.
What is the current behavior?
The cell is being recognized as 200 number - 0 value
.
What are the steps to reproduce?
<?php
require_once __DIR__ . '/../vendor/autoload.php';
$inputFileName = __DIR__ . '/../issue.dollar.sign.xlsx';
$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($inputFileName);
$sheet = $spreadsheet->getActiveSheet();
print_r($sheet->toArray());
What features do you think are causing the issue
- Reader
- Writer
- Styles
- Data Validations
- Formula Calculations
- Charts
- AutoFilter
- Form Elements
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
XLS isn't affected.
XLSX is affected.
Which versions of PhpSpreadsheet and PHP are affected?
It seems all of them.
Metadata
Metadata
Assignees
Labels
No labels