Coder Social home page Coder Social logo

ennann / excel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from antoniothefuture/excelformulabeautifier

0.0 0.0 0.0 100 KB

Excel Formula Beautifer,make Excel formulas more easy to read,Excel公式格式化/美化,将Excel公式转为易读的排版

License: GNU General Public License v3.0

JavaScript 100.00%

excel's Introduction

ExcelFormulaBeautifier Excel公式格式化/美化

Excel Formula Beautifier,make Excel formulas more easy to read.

Excel公式格式化/美化,将Excel公式转为易读的排版。

示例:

=IFERROR(SUMIFS(D:D,E:E,1,F:F,"Apple") + 1,IF(3 * A1 > 10,20,100))
↓
=IFERROR(
    SUMIFS(
        D:D,
        E:E,
        1,
        F:F,
        "Apple"
    )+1,
    IF(
        3*A1>10,
        20,
        100
    )
  )

Why? 起因

When we are writing a complex formula in an Excel Cell we have to face a difficulty,that is,the formula is too hard to read and it will take a lot of time for your co-worker to understand your formula,so I am going to create a way to make this thing more easier,inspired by the some SQL Beautifier Tools,I decided to develop a way to beautif Excel formula,which can easily access by webpage.

我们在编写Excel公式,特别是复杂的,带有多层if嵌套的公式,往往会显得让人难以阅读,我希望通过开发一个网页版的Excel公式格式化/美化工具来帮助大家更好地理解您或您同事写的Excel公式。

Demo 示例

https://t.nonemin.com/excelformula

Usage 使用

The web page can be deployed to your local area network and access via shared folder,to do so,just download the html and js file into the shared folder,then use your browser to open the html file.

本工具可以部署到您的内网中使用:下载html和js文件到内网中的共享文件夹,然后用浏览器打开html文件。

调用方式:JS

  1. 新建一个ExcelFormulaBeautifier 对象
  2. 赋值参数:deep:0, //最深展开层次
  3. 调用其format 函数,
  4. 调用getResultString 或 getResultArray 获取分行结果
  5. 调用 explain 函数进行解释。
  6. 调用 getExplainsString 或 getExplainsArr 获取解释结果

Notice 说明

The complete runnable project has been released as a release

可运行的完整项目已经发布为 Release

版本

  • 1.0:初始版本
  • 1.1:
    • 重构成JS对象
    • 优化JS写法
    • 添加函数使用说明
    • 示例页面使用Bootstrap V3构造

下一步计划

  • 增加对自定义函数的支持

LICENSE

This project is under GPL-3.0 License

excel's People

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.