Giter Club home page Giter Club logo

Comments (5)

PowerKiKi avatar PowerKiKi commented on May 9, 2024

I confirm the issue still exists and can be summed up like so:

Formula Excel 2010 PHPExcel
="a" = "a" TRUE TRUE
="a" = "A" TRUE FALSE
="A" = "A" TRUE TRUE
="A" = "a" TRUE FALSE

Interestingly LibreOffice 4.0 seems to implement both modes. When creating a new document, it will be case sensitive (default behavior), but if you save it as .xlsx and re-open it, it will switch to case insensitive (Excel compatible behavior). The documentation does not mention anything though: https://help.libreoffice.org/Calc/Operators_in_Calc

My opinion is PHPExcel is not called PHPLibreOffice for a reason, and as much as it pains me to say it, I would implement Excel behavior as closely as possible.

I will have a look at PHPExcel source code and see if I can submit a PR...

from phpexcel.

PowerKiKi avatar PowerKiKi commented on May 9, 2024

I should add that Google Drive spreadsheets, behave the same way as Excel. One more argument in favor of Excel behavior for what it is worth...

from phpexcel.

PowerKiKi avatar PowerKiKi commented on May 9, 2024

I updated my original Pull Request, and it now properly support compatibility mode setting to use case sensitive for OpenOffice and case insensitive for everything else.

On a side note, I noticed PHPExcel unit tests would need a lot of love to fix them all. If I ever happen to do some of that work, on which branch should it be ? develop or develop_2.0.0 ?

from phpexcel.

MarkBaker avatar MarkBaker commented on May 9, 2024

The unit tests certainly need a lot of love and attention, and have been largely neglected for a long time, and I'm ore than happy to see some new work in that area. The develop_2.0.0 branch is dead for the moment; I've refactored a lot of the code to use a an object factory, and moved some of the core components to a repository common for all PHPOffice applications; and am rewriting the calculation engine significantly, and those changes won't merge cleanly with any existing branch. So any additions should be against the develop branch.

from phpexcel.

PowerKiKi avatar PowerKiKi commented on May 9, 2024

Thank you for the clarification. I was indeed wondering how you planned to
merge those very heavy changes.

from phpexcel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.