欢迎访问《农学学报》,

农学学报 ›› 2020, Vol. 10 ›› Issue (9): 72-77.doi: 10.11923/j.issn.2095-4050.cjas20190800162

所属专题: 智慧农业

• 农业信息/农业气象 • 上一篇    下一篇

基于Excel VBA的区域试验数据批量提取汇总软件的开发与应用

官晓敏(), 杨中路, 陈海峰, 邱德珍, 周新安()   

  1. 中国农业科学研究院油料作物研究所,武汉 430062
  • 收稿日期:2019-08-20 修回日期:2019-10-19 出版日期:2020-09-20 发布日期:2020-09-14
  • 通讯作者: 周新安 E-mail:guximihubei@163.com;zhouxinan@caas.cn
  • 作者简介:官晓敏,女,1989年出生,湖北宜城人,研究实习员,硕士,研究方向:国家大豆品种区域试验和春大豆育种。通信地址:430062 湖北省武汉市武昌区徐东二路2号 中国农业科学院油料作物研究所,E-mail: guximihubei@163.com
  • 基金资助:
    国家重点研发计划项目“南方大豆优质高产广适新品种培育”(2017YFD0101500)

Regional Trial Data Bulk Extraction and Aggregation Software Based on Excel VBA: Development and Application

Guan Xiaomin(), Yang Zhonglu, Chen Haifeng, Qiu Dezhen, Zhou Xin’an()   

  1. Oil Crops Research Institute, Chinese Academy of Agricultural Sciences, Wuhan 430062, Hubei, China
  • Received:2019-08-20 Revised:2019-10-19 Online:2020-09-20 Published:2020-09-14
  • Contact: Zhou Xin’an E-mail:guximihubei@163.com;zhouxinan@caas.cn

摘要:

为了快速准确完成区域试验中同一品种在不同试验点数据的汇总整理,笔者利用Excel VBA编写了此软件。软件通过循环批量打开源数据Word文件提取其中的多个表格,并将相同表格内容汇总放入指定Excel工作表中。通过计算,实现了源数据文件的后台批量打开,实现了每个文件中相同表格数据的提取,实现了相同表格中同一品种在不同试点数据的汇总。在提取表格每行数据时,通过计算每行数据在汇总表中的行号,实现了表格数据一次性提取拆分,提高了汇总效率,为后续的数据处理提供了基础。软件操作简单,运行速度快,汇总效率高。本软件能够实现区域试验数据以及具有类似特点数据的快速高效汇总,在Word和Excel数据交互方面具有较大的应用推广价值。

关键词: 区域试验, EXCEL VBA, 软件开发, Word表格数据, 数据汇总

Abstract:

To complete data aggregation of the same variety in different trial points in regional trials efficiently, the authors developed the software based on Excel VBA. The software opens the word documents with source data one by one and extracts data from multiple tables in a file by executing multiple loops, then exports the table data from the same location in different files to a specified Excel worksheet. By computing, it can open file in batches in the background and realize the extraction of the same table data in each file and the summary of the same variety data in different trial points quickly. In the process of table data extraction, it could split and extract the table data once by calculating the row number in the summary table, which satisfies the requirement of regional trial data’s bulk extraction and aggregation with high efficiency and lays a foundation for subsequent data processing. The software is easy to operate and has fast running speed and high efficiency. It is not only suitable for data summary of regional trial, but also for other similar data summary and processing. It has certain value of popularization and application in data interaction between Office Word and Excel.

Key words: Regional Trial, Excel VBA, Software Development, Table Data in Word, Aggregate Data

中图分类号: