Skip to content

Incorrect interpretation of custom number formatting #2258

@woutertinusf19

Description

@woutertinusf19

EPPlus usage

Commercial use (I have a commercial license)

Environment

Windows

Epplus version

8.4.1

Spreadsheet application

Excel

Description

We have a cell with a custom number format defined in Excel as #.##0;"-/-" #.##0. The desired effect is that negative numbers should look like -/- 1000 instead of -1000 and that is what Excel does. Unfortunately in EPPlus, the property cell.Text returns --/- 1.000 instead. Attached is a repro. A workaround that we discovered is to change the number formatting to #.##0;-"/-" #.##0 instead.

repro2.xlsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions