Git Product home page Git Product logo

xlsxmerger's Introduction

XlsxMerger:一款好用的excel合并脚本插件

.exe 可执行文件下载地址:v0.1.0

【最新说明】

  • 2022-07-08 修复了处理公式单元格出现的错误,现在合并时仅合并数值不合并公式。

适用场景

多个excel中同名子表合并 子表格式要求:

  • 子表开头为若干行说明与表头
  • 子表中间每行为一个统计项,且在中间无合并单元格情况
  • 子表最后可能有结束行标志,通过该行第一个单元格中的文字识别

使用说明

我们提供了在windows系统中的可执行文件,可以在cmdpowershell中通过命令调用。同时,我们也鼓励用户通过修改python脚本实现更加多样化的功能。

以下对如何在命令行调用可执行文件进行说明。

1、请将命令行路径切换至generateConfig.exeprocess.exe所在目录,或将目录添加到环境变量中。

2、准备一个模板文件 [TemplateFile]。模板文件中每个表格应只保留说明及表头,删除所有内含数据

3、生成配置文件[ConfigFile]

.\generateConfig [TemplateFile] [ConfigFile]

4、修改配置文件

  • 修改Path值为所有待统计文件的通配符,一般为目录\*.后缀名
  • 修改Output值为想要的输出文件名
  • 删除Sheets中不需要统计的表格
  • 修改Sheets中每一个表格,prefix_lines应为统计项之前的说明及表头所占行数,posfix_string为终止行的第一个单元格中的文字

4、运行.\process --cfg [ConfigFile]

异常警告

程序针对以下遇到的情况进行警告输出

  • 统计文件中缺少需要统计的子表
  • 统计文件某子表中未出现终止行文字

更新日志

  • 2022-07-08 修复了处理公式单元格出现的错误,现在合并时仅合并数值不合并公式。

代码打包

1、生成version file

create-version-file [YAML_IN_FILE] --outfile [TXT_OUT_FILE] --version [VERSION]

2、使用pyinstaller打包

pyinstaller -F -w --version-file [TXT_OUT_FILE] [PYTHON_FILE]

License

Released under MIT License.

xlsxmerger's People

Watchers

Zhiyang Chen avatar

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.