Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5814480B2 - Data conversion system - Google Patents
[go: Go Back, main page]

JP5814480B2 - Data conversion system - Google Patents

Data conversion system Download PDF

Info

Publication number
JP5814480B2
JP5814480B2 JP2015049075A JP2015049075A JP5814480B2 JP 5814480 B2 JP5814480 B2 JP 5814480B2 JP 2015049075 A JP2015049075 A JP 2015049075A JP 2015049075 A JP2015049075 A JP 2015049075A JP 5814480 B2 JP5814480 B2 JP 5814480B2
Authority
JP
Japan
Prior art keywords
data
value
cell
columns
row
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2015049075A
Other languages
Japanese (ja)
Other versions
JP2015191665A (en
Inventor
達哉 佐古
達哉 佐古
厚 杉村
厚 杉村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OSK Co Ltd
Original Assignee
OSK Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OSK Co Ltd filed Critical OSK Co Ltd
Priority to JP2015049075A priority Critical patent/JP5814480B2/en
Publication of JP2015191665A publication Critical patent/JP2015191665A/en
Application granted granted Critical
Publication of JP5814480B2 publication Critical patent/JP5814480B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Description

本発明は,スプレッドシートで作成されたファイルのデータを,ほかのコンピュータシ
ステムで取り込むためテキストファイルに変換する際のデータ変換システムに関する。
The present invention relates to a data conversion system for converting data of a file created by a spreadsheet into a text file to be taken in by another computer system.

コンピュータを利用する際には,さまざまな場面で表計算ソフトウェアなどが使用され
ている。表計算ソフトウェアは,スプレッドシートと呼ばれるX軸方向,Y軸方向に対し
てマス目が並んでおり,そのマス目に数値や数式などを入力することで,さまざまな演算
などが可能となっている。その利便性から,シミュレーションの分野以外にも,データ管
理の用途など,広く利用されている。
When using a computer, spreadsheet software is used in various situations. Spreadsheet software has a grid in the X-axis and Y-axis directions called a spreadsheet, and various calculations can be performed by entering numerical values and mathematical formulas in the grid. . Because of its convenience, it is widely used for data management purposes in addition to the simulation field.

一方,企業などであらたに業務システムを導入する場合,従来,スプレッドシートで作
成していたファイルのデータを,業務システムに移行する必要がある。この場合,業務シ
ステムでデータの取込ができ,テキスト形式やcsv形式に手作業でデータを編集する必
要があった。たとえば,表計算ソフトウェアとしてマイクロソフト社のExcelを用い
た場合,Excelファイルに入力されているデータを選択してテキストファイルにコピ
ーをし,業務システムに移行させたくない行や列を削除した上で,業務システムに取り込
む,といった手作業が必要となる。
On the other hand, when a business system is newly introduced in a company or the like, it is necessary to transfer the file data that has been created in the spreadsheet to the business system. In this case, data could be taken in by the business system, and it was necessary to manually edit the data in text format or csv format. For example, when using Microsoft Excel as spreadsheet software, select the data entered in the Excel file, copy it to a text file, delete rows and columns that you do not want to transfer to the business system, Manual work such as importing into a business system is required.

手作業で行うことで,必要なデータを削除してしまう,あるいは不要なデータを削除で
きていない,といったこともある。また,時間も手間も要する。
There are cases where necessary data is deleted manually or unnecessary data is not deleted. It also takes time and effort.

そこで,下記特許文献1のシステムを用いることで処理の自動化が提案されている。   Then, automation of a process is proposed by using the system of the following patent document 1.

特開2011−248617号公報JP2011-248617A

特許文献1のシステムは,xmlファイルで設定された内容に従って,複数のxls形
式のファイルをcsv形式のファイルに変換し,出力するシステムである。このシステム
を用いることによって自動的にxml形式のファイルをcsv形式のファイルに変換する
ことはできる。しかしながら,取り込みたいセルの位置をxmlファイルに一つ一つ直接
記述して設定する必要がある。
The system of Patent Document 1 is a system that converts a plurality of xls format files into csv format files and outputs them in accordance with the contents set in the xml file. By using this system, an xml format file can be automatically converted into a csv format file. However, it is necessary to directly describe each cell position to be imported in the xml file.

そのため,その設定作業の手間や時間がかかる。また,その設定の際にミスが発生する
可能性は依然として存在する。
Therefore, it takes time and labor for the setting work. In addition, there is still a possibility that mistakes will occur during the setting.

また,たとえば図20に示すように,スプレッドシートで,複数の行や列にわたって,
関連するデータが入力されることも多い。図20の場合には,顧客ごとに,商品の注文数
や注文額が対応づけられている。このように,複数の行や列にわたって関連するデータが
入力されている場合に,それをテキストファイルのデータに変換する際には,顧客ごとに
,注文数や注文額を対応づけて変換しなければならない。しかし,上述の特許文献1のシ
ステムでは,一つのセルに一つのデータが対応している場合が前提となっているため,複
数の行や列にわたって,関連するデータが入力されている場合には対応することができな
い。そのため,汎用性に欠ける問題点がある。
In addition, for example, as shown in FIG.
Related data is often input. In the case of FIG. 20, the order number and order amount of the product are associated with each customer. In this way, when related data is input across multiple rows and columns, when converting it to text file data, the number of orders and the order value must be converted for each customer. I must. However, in the above-mentioned system of Patent Document 1, it is assumed that one data corresponds to one cell. Therefore, when related data is input across a plurality of rows and columns, I can't respond. Therefore, there is a problem that lacks versatility.

そこで,本発明者は上記課題に鑑み,スプレッドシートで作成されているデータのテキス
トファイルへの変換処理を自動化することで,データ変換時のミスの発生をなくすととも
に,その作業に要する手間や時間を大幅に減らすデータ変換システムを発明した。また,
複数行や複数列にわたって関連するデータが入力されている場合でも,それらを対応づけ
てデータの変換をすることができる。
In view of the above problems, the present inventor eliminates the occurrence of mistakes during data conversion by automating the conversion process of data created in a spreadsheet into a text file, and the effort and time required for the work. Invented a data conversion system that greatly reduces Also,
Even when related data is input across multiple rows and multiple columns, the data can be converted by associating them.

第1の発明は,複数行および/または複数列にわたって関連するデータが入力されたスプレッド
シートのデータをテキストファイルに変換するデータ変換システムであって,前記データ
変換システムは,前記スプレッドシートにおけるデータ変換処理の設定値の入力を受け付
ける事前設定処理部と,前記スプレッドシートにおけるデータから前記設定値における処
理対象となる範囲のデータを取得し,前記設定値に基づいて一単位となるデータ群ごとに
,前記設定値における判定対象となるセルの条件の充足の有無を判定するマトリックス分
解変換処理部と,前記条件の充足性の判定結果に応じて,前記取得したデータ群のデータ
をテキストファイルに出力するデータ出力処理部と,を有するデータ変換システムである
A first invention is a data conversion system for converting spreadsheet data into which related data is input over a plurality of rows and / or a plurality of columns into a text file, wherein the data conversion system converts data in the spreadsheet. A pre-setting processing unit that accepts input of setting values for processing, and obtains data in a range to be processed in the setting values from the data in the spreadsheet, and for each data group that is a unit based on the setting values, A matrix decomposition conversion processing unit that determines whether or not a condition of a cell to be determined in the set value is satisfied, and outputs the data of the acquired data group to a text file according to the determination result of the satisfaction of the condition And a data output processing unit.

スプレッドシートでは、複数行,複数列にわたって,関連するデータがひとまとまりの
データ(一群のデータ)として入力されている場合もある。その場合,関連するデータは
対応付けてテキストファイルのデータへの変換処理を行わなければならない。そこで,本
発明のように処理を実行することで,一単位となるデータ群ごとにテキストファイルのデ
ータへの変換処理の有無を判定した上で,必要なデータのみを,自動的に変換することが
できる。そのため,データ変換時のミスが発生しなくなるとともに,作業時間や作業の手
間を大幅に減らすことができる。
In a spreadsheet, related data may be input as a group of data (a group of data) across multiple rows and multiple columns. In that case, the related data must be associated with and converted to text file data. Therefore, by executing processing as in the present invention, it is possible to automatically convert only necessary data after determining whether or not conversion processing to text file data is performed for each data group as a unit. Can do. As a result, mistakes during data conversion do not occur, and work time and labor can be greatly reduced.

上述の発明において,前記マトリックス分解変換処理部は,前記設定値に基づいて,前
記スプレッドシートから項目名を抽出して行方向に配置し,前記スプレッドシートにおけ
るデータから前記設定値における処理対象となる範囲のデータを取得し,前記設定値にお
ける対応関係に基づいて,一単位となるデータ群ごとに,前記設定値における判定対象と
なるセルの条件の充足の有無を判定し,前記データ出力処理部は,前記条件の充足性の判
定結果に応じて,前記取得したデータ群のデータを,前記配置した項目名に対応付けてテ
キストファイルに出力する,データ変換システムのように構成することができる。
In the above-described invention, the matrix decomposition conversion processing unit extracts item names from the spreadsheet based on the set values and arranges them in a row direction, and is processed in the set values from the data in the spreadsheet. The data output processing unit obtains data of a range, determines whether or not a condition of a cell to be determined in the set value is satisfied for each data group as a unit based on the correspondence in the set value, and the data output processing unit Can be configured as a data conversion system that outputs data of the acquired data group in association with the arranged item names to a text file in accordance with the determination result of the satisfaction of the condition.

複数行,複数列に関連づけられたデータが入力されたスプレッドシートの場合,さまざ
まな処理形態があるが,上記のように処理を実行することで,1レコードが1行になった
テキストファイルのデータへの変換処理を簡便に実現することができる。
In the case of spreadsheets that have been input with data associated with multiple rows and multiple columns, there are various types of processing, but by executing the processing as described above, data in a text file that has one record as one row The conversion process to can be easily realized.

第1の発明のデータ変換システムは,本発明のデータ変換プログラムをコンピュータに
読み込み実行することで実現できる。すなわち,複数行および/または複数列にわたって関連する
データが入力されたスプレッドシートのデータをテキストファイルに変換するデータ変換
プログラムであって,前記データ変換プログラムは,コンピュータを,前記スプレッドシ
ートにおけるデータ変換処理の設定値の入力を受け付ける事前設定処理部,前記スプレッ
ドシートにおけるデータから前記設定値における処理対象となる範囲のデータを取得し,
前記設定値に基づいて一単位となるデータ群ごとに,前記設定値における判定対象となる
セルの条件の充足の有無を判定するマトリックス分解変換処理部,前記条件の充足性の判
定結果に応じて,前記取得したデータ群のデータをテキストファイルに出力するデータ出
力処理部,として機能させるデータ変換プログラムである。
The data conversion system of the first invention can be realized by reading the data conversion program of the present invention into a computer and executing it. That is, a data conversion program for converting spreadsheet data into which related data is input across a plurality of rows and / or columns into a text file, the data conversion program comprising: A pre-setting processing unit that accepts input of setting values, and obtains data in a range to be processed in the setting values from the data in the spreadsheet;
For each data group that is a unit based on the set value, a matrix decomposition conversion processing unit that determines whether or not the condition of the cell to be determined in the set value is satisfied, according to the determination result of the satisfaction of the condition , A data conversion program that functions as a data output processing unit that outputs data of the acquired data group to a text file.

これらの発明のデータ変換プログラムを用いることで,スプレッドシートの保存場所や
作成場所には依存せず,たとえばクラウド上に保存されているスプレッドシートであって
も,データ変換処理を実行することもできる。
By using the data conversion program of these inventions, data conversion processing can be executed even for spreadsheets stored on the cloud, for example, regardless of the storage location or creation location of the spreadsheet. .

また,このプログラムにより実現されるデータ取込システムをネットワーク上のサーバ
で動作させ,業務システムが,同サーバ上または当該ネットワークに接続する異なるサー
バ上で動作するようにすることができる。これによりネットワークを介してスプレッドシ
ートのデータ取込みができるので,たとえばモバイル端末等で作成されたデータを,ネッ
トワークを介して業務システムに取り込ませることができる。
In addition, the data capturing system realized by this program can be operated on a server on the network, and the business system can be operated on the same server or a different server connected to the network. As a result, the spreadsheet data can be taken in via the network, so that data created by, for example, a mobile terminal can be taken into the business system via the network.

本発明のデータ変換システムによって,スプレッドシートで作成されているデータのテ
キストファイルのデータへの変換処理を自動化することができる。それによって,データ
変換時のミスの発生をなくすとともに,その作業に要する手間や時間を大幅に減らすこと
が可能となる。また,複数の行や列に関連するデータが入力されている場合であっても,
それらを一つのデータ群として処理し,テキストファイルのデータへの変換処理が実行で
きる。
The data conversion system of the present invention can automate the process of converting data created in a spreadsheet into text file data. As a result, errors during data conversion can be eliminated, and the labor and time required for the work can be greatly reduced. Even if data related to multiple rows and columns is entered,
These can be processed as a single data group and converted into text file data.

本発明のデータ変換システムの構成の一例を模式的に示す図である。It is a figure which shows typically an example of a structure of the data conversion system of this invention. 本発明のデータ交換システムにおける変換処理部の構成の一例を模式的に示す図である。It is a figure which shows typically an example of a structure of the conversion process part in the data exchange system of this invention. 本発明のデータ交換システムを実現するコンピュータのハードウェア構成の一例を模式的に示す図である。It is a figure which shows typically an example of the hardware constitutions of the computer which implement | achieves the data exchange system of this invention. 本発明のデータ交換システムの処理プロセスの一例を模式的に示すフローチャートである。It is a flowchart which shows typically an example of the process of the data exchange system of this invention. データ変換処理の処理プロセスの一例を模式的に示すフローチャートである。It is a flowchart which shows typically an example of the process of a data conversion process. 取込設定画面の一例を模式的に示す図である。It is a figure which shows an example of an acquisition setting screen typically. テキスト取込画面の一例を模式的に示す図である。It is a figure which shows an example of a text taking-in screen typically. テキスト変換として選択されたスプレッドシートの一例を模式的に示す図である。It is a figure which shows typically an example of the spreadsheet selected as text conversion. 変数rangeDataに値を格納させた場合を模式的に示す図である。It is a figure which shows typically the case where a value is stored in variable rangeData. 変数excludeFlgColDataを格納させた場合を模式的に示す図である。It is a figure which shows typically the case where the variable excludeFlgColData is stored. 変数excludeFlgRowDataを格納させた場合を模式的に示す図である。It is a figure which shows typically the case where the variable excludeFlgRowData is stored. 変数excludeFlgColDataに格納した値に対して判定を行い,変数excludeColFlgListに「TRUE」または「FALSE」の値を格納する処理を模式的に示す図である。It is a figure which shows typically the process which determines with respect to the value stored in the variable excludeFlgColData, and stores the value of "TRUE" or "FALSE" in the variable excludeColFlgList. 変数excludeFlgRowDataに格納した値に対して判定を行い,変数excludeRowFlgListに「TRUE」または「FALSE」の値を格納する処理を模式的に示す図である。It is a figure which shows typically the process which determines with respect to the value stored in the variable excludeFlgRowData, and stores the value of "TRUE" or "FALSE" in the variable excludeRowFlgList. データ生成処理部の処理を模式的に示す図である。It is a figure which shows typically the process of a data generation process part. 出力するテキストファイルの一例を模式的に示す図である。It is a figure which shows an example of the text file to output typically. 実施例3におけるデータ変換システムのシステム構成の一例を模式的に示す図である。FIG. 10 is a diagram schematically illustrating an example of a system configuration of a data conversion system according to a third embodiment. データ変換して出力したテキストファイルを,業務システムに取り込む一例を模式的に示す図である。It is a figure which shows typically an example which takes in the text file output after data conversion to a business system. 実施例4におけるデータ変換システムのシステム構成の一例を模式的に示す図である。FIG. 10 is a diagram schematically illustrating an example of a system configuration of a data conversion system according to a fourth embodiment. 実施例4におけるデータ変換システムの処理プロセスの一例を模式的に示すフローチャートである。10 is a flowchart schematically illustrating an example of a processing process of a data conversion system according to a fourth embodiment. 内容値が縦に2つの場合のスプレッドシートの一例を模式的に示す図である。It is a figure which shows typically an example of a spreadsheet in case a content value is two vertically. 設定値の一例を模式的に示す図である。It is a figure which shows an example of a setting value typically. 設定値入力画面の一例を模式的に示す図である。It is a figure which shows an example of a setting value input screen typically. スプレッドシートから項目の見出しを取得した場合の一例を模式的に示す図である。It is a figure which shows typically an example at the time of acquiring the heading of an item from a spreadsheet. 見出し部分をテキストファイルに出力する処理の一例を模式的に示す図である。It is a figure which shows typically an example of the process which outputs a headline part to a text file. 列のローマ字と数字との対応表の一例を模式的に示す図である。It is a figure which shows typically an example of the correspondence table of the Roman letter and number of a row | line | column. 設定値における内容値範囲から,データ範囲を取得する処理の一例を模式的に示す図である。It is a figure which shows typically an example of the process which acquires a data range from the content value range in a setting value. データ群の算出方法の一例を模式的に示す図である。It is a figure which shows typically an example of the calculation method of a data group. データ群の取得処理の一例を模式的に示す図である。It is a figure which shows an example of the acquisition process of a data group typically. スプレッドシートを用いて,データ群の範囲のデータを取得する処理の一例を模式的に示す図である。It is a figure which shows typically an example of the process which acquires the data of the range of a data group using a spreadsheet. 引数X=0,引数Y=0のときに,取得したデータ群のデータを出力したテキストファイルの一例を模式的に示す図である。It is a figure which shows typically an example of the text file which output the data of the acquired data group when the argument X = 0 and the argument Y = 0. 引数X=1,引数Y=0のときに,取得したデータ群のデータを出力したテキストファイルの一例を模式的に示す図である。It is a figure which shows typically an example of the text file which output the data of the acquired data group when the argument X = 1 and the argument Y = 0. 図20のスプレッドシートに実施例4の処理を実行することで出力したテキストファイルの一例を模式的に示す図である。It is a figure which shows typically an example of the text file output by performing the process of Example 4 on the spreadsheet of FIG. 内容値が1つの場合のスプレッドシートの一例を模式的に示す図である。It is a figure which shows typically an example of a spreadsheet in case the content value is one. 図33の場合における設定値入力画面の一例を模式的に示す図である。It is a figure which shows typically an example of the setting value input screen in the case of FIG. 図33のスプレッドシートに対して,図34の設定値に基づいて,実施例4の処理を実行することで出力したテキストファイルの一例を模式的に示す図である。It is a figure which shows typically an example of the text file output by performing the process of Example 4 with respect to the spreadsheet of FIG. 33 based on the setting value of FIG. 内容値が横に2つの場合のスプレッドシートの一例を模式的に示す図である。It is a figure which shows typically an example of a spreadsheet in case a content value is two horizontally. 図36の場合における設定値入力画面の一例を模式的に示す図である。It is a figure which shows typically an example of the setting value input screen in the case of FIG. 図36のスプレッドシートに対して,図37の設定値に基づいて,実施例4の処理を実行することで出力したテキストファイルの一例を模式的に示す図である。FIG. 38 is a diagram schematically illustrating an example of a text file output by executing the processing of the fourth embodiment on the spreadsheet of FIG. 36 based on the setting values of FIG. 内容値が縦横複数の場合のスプレッドシートの一例を模式的に示す図である。It is a figure which shows typically an example of a spreadsheet in case a content value is vertical and horizontal. 図39の場合における設定値入力画面の一例を模式的に示す図である。It is a figure which shows typically an example of the setting value input screen in the case of FIG. 図39のスプレッドシートに対して,図40の設定値に基づいて,実施例4の処理を実行することで出力したテキストファイルの一例を模式的に示す図である。FIG. 41 is a diagram schematically illustrating an example of a text file output by executing the processing of the fourth embodiment on the spreadsheet of FIG. 39 based on the setting values of FIG.

本発明のデータ変換システム1のシステム構成の一例を図1に,データ変換システム1
における変換処理部12の一例を図2に模式的に示す。
An example of the system configuration of the data conversion system 1 of the present invention is shown in FIG.
An example of the conversion processing unit 12 is schematically shown in FIG.

本発明のデータ変換システム1は,データ変換を行うことを所望するユーザが利用する
コンピュータで機能する。コンピュータは,プログラムの演算処理を実行するCPUなど
の演算装置70と,情報を記憶するRAMやハードディスクなどの記憶装置71と,ディ
スプレイなどの表示装置72と,キーボードやポインティングデバイス(マウスやテンキ
ーなど)などの入力装置73と,演算装置70の処理結果や記憶装置71に記憶する情報
をインターネットやLANなどのネットワークを介して送受信する通信装置74とを有し
ている。
The data conversion system 1 of the present invention functions with a computer used by a user who desires to perform data conversion. The computer includes an arithmetic device 70 such as a CPU for executing arithmetic processing of a program, a storage device 71 such as a RAM and a hard disk for storing information, a display device 72 such as a display, a keyboard and a pointing device (such as a mouse and a numeric keypad). And a communication device 74 that transmits and receives processing results of the arithmetic device 70 and information stored in the storage device 71 via a network such as the Internet or a LAN.

なお,図1,図2では各種コンピュータが一台の場合を示したが,複数台にその機能が
分散配置され,実現されても良い。本発明における各手段は,その機能が論理的に区別さ
れているのみであって,物理上あるいは事実上は同一の領域を為していても良い。
Although FIGS. 1 and 2 show the case where the various computers are one, the functions may be distributed and implemented in a plurality of computers. Each means in the present invention is only logically distinguished in function, and may be physically or virtually the same area.

本発明のデータ変換システム1は,たとえば企業などにおいて,従前,Excelなど
の表計算ソフトウェアのスプレッドシートで作成されたデータを,当該企業が利用する業
務システムに取り込む際に,そのデータをテキストファイルとして出力するものである。
その結果,容易に業務システムに取込可能となる。
The data conversion system 1 according to the present invention, for example, in a company or the like, when the data previously created with a spreadsheet of spreadsheet software such as Excel is imported into a business system used by the company as a text file. Output.
As a result, it can be easily imported into the business system.

業務システムとは,企業の業務遂行を管理するためのコンピュータシステムである。業
務システムとしては,さまざまなシステムがあり,その限定はないが,たとえば,人事,
給与,財務会計,販売,購買等などを行うためのコンピュータシステムが一例としてあげ
られる。
A business system is a computer system for managing business execution of a company. There are various business systems, including, but not limited to, HR,
An example is a computer system for performing salary, financial accounting, sales, purchasing, and the like.

データ変換システム1は,取込範囲入力受付処理部10と対象ファイル入力受付処理部
11と変換処理部12とを有する。
The data conversion system 1 includes a capture range input reception processing unit 10, a target file input reception processing unit 11, and a conversion processing unit 12.

取込範囲入力受付処理部10は,データの変換対象となるスプレッドシートにおいて,
どの範囲をテキストファイルにデータ変換するか,その範囲の入力を受け付ける。たとえ
ば図6における取込設定画面のうち,取込方法,対象となるシート,取込範囲(開始位置
と終了位置),除外行および除外列の指定,などの入力を受け付ける。
The import range input acceptance processing unit 10 is configured to perform the conversion on the spreadsheet to be converted.
Accept which range to convert to text file and input the range. For example, on the acquisition setting screen in FIG. 6, inputs such as an acquisition method, a target sheet, an acquisition range (start position and end position), an exclusion row and an exclusion column are accepted.

「取込方法」は,スプレッドシートは複数のシートからなることが多いので,どのシー
トを対象とするかを選択するものである。すなわち,指定したシートのみを取り込むか,
指定したシートを除外して取り込むか,すべてを取り込むか,の指定を受け付ける。また
,「シートの指定」は,取込方法で「指定シートを取込」または「指定シートを除外」を
選択した場合,その対象となるシートを特定するものである。「取込範囲」とは,シート
のどの範囲のデータを取り込むか,の指定を受け付けるものである。図6の場合,開始位
置として「A2」,終了位置として「E7」が指定されているので,「A2」のセルと,
「E7」のセルとで構成される範囲を指定することとなる。なお,「セル」とは,スプレ
ッドシートを構成する行方向,列方向に並んでいる「マス目」をいう。
The “loading method” is to select which sheet is the target because the spreadsheet is often composed of a plurality of sheets. In other words, only the specified sheet is imported,
Accepts the designation of whether to exclude the specified sheet or to import all. “Specify sheet” specifies the target sheet when “load specified sheet” or “exclude specified sheet” is selected as the loading method. “Acquisition range” accepts designation of which range of data is to be captured on the sheet. In the case of FIG. 6, since “A2” is designated as the start position and “E7” is designated as the end position, the cell “A2”
A range composed of the cell “E7” is designated. Note that “cells” refer to “cells” arranged in the row and column directions constituting the spreadsheet.

除外行,除外列とは,その行,列を取り込むか否かを判定する基準となる列や行である
。図6では,除外行として「A列」,除外列として「1行目」の指定を受け付けている。
そのため,「A列」において,データがあるか(空白(NULL)ではないか),あるい
は所定値(たとえば「0」)であるか,を判定し,データがある,または所定値ではない
,と判定できる場合には,その行を取り込む対象とする。一方,データがない(NULL
である)または所定値である場合には,その行を取込対象から除外する。除外列について
も同様に,「1行目」において,データがあるか(空白(NULL)ではないか),ある
いは所定値(たとえば「0」)であるか,を判定し,データがある,または所定値ではな
い,と判定できる場合には,その列を取り込む対象とする。一方,データがない(NUL
Lである)または所定値である場合には,その列を取込対象から除外する。
Excluded rows and excluded columns are columns and rows that serve as a reference for determining whether or not to include the rows and columns. In FIG. 6, designation of “A column” as an excluded row and “first row” as an excluded column are accepted.
Therefore, it is determined whether or not there is data in column “A” (whether it is blank (NULL)) or a predetermined value (for example, “0”), and there is data or is not a predetermined value. If it can be determined, the line is taken into the target. On the other hand, there is no data (NULL
If the value is a predetermined value, the line is excluded from the target to be captured. Similarly, in the “excluded column”, it is determined whether there is data in the “first row” (whether it is not blank (NULL)) or a predetermined value (for example, “0”), and there is data, or If it can be determined that the value is not the predetermined value, the column is included. On the other hand, there is no data (NUL
L) or a predetermined value, the column is excluded from the capture target.

また,取込みを行った行または列について取込日時情報を記憶し,つぎに取込みが行わ
れる場合,その取込日時情報を取込除外情報とするようにしてもよい。このようにするこ
とで,行や列を追加して運用するようなスプレッドシートであっても,前回取り込んだ分
を除いて自動的に取り込むことができる。
Further, the acquisition date / time information may be stored for the row or column where the acquisition is performed, and when the next acquisition is performed, the acquisition date / time information may be used as the exclusion information. In this way, even a spreadsheet that is operated by adding rows and columns can be automatically imported except for the previously imported one.

対象ファイル入力受付処理部11は,データの変換対象となるスプレッドシートの指定
を受け付ける。たとえば図7におけるテキスト取込画面のうち,スプレッドシートの記憶
場所の指定を受け付けることで,取込対象となるスプレッドシートの指定を受け付ける。
The target file input acceptance processing unit 11 accepts designation of a spreadsheet to be converted into data. For example, in the text capture screen shown in FIG. 7, the specification of the spreadsheet storage location is accepted by accepting the specification of the spreadsheet storage location.

変換処理は,対象ファイル入力受付処理部11で指定されたスプレッドシートに対して
,取込範囲入力受付処理部10で指定された各条件に従って,変換処理を実行し,変換後
のデータをテキストファイルでデータとして出力する。図7のテキスト取込画面の「テキ
スト変換」が実行されることで,変換処理を実行する。
The conversion process executes the conversion process on the spreadsheet specified by the target file input reception processing unit 11 according to each condition specified by the import range input reception processing unit 10, and converts the converted data into a text file. To output as data. Conversion processing is executed by executing “text conversion” on the text capture screen of FIG.

変換処理部12は,取込範囲データ抽出処理部120と取込範囲データ記憶部121と
判定対象データ抽出処理部122と判定対象データ記憶部123と除外対象データ判定処
理部124と除外対象データ記憶部125とデータ生成処理部126とデータ出力処理部
127とを有する。
The conversion processing unit 12 includes a capture range data extraction processing unit 120, a capture range data storage unit 121, a determination target data extraction processing unit 122, a determination target data storage unit 123, an exclusion target data determination processing unit 124, and an exclusion target data storage. Unit 125, data generation processing unit 126, and data output processing unit 127.

取込範囲データ抽出処理部120は,対象ファイル入力受付処理部11で入力を受け付
けた取込対象となるスプレッドシートについて,取込範囲入力受付処理部10で入力を受
け付けた,指定されたシートの指定された取込範囲のセルの値を,所定の変数rangeData
に格納し,取込範囲データ記憶部121に記憶させる。なお,取込範囲内に結合セルを検
出した場合,格納の際に空白となったセルすべてに結合セルの値を複製し,データ取込み
を行うようにしてもよい。また,取込範囲外の情報(取込範囲外のセルの値,シート名,
ファイル名)を取込むようにしてもよい。例えば,取込対象となるスプレッドシートにあ
らかじめ取込範囲が入力されており,取込範囲の指定に代えて,当該入力されている取込
範囲を取得するようにしてもよい。取込対象となるスプレッドシートにあらかじめ取込範
囲が入力されているので,取込範囲を間違えることなく簡単に取り込める。
The capture range data extraction processing unit 120 receives the input of the specified sheet whose input has been received by the capture range input reception processing unit 10 for the spreadsheet to be captured that has been input by the target file input reception processing unit 11. The cell value in the specified capture range is set to the given variable rangeData
And stored in the capture range data storage unit 121. If a merged cell is detected within the capture range, the merged cell value may be copied to all cells that are blank at the time of storage, and data capture may be performed. Also, information outside the capture range (cell values outside the capture range, sheet name,
(File name) may be imported. For example, a capture range may be input in advance in a spreadsheet to be captured, and the input capture range may be acquired instead of specifying the capture range. Since the import range is entered in advance in the spreadsheet to be imported, it can be easily imported without making a mistake in the import range.

取込範囲データ記憶部121は,取込範囲データ抽出処理部120で格納した所定の変
数rangeDataを記憶する。取込範囲データ記憶部121に記憶する変数rangeDataの一例を
図9に模式的に示す。
The capture range data storage unit 121 stores the predetermined variable rangeData stored by the capture range data extraction processing unit 120. An example of the variable rangeData stored in the capture range data storage unit 121 is schematically shown in FIG.

判定対象データ抽出処理部122は,取込対象となるスプレッドシートから,取込範囲
入力受付処理部10で入力を受け付けた,除外行,除外列のセルの値を読み込み,変数ex
cludeFlgColData(除外行の場合),excludeFlgRowData(除外列の場合)に格納し,判定
対象データ記憶部123に記憶させる。
The determination target data extraction processing unit 122 reads the cell values of the excluded row and the excluded column that have been input by the acquisition range input reception processing unit 10 from the spreadsheet to be acquired, and the variable ex
It is stored in cludeFlgColData (in the case of an excluded row) and excludeFlgRowData (in the case of an excluded column), and is stored in the determination target data storage unit 123.

判定対象データ記憶部123は,判定対象データ抽出処理部122で格納した所定の変
数excludeFlgColData,excludeFlgRowDataを記憶する。判定対象データ記憶部123に記
憶する変数excludeFlgColDataの一例を図10に,変数excludeFlgRowDataの一例を図11
に模式的に示す。
The determination target data storage unit 123 stores the predetermined variables excludeFlgColData and excludeFlgRowData stored by the determination target data extraction processing unit 122. An example of the variable excludeFlgColData stored in the determination target data storage unit 123 is shown in FIG. 10, and an example of the variable excludeFlgRowData is shown in FIG.
Is shown schematically.

除外対象データ判定処理部124は,判定対象データ記憶部123に記憶した変数excl
udeFlgColData,excludeFlgRowDataに基づいて,どの列が除外対象になるのか,どの行が
除外対象になるのかを判定する。除外対象になるか否かは,その行またはセルの値が空白
(NULL)であるか,所定値(たとえば0)がであるか,などに基づいて判定する。除外対
象にならない場合には「TRUE」を,除外対象になる場合には「FALSE」を,変数
excludeColFlgList,excludeRowFlgListに値として格納し,除外対象データ記憶部125
に記憶させる。
The exclusion target data determination processing unit 124 uses the variable excl stored in the determination target data storage unit 123.
Based on udeFlgColData and excludeFlgRowData, determine which columns are excluded and which rows are excluded. Whether or not to be excluded is determined based on whether the value of the row or cell is blank (NULL) or a predetermined value (for example, 0). “TRUE” if not subject to exclusion, “FALSE” if subject to exclusion, variable
Stored as a value in excludeColFlgList and excludeRowFlgList, and excluded data storage unit 125
Remember me.

除外対象データ記憶部125は,除外対象データ判定処理部124で格納した所定の変
数excludeColFlgList,excludeRowFlgListを記憶する。除外対象データ記憶部125に記
憶する変数excludeColFlgListの一例を図12に,変数excludeRowFlgListの一例を図13
に模式的に示す。
The exclusion target data storage unit 125 stores the predetermined variables excludeColFlgList and excludeRowFlgList stored in the exclusion target data determination processing unit 124. An example of the variable excludeColFlgList stored in the exclusion target data storage unit 125 is shown in FIG. 12, and an example of the variable excludeRowFlgList is shown in FIG.
Is shown schematically.

データ生成処理部126は,取込範囲データ記憶部121に記憶させた変数rangeData
の行または列のうち,除外対象データ記憶部125に記憶させた変数excludeColFlgList
,excludeRowFlgListにおいて「TRUE」の値が入っている行または列を抽出し,変数d
tに格納させることで,データ生成処理を実行する。この処理によって,変数dtについて
は,除外対象となる行または列(「FALSE」の行または列)を除外してデータを生成
することができる。
The data generation processing unit 126 uses the variable rangeData stored in the capture range data storage unit 121.
Variable excludeColFlgList stored in the exclusion target data storage unit 125 among the rows or columns of
, Extract the row or column that contains the value of "TRUE" in excludeRowFlgList, variable d
The data generation process is executed by storing in t. With this process, the variable dt can be generated by excluding the row or column to be excluded (the row or column of “FALSE”).

データ出力処理部127は,データ生成処理部126で生成した変数dtに基づいて,テ
キストファイルを出力する。
The data output processing unit 127 outputs a text file based on the variable dt generated by the data generation processing unit 126.

以上のような処理を変換処理部12で実行することで,変換対象となるスプレッドシー
トのデータをテキストファイルに出力することができる。
By executing the above processing in the conversion processing unit 12, the spreadsheet data to be converted can be output to a text file.

つぎに本発明のデータ変換システム1の処理プロセスの一例を図4および図5のフロー
チャートを用いて説明する。
Next, an example of the processing process of the data conversion system 1 of the present invention will be described with reference to the flowcharts of FIGS.

データ変換システム1を利用してスプレッドシートのデータを変換することを所望する
ユーザは,そのコンピュータにおいて所定の操作をすることで,図6に示す取込設定画面
を起動する。
A user who desires to convert spreadsheet data using the data conversion system 1 activates the capture setting screen shown in FIG. 6 by performing a predetermined operation on the computer.

起動後,ユーザは,取込設定画面に対して,それぞれの情報を入力する。ここでは図6
に示す取込範囲等の情報が入力されたとする。入力された情報は,取込範囲入力受付処理
部10で受け付ける(S100)。
After startup, the user inputs each information on the capture setting screen. Here, FIG.
Suppose that information such as the capture range shown in is input. The input information is received by the capture range input reception processing unit 10 (S100).

たとえば,シートとして「2013年4月,2013年4月_2」の各シートの取り込
みと,取込範囲として「A2」から「E7」のセルを範囲とし,除外行について「A列」
を,除外列について「1行目」を判定対象の列,行とすることの指定を受け付ける。
For example, each sheet of “April 2013 and April 2013_2” is imported as a sheet, and cells “A2” to “E7” are included as an acquisition range, and “A column” is set for an excluded row.
For the excluded column is accepted as the determination target column and row.

このようにして取り込み設定画面でスプレッドシートの取り込み範囲等の情報の入力を
取込範囲入力受付処理部10で受け付けると,ユーザは所定の操作を行うことで,テキス
ト取込画面(図7)を起動する。
In this way, when the input of the information such as the spreadsheet import range is received by the capture range input reception processing unit 10 on the capture setting screen, the user performs a predetermined operation to display the text capture screen (FIG. 7). to start.

そして,図7に示すように,テキスト取込画面で,対象とするスプレッドシートが記憶
されているフォルダ,ファイル名を指定し,その入力を対象ファイル入力受付処理部11
で受け付ける(S110)。
Then, as shown in FIG. 7, the folder and file name in which the target spreadsheet is stored are specified on the text capture screen, and the input is input to the target file input reception processing unit 11.
(S110).

なお,ファイル名としてはワイルドカード(図7ではワイルドカードとして「*」(ア
スタリスク)を用いたが,「?」(エクスクラメーションマーク)など任意のワイルドカ
ードを利用できる)を指定しても良い。その場合には,ワイルドカードに相当する部分に
ついては,それに合致するすべてのファイルが対象として指定されたこととなる。
As a file name, a wild card (“*” (asterisk) is used as a wild card in FIG. 7, but any wild card such as “?” (Exclamation mark) may be used). . In that case, for the portion corresponding to the wild card, all files that match it are designated as targets.

そして,「テキスト変換」が押下されると,それを変換処理部12で受け付け,変換処
理の開始入力が受け付けられたことを判定し(S200),変換処理を開始する。
Then, when “text conversion” is pressed, it is received by the conversion processing unit 12, it is determined that the start input of the conversion process has been received (S 200), and the conversion process is started.

たとえばテキスト変換として選択されたスプレッドシートが,図8(a)および(b)
であったとする。図8(a)が「2013年4月」のシート,図8(b)が「2013年
4月_2」のシートである。なお,データ変換処理は,同じ処理が行われるので,以下で
は図8(a)のシートに対して処理を行う場合を説明する。
For example, the spreadsheet selected for text conversion is shown in FIGS. 8 (a) and 8 (b).
Suppose that FIG. 8A shows the sheet “April 2013”, and FIG. 8B shows the sheet “April 2013_2”. Since the same processing is performed as the data conversion processing, a case where processing is performed on the sheet in FIG. 8A will be described below.

変換処理が開始されると,S110で指定されたスプレッドシートの記憶場所から,ス
プレッドシートを読み出し,S100で指定された条件に従って,データを読み込む。こ
の際に,複数のスプレッドシート,複数のシートが指定されている場合には,「スプレッ
ドシートの数×シートの数」だけデータの読み込み処理が実行される。
When the conversion process is started, the spreadsheet is read from the spreadsheet storage location specified in S110, and the data is read according to the conditions specified in S100. At this time, when a plurality of spreadsheets and a plurality of sheets are designated, the data reading process is executed by “the number of spreadsheets × the number of sheets”.

具体的には,まず取込対象となるシート「2013年4月」の取込範囲「A2」から「
E7」の範囲内のセルの値を取込範囲データ抽出処理部120が抽出し(S210),内
部的な変数rangeDataに格納する。変数rangeDataの値は,取込範囲データ記憶部121に
記憶される。図9に変数rangeDataに値を格納させた場合を模式的に示す。
Specifically, first, from the acquisition range “A2” of the sheet “April 2013” to be acquired,
The range data extraction processing unit 120 extracts the value of the cell in the range of “E7” (S210) and stores it in the internal variable rangeData. The value of the variable rangeData is stored in the capture range data storage unit 121. FIG. 9 schematically shows a case where a value is stored in the variable rangeData.

つぎに除外行および除外列として指定された行または列の値を判定対象データ抽出処理
部122が抽出し(S220),内部的な変数excludeFlgColData(除外行の場合),exc
ludeFlgRowData(除外列の場合)に格納する。変数excludeFlgColData,excludeFlgRowDa
taの各値は,判定対象データ記憶部123に記憶される。図10に変数excludeFlgColDat
aを格納させた場合を,図11に変数excludeFlgRowDataを格納させた場合を模式的に示す
Next, the determination target data extraction processing unit 122 extracts the value of the row or column specified as the excluded row and the excluded column (S220), the internal variable excludeFlgColData (in the case of the excluded row), and exc
Store in ludeFlgRowData (for excluded columns). Variable excludeFlgColData, excludeFlgRowDa
Each value of ta is stored in the determination target data storage unit 123. Figure 10 shows the variable excludeFlgColDat
FIG. 11 schematically shows a case where the variable excludeFlgRowData is stored when a is stored.

判定対象データ抽出処理部122は,行を除外するかの判定は,「A列」の値に基づい
て判定するので,「A列」の値を抽出し,変数excludeFlgColDataに格納する。一方,列
を除外するかの判定は,「1行目」の値に基づいて判定するので,「1行目」の値を抽出
し,変数excludeFlgRowDataに格納する。
Since the determination target data extraction processing unit 122 determines whether to exclude a row based on the value of “A column”, the value of “A column” is extracted and stored in the variable excludeFlgColData. On the other hand, whether or not to exclude a column is determined based on the value of “first row”. Therefore, the value of “first row” is extracted and stored in the variable excludeFlgRowData.

つぎに除外対象データ判定処理部124は,S210で格納した変数rangeDataの行数
と列数をカウントする(S230)。図9の場合には,行数を6行,列数を5行としてカ
ウントすることとなる。
Next, the exclusion target data determination processing unit 124 counts the number of rows and the number of columns of the variable rangeData stored in S210 (S230). In the case of FIG. 9, the number of rows is counted as 6 and the number of columns is counted as 5.

そして,除外対象データ判定処理部124は,判定対象データ記憶部123に記憶した
変数excludeFlgColData,excludeFlgRowDataについて,どの列が除外対象になるのか,ど
の行が除外対象になるのかを判定する(S240)。判定した結果は,内部的な変数excl
udeColFlgList,excludeRowFlgListに格納し,除外対象データ記憶部125に記憶させる
Then, the exclusion target data determination processing unit 124 determines which column is the exclusion target and which row is the exclusion target for the variables excludeFlgColData and excludeFlgRowData stored in the determination target data storage unit 123 (S240). The result of judgment is an internal variable excl
The data is stored in udeColFlgList and excludeRowFlgList and stored in the exclusion target data storage unit 125.

列については,変数excludeFlgColDataに格納した値のうち,空白(NULL),ある
いは「0」などの所定値であるかを判定し,空白または所定値でない場合には判定結果を
格納する内部的な変数excludeColFlgListに「TRUE」を,空白または所定値である場
合には変数excludeColFlgListに「FALSE」を値として格納する。この処理は,S2
30でカウントした列数分だけ繰り返す。すなわち,S230では5列とカウントしてい
るので,変数excludeFlgColDataに格納した値について,順番に5回,値の判定処理を行
うこととなる。図12に,変数excludeFlgColDataに格納した値に対して判定を行い,変
数excludeColFlgListに「TRUE」または「FALSE」の値を格納する処理を模式的
に示す。
For a column, an internal variable that determines whether the value stored in the variable excludeFlgColData is a blank (NULL) or a predetermined value such as “0”, and if it is blank or not a predetermined value, an internal variable that stores the determination result “TRUE” is stored in excludeColFlgList, and “FALSE” is stored as a value in variable excludeColFlgList when it is blank or a predetermined value. This process is S2
Repeat for the number of columns counted at 30. That is, since S230 counts as five columns, the value determination process is performed five times in order for the value stored in the variable excludeFlgColData. FIG. 12 schematically shows a process for determining the value stored in the variable excludeFlgColData and storing the value “TRUE” or “FALSE” in the variable excludeColFlgList.

変数excludeFlgColDataの場合,1列目に「顧客コード」,3列目に「商品コード」,
5列目に「注文数」の値が入っており,それ以外が「空白」であるので,変数excludeCol
FlgListのうち,Item(0),Item(2),Item(4)に「TRUE」が,Item(1),Item(3)に「F
ALSE」が値として格納されることとなる。
In the case of the variable excludeFlgColData, “customer code” in the first column, “product code” in the third column,
Since the value of “Order quantity” is entered in the fifth column and the others are “blank”, the variable excludeCol
In the FlgList, “TRUE” is assigned to Item (0), Item (2), Item (4), and “F” is assigned to Item (1), Item (3).
ALSE "is stored as a value.

また,行については,変数excludeFlgRowDataに格納した値のうち,空白(NULL)
,あるいは「0」などの所定値であるかを判定し,空白または所定値でない場合には判定
結果を格納する内部的な変数excludeRowFlgListに「TRUE」を,空白または所定値で
ある場合には変数excludeRowFlgListに「FALSE」を値として格納する。この処理は
,S230でカウントした行数分だけ繰り返す。すなわち,S230では6行とカウント
しているので,変数excludeFlgRowDataに格納した値について,順番に6回,値の判定処
理を行うこととなる。図13に,変数excludeFlgRowDataに格納した値に対して判定を行
い,変数excludeRowFlgListに「TRUE」または「FALSE」の値を格納する処理を
模式的に示す。
For the row, the value stored in the variable excludeFlgRowData is blank (NULL).
Or if it is a predetermined value such as “0”, if it is blank or not a predetermined value, “TRUE” is set in an internal variable excludeRowFlgList that stores the determination result, and if it is blank or a predetermined value, a variable Store “FALSE” as a value in excludeRowFlgList. This process is repeated for the number of rows counted in S230. That is, since it counts as 6 rows in S230, the value determination process is performed 6 times in order for the value stored in the variable excludeFlgRowData. FIG. 13 schematically shows a process for determining the value stored in the variable excludeFlgRowData and storing the value “TRUE” or “FALSE” in the variable excludeRowFlgList.

変数excludeFlgRowDataの場合,1行目に「001005」,2行目に「001005
」,3行目に「001008」,4行目に「001008」,5行目に「001010」
,6行目が「空白」であるので,変数excludeRowFlgListのうち,Item(0),Item(1),Ite
m(2),Item(3),Item(4)に「TRUE」が,Item(5)に「FALSE」が値として格納さ
れることとなる。
In the case of the variable excludeFlgRowData, “001005” is displayed on the first line and “001005” is displayed on the second line.
"," 001008 "on the third line," 001008 "on the fourth line," 001010 "on the fifth line
, Line 6 is "blank", so in the excludeRowFlgList, Item (0), Item (1), Ite
“TRUE” is stored as a value in m (2), Item (3), Item (4), and “FALSE” is stored as a value in Item (5).

以上のように除外対象データ判定処理部124で,除外対象とする行,列を判定すると
,データ生成処理部126は,除外対象データ記憶部125に記憶させた変数excludeCol
FlgList,excludeRowFlgListの値に基づいて,内部的な変数dtに,取込対象となるレコー
ドを取込範囲データ記憶部121から抽出し,追加する。すなわち,変数excludeColFlgL
ist,excludeRowFlgListに格納した値のうち,「TRUE」である行または列については,ra
ngeDataのレコードを変数dtに追加し,「FALSE」である行または列については,rangeDat
aのレコードを変数dtに追加しない処理を実行することで,取込対象となるデータの生成
をする(S250)。データ生成処理部126の処理を図14に模式的に示す。
As described above, when the exclusion target data determination processing unit 124 determines the row and column to be excluded, the data generation processing unit 126 displays the variable excludeCol stored in the exclusion target data storage unit 125.
Based on the values of FlgList and excludeRowFlgList, a record to be captured is extracted from the capture range data storage unit 121 and added to an internal variable dt. That is, the variable excludeColFlgL
Of the values stored in ist and excludeRowFlgList, for the row or column that is TRUE, ra
Add a record of ngeData to the variable dt, and for a row or column that is "FALSE", rangeDat
By executing a process that does not add the record a to the variable dt, data to be captured is generated (S250). The processing of the data generation processing unit 126 is schematically shown in FIG.

変数dtには通常はrangeDataのレコードの値が格納されるが,レコードとして値ではな
く,計算式を格納していれば,変数dtとして計算式を格納してもよい。
Normally, the value of the record of rangeData is stored in the variable dt. However, if the calculation formula is stored instead of the value as the record, the calculation formula may be stored as the variable dt.

そしてデータ生成処理部126で生成した変数dtが変換後のデータであるので,データ
出力処理部127が,それをテキストファイルとして出力する(S260)。図15が出
力するテキストファイルの一例である。
Since the variable dt generated by the data generation processing unit 126 is the converted data, the data output processing unit 127 outputs it as a text file (S260). FIG. 15 is an example of a text file output.

以上のようにして,スプレッドシートのうち,必要な行,列のデータをテキストファイ
ルにデータ変換して出力することができる。
As described above, necessary row and column data in the spreadsheet can be converted into a text file and output.

このようにデータ変換したテキストファイルのデータを業務システムなどで利用したい
場合には,図7のテキスト取込画面のうち「実行」ボタンを押下することで,業務システ
ムに取り込むことができる。
When it is desired to use the text file data thus converted in the business system or the like, it can be imported into the business system by pressing the “execute” button in the text capture screen of FIG.

実施例1の取込範囲入力受付処理部10,対象ファイル入力受付処理部11では,取込
設定画面に取込範囲,除外行,除外列などの値の入力が,テキスト取込画面にフォルダや
ファイル名等の値の入力が行われ,それを受け付けることで取込範囲等の各種の設定を行
う場合を説明したが,この設定を,取込対象とするスプレッドシートのセル,行または列
などから直接,ユーザが指定可能となり,それを受け付けるように構成しても良い。
In the import range input reception processing unit 10 and the target file input reception processing unit 11 of the first embodiment, input of values such as the capture range, excluded rows, and excluded columns is displayed on the capture setting screen, and folders and The case where values such as the file name are input and various settings such as the capture range are accepted by accepting the input has been explained. However, this setting is applied to the cells, rows or columns of the spreadsheet to be imported. The user can specify directly and may be configured to accept it.

まず,データ変換システム1で所定の操作を行うことにより,取込対象となるスプレッ
ドシートを開くと,取込対象のファイル名,保存場所であるフォルダ名を対象ファイル入
力受付処理部11で記憶する。そして,取込範囲入力受付処理部10は,スプレッドシー
トのイメージを,取込範囲設定画面に表示させる。
First, when a spreadsheet to be imported is opened by performing a predetermined operation in the data conversion system 1, a file name to be imported and a folder name as a storage location are stored in the target file input reception processing unit 11. . Then, the capture range input reception processing unit 10 displays the image of the spreadsheet on the capture range setting screen.

ユーザは取込範囲設定画面に表示したスプレッドシートのイメージに対して,マウスや
タッチパネルなどを用いて取込範囲を指定すると,取込範囲入力受付処理部10が,取込
範囲の開始位置となる左上のセル(指定された範囲を構成する各セルの行番号と列番号の
組み合わせのうち,最小の行番号と最小の列番号の組み合わせのセル)と終了位置となる
右下のセル(指定された範囲を構成する各セルの行番号と列番号の組み合わせのうち,最
大の行番号と最大の列番号の組み合わせのセル)を取得し,取込範囲として入力を受け付
ける。
When the user designates a capture range for the spreadsheet image displayed on the capture range setting screen using a mouse or a touch panel, the capture range input reception processing unit 10 becomes the start position of the capture range. The upper left cell (the cell with the smallest row number and the smallest column number among the combinations of the row number and column number of each cell that composes the specified range) and the lower right cell (specified) Of the combination of the row number and the column number of each cell constituting the range is acquired, and input is accepted as the capture range.

つぎにユーザは,取込範囲設定画面に表示したスプレッドシートのイメージに対して,
マウスやタッチパネルなどを用いて除外行,除外列を指定すると,取込範囲入力受付処理
部10が,それらの情報の入力を受け付ける。
Next, the user takes the spreadsheet image displayed on the capture range setting screen,
When an excluded row and an excluded column are specified using a mouse or a touch panel, the capture range input acceptance processing unit 10 accepts input of such information.

以上のような処理によって,ユーザは取込対象のスプレッドシート上で直接指定をする
ことができるため,行番号や列番号を入力せずに済む。また操作も簡便になり,かつ誤入
力を防止することができる。
Through the processing as described above, the user can specify directly on the spreadsheet to be imported, so that it is not necessary to input a row number or a column number. In addition, the operation is simplified and erroneous input can be prevented.

このように,取込範囲入力受付処理部10は,スプレッドシートを表示し,その表示上
で取込範囲の指定の入力を受け付けるように構成することで,データ変換の対象として取
り込む範囲の指定を,スプレッドシートの表示上で行えるので,操作が容易になる。
In this way, the capture range input reception processing unit 10 displays the spreadsheet and accepts the input of the capture range designation on the display, thereby specifying the range to be captured as a data conversion target. Because it can be done on the spreadsheet display, the operation becomes easy.

また,取込範囲入力受付処理部10は,スプレッドシートを表示し,その表示上で,デ
ータ変換から除外する行および/または列の指定の入力を受け付けるように構成すること
で,データ変換の際に,取り込むことが不要な行,列の指定を,スプレッドシートの表示
上で行えるので,操作が容易になる。
In addition, the capture range input reception processing unit 10 is configured to display a spreadsheet, and on the display, to accept input of designation of rows and / or columns to be excluded from data conversion. In addition, since it is possible to specify rows and columns that need not be imported on the spreadsheet display, the operation becomes easy.

なお,データ変換システム1上で取込対象とするスプレッドシートを起動してもよいが
,別のアプリケーションプログラム,たとえば当該スプレッドシートを用いる表計算ソフ
トウェア上で開き,ユーザが指定したセルの情報を当該アプリケーションプログラムから
取得するように構成しても良い。
Although the spreadsheet to be imported may be activated on the data conversion system 1, it is opened on another application program, for example, spreadsheet software using the spreadsheet, and the cell information specified by the user is You may comprise so that it may acquire from an application program.

データ変換システム1で出力するテキストファイルは,企業などで用いる業務システム
で取り込むこともできる。実施例3におけるデータ変換システム1のシステム構成の一例
を図16に示す。本実施例におけるデータ変換システム1では,さらに,データ取込処理
部13を備えている。
The text file output by the data conversion system 1 can be imported by a business system used in a company or the like. An example of the system configuration of the data conversion system 1 in the third embodiment is shown in FIG. The data conversion system 1 in the present embodiment further includes a data capture processing unit 13.

データ取込処理部13は,変換処理部12におけるデータ出力処理部127で出力した
テキストファイルを,業務システムに取り込ませるものである。なお,業務システムの既
存データベースにデータ取込処理部13で取り込ませる場合には,テキストファイルと,
業務システムのレコードのデータ構造との対応関係をあらかじめ定義付けしておき,それ
に基づいて取り込ませることとなる。
The data capture processing unit 13 causes the business system to capture the text file output by the data output processing unit 127 in the conversion processing unit 12. Note that when the data import processing unit 13 imports into an existing database of a business system, a text file,
Correspondence with the data structure of the record of the business system is defined in advance and imported based on it.

データ取込処理部13では,テキストファイルにおけるデータ項目ごとに,業務システ
ムのデータ構造に対応づけてデータを取り込み,業務システムのレコードの値として追加
して記憶させる。たとえば出力したテキストファイルが図15であり,テキストファイル
の1つめの項目が顧客コード(CUSU0010001),2つめの項目が商品コード(CUSU001002)
,3つめの項目が注文数(CUSU001003)の各レコードに対応している場合,テキストファ
イルにおける1つめの項目(左側の列のデータ)は,業務システムの顧客コードのレコー
ドの値として,2つめの項目(真ん中の列のデータ)は,業務システムの商品コードのレ
コードの値として,3つめの項目(右側の列のデータ)は,業務システムの注文数のレコ
ードの値として,それぞれテキストファイルからデータを抽出し,業務システムのレコー
ドに記憶させる。これを模式的に示すのが図17である。
For each data item in the text file, the data capture processing unit 13 captures data in association with the data structure of the business system, adds it as a record value of the business system, and stores it. For example, the output text file is shown in FIG. 15, the first item in the text file is the customer code (CUSU0010001), and the second item is the product code (CUSU001002).
, If the third item corresponds to each record of the number of orders (CUSU001003), the first item in the text file (the data in the left column) is the second as the value of the business system customer code record. Item (middle column data) is the value of the business system product code record, and the third item (right column data) is the value of the business system order quantity record. Data is extracted and stored in the business system record. This is schematically shown in FIG.

業務システムに新たにデータベースを作成し,取り込ませる場合には次のようにしても
よい。すなわち,取込対象のスプレッドシートファイルについて,項目行の設定を受け付
けこの設定情報に基づき各列における項目名を取得し,項目名以外の各列のデータについ
てそれぞれ属性を判断し,さらに各列のデータの最大桁数に所定の桁数を加えた桁数を算
出し,当該得られた項目名,属性および桁数を設定することによってテーブル定義を行う
ようにしてもよい。属性の判断は,通常,数値であるか文字であるかを判断することによ
って行う。
When a new database is created and imported into the business system, it may be as follows. In other words, it accepts the setting of the item row for the spreadsheet file to be imported, acquires the item name in each column based on this setting information, determines the attribute for each column data other than the item name, The table definition may be performed by calculating the number of digits by adding a predetermined number of digits to the maximum number of digits of data, and setting the obtained item name, attribute, and number of digits. The attribute is usually judged by judging whether it is a numerical value or a character.

取込対象のスプレッドシートファイルの情報に基づいてデータベースのテーブル定義を
行うので,利用者があらかじめデータベース上でテーブル定義を行う手間を低減すること
ができる。
Since the database table definition is performed based on the information of the spreadsheet file to be imported, it is possible to reduce the effort for the user to perform the table definition in advance on the database.

なお,テーブル定義のテーブル名についてはファイル名の全部または一部を用いるよう
にしてもよい。このようにすることで,さらにユーザの手間を低減することができる。
Note that all or part of the file name may be used for the table name in the table definition. By doing in this way, a user's effort can further be reduced.

つぎに,本発明の別の実施態様として,複数行および/または複数列に関連するデータ
が入力されたスプレッドシートについて,テキストファイルに出力する場合を説明する。
この場合のデータ変換システムのシステム構成の一例を図18の概念図に示す。また,本
実施例の処理プロセスの一例を図19のフローチャートに示す。
Next, as another embodiment of the present invention, a description will be given of a case where a spreadsheet into which data related to a plurality of rows and / or a plurality of columns is input is output to a text file.
An example of the system configuration of the data conversion system in this case is shown in the conceptual diagram of FIG. An example of the processing process of this embodiment is shown in the flowchart of FIG.

本実施例で処理対象とするスプレッドシートの一例を図20に示す。図20の場合には
,顧客に対して,商品ごとに注文数と注文額の2つの内容値が関連づけられている場合を
示している。
An example of a spreadsheet to be processed in this embodiment is shown in FIG. In the case of FIG. 20, the case where two content values of the number of orders and the order amount are associated for each product is shown.

本実施例におけるデータ変換システムでは,事前設定処理部14とマトリックス分解変
換処理部15とデータ出力処理部16とを有する。
The data conversion system in this embodiment includes a preset processing unit 14, a matrix decomposition conversion processing unit 15, and a data output processing unit 16.

事前設定処理部14は,本実施例の処理を実行するために,項目とデータとの対応関係
などの設定値の設定を事前に受け付け,記憶する処理である。設定値としては,テキスト
ファイルに出力する際の見出し,内容値(データの値),読込対象とする内容値があるセ
ルの範囲,内容値の項目,除外対象とするか否かの判定対象とするセルなどの情報がある
。設定値の一例を図21に示す。
The prior setting processing unit 14 is a process that receives and stores in advance settings of setting values such as correspondence between items and data in order to execute the processing of the present embodiment. The setting values include the heading when outputting to a text file, the content value (data value), the range of cells that contain the content value to be read, the content value item, and the judgment target of whether or not to exclude There is information such as cells to be performed. An example of the setting value is shown in FIG.

設定値における縦項目とは,スプレッドシートにおいて縦方向に配置される,関連する
データであり,その見出しと内容値とからなる。図20の場合,縦項目の見出しとして「
顧客コード」,「顧客名」が,縦項目の内容値としてセルの位置「A4」,「B4」があ
る。また,横項目とは,スプレッドシートにおいて横方向に配置される,関連するデータ
であり,その見出しと内容値とからなる。図20の場合,横項目の見出しとしてセルの位
置「B1」,「B2」,「B3」が,横項目の内容値としてセルの位置「C1」,「C2
」,「C3」がある。また,内容値範囲とは読込対象となるデータがあるセルの範囲であ
るので,図20の場合,セルの開始位置として「C4」,終了位置として「G13」とな
る。さらに,内容値の項目とは,読込対象となる一群のデータの項目を示すものであり,
その見出しとしてセルの位置が「A1」,「A2」,内容値として「C4」,「C5」と
なる。判定対象となるセルは,取込みの除外対象とするセルか否かを判定するためのセル
であり,区分とは所定条件を充足するか否かを示している。また,設定値は,当該セルの
位置の内容値に基づいて所定条件を充足するか否かを判定することを示す。したがって,
所定条件としてデータがあるか(空白(NULL)ではないか),あるいは所定値(たと
えば「0」)であるか,とした場合,注文数のセルの値に基づいて,所定条件の充足の有
無を判定することとなる。
The vertical item in the setting value is related data arranged in the vertical direction in the spreadsheet, and includes its heading and content value. In the case of FIG. 20, “
“Customer code” and “customer name” have cell positions “A4” and “B4” as content values of the vertical items. The horizontal item is related data arranged in the horizontal direction in the spreadsheet, and includes a heading and a content value. In the case of FIG. 20, the cell positions “B1”, “B2”, “B3” are used as the heading of the horizontal item, and the cell positions “C1”, “C2” are used as the content value of the horizontal item.
”And“ C3 ”. Further, since the content value range is a range of a cell having data to be read, in the case of FIG. 20, the cell start position is “C4” and the end position is “G13”. Furthermore, the content value item indicates a group of data items to be read.
As the headings, the cell positions are “A1” and “A2”, and the content values are “C4” and “C5”. The cell to be determined is a cell for determining whether or not it is a cell to be excluded from acquisition, and the section indicates whether or not a predetermined condition is satisfied. The set value indicates that it is determined whether or not a predetermined condition is satisfied based on the content value of the position of the cell. Therefore,
If there is data as a predetermined condition (whether it is blank (NULL)) or a predetermined value (for example, “0”), whether or not the predetermined condition is satisfied based on the cell value of the number of orders Will be determined.

マトリックス分解変換処理部15は,実施例1乃至実施例3とは異なり,本実施例では
,複数のセルに項目とデータが関連づけられているので,事前設定処理部14で受け付け
た事前設定に基づいてその関連づけを分解した上で,テキスト変換処理をする。
Unlike the first to third embodiments, the matrix decomposition conversion processing unit 15 has items and data associated with a plurality of cells in this embodiment, so that the matrix decomposition conversion processing unit 15 is based on the preset received by the preset processing unit 14. After disassembling the association, text conversion processing is performed.

データ出力処理部16は,マトリックス分解変換処理部15で出力したデータをテキス
トファイルを出力する。
The data output processing unit 16 outputs the data output by the matrix decomposition conversion processing unit 15 as a text file.

つぎに本実施例の処理プロセスの一例を図19のフローチャートを用いて説明する。な
お,スプレッドシートとして図20の場合で説明する。
Next, an example of the processing process of the present embodiment will be described with reference to the flowchart of FIG. A spreadsheet will be described with reference to FIG.

まず,ユーザは,そのコンピュータにおいて所定の操作をすることで,図22に示す設
定値の入力画面を起動する。そして,この入力画面に,ユーザは設定値をそれぞれ入力し
,事前設定処理部14ではその入力を受け付け(S300),記憶する。このようにして
受け付けた設定値が図21である。
First, the user activates a setting value input screen shown in FIG. 22 by performing a predetermined operation on the computer. Then, the user inputs each set value on this input screen, and the preset processing unit 14 accepts the input (S300) and stores it. The setting values received in this way are shown in FIG.

そしてユーザがスプレッドシートからテキストファイルへのデータ変換処理を開始する
場合には,そのコンピュータにおいて所定の操作をすることで,マトリックス分解変換処
理部15は,事前設定処理部14で記憶した設定値に基づいて,スプレッドシートから見
出し部分の値を取得する(S310)。図21の場合,縦項目の見出しとして「顧客コー
ド」「顧客名」が設定値として設定されているので,その値として「顧客コード」,「顧
客名」を取得する。横項目の見出しとしてセルの位置「B1」,「B2」,「B3」が設
定値として設定されているので,その値として「商品コード」,「商品名」,「単価」を
取得する。また,内容値の項目の見出しとしてセルの位置「A1」,「A2」が設定値と
して設定されているので,その値として「注文数」と「注文額」を取得する。これを模式
的に示すのが図23である。
When the user starts data conversion processing from the spreadsheet to the text file, the matrix decomposition conversion processing unit 15 performs the predetermined operation on the computer, so that the matrix decomposition conversion processing unit 15 sets the setting value stored in the pre-setting processing unit 14. Based on this, the value of the heading part is acquired from the spreadsheet (S310). In the case of FIG. 21, since “customer code” and “customer name” are set as set values for the vertical item headings, “customer code” and “customer name” are acquired as the values. Since cell positions “B1”, “B2”, and “B3” are set as set values for the heading of the horizontal item, “product code”, “product name”, and “unit price” are acquired as the values. Further, since the cell positions “A1” and “A2” are set as the setting values as the headings of the content value items, “order number” and “order amount” are acquired as the values. This is schematically shown in FIG.

そして,データ出力処理部16は,マトリックス分解変換処理部15がS310で取得
した見出し部分の値に基づいて,「見出し行」を作成して,それをテキストファイルに出
力する(S320)。すなわち,縦項目の見出し,横項目の見出し,内容値の項目の見出
しをそれぞれ所定方向に並べてテキストファイルに出力する。この処理を模式的に示すの
が図24である。
Then, the data output processing unit 16 creates a “heading row” based on the value of the heading part acquired by the matrix decomposition conversion processing unit 15 in S310, and outputs it to a text file (S320). That is, the heading of the vertical item, the heading of the horizontal item, and the heading of the content value item are arranged in a predetermined direction and output to a text file. This process is schematically shown in FIG.

つぎにマトリックス分解変換処理部15は,設定値における内容値範囲の情報に基づい
て,その範囲の情報を取得する(S330)。図21の設定値の場合,開始位置として「
C4」のセル,終了位置として「G13」のセルが設定されているので,その情報を取得
する。なお,この際に,データを取得した範囲の列数,行数をもカウントする。スプレッ
ドシートにおいては,行数はもともと数値で管理されているので,そのままカウントでき
るが,列数は「A」,「B」,「C」といったように,ローマ字で管理されていることが
多い。そこで,図25に示すような,列のローマ字と数字との対応表をあらかじめ備えて
おき,それに基づいて,列数のカウントをすると良い。この処理を図26に示す。
Next, the matrix decomposition conversion processing unit 15 acquires the range information based on the content value range information in the set value (S330). In the case of the set values in FIG.
Since the cell “C13” and the cell “G13” are set as the end position, the information is acquired. At this time, the number of columns and rows in the data acquisition range is also counted. In a spreadsheet, the number of rows is originally managed numerically and can be counted as it is, but the number of columns is often managed in Roman letters such as “A”, “B”, and “C”. Therefore, it is preferable to prepare a correspondence table of Roman letters and numbers of columns as shown in FIG. 25 and count the number of columns based on the correspondence table. This process is shown in FIG.

そしてマトリックス分解変換処理部15は,S330で取得した内容値範囲の情報に基
づいて,スプレッドシートからデータを取得する(S340)。上述の場合,「C4」か
ら「G13」のセルのデータを取得し,これを内部的変数に記憶させる。
The matrix decomposition conversion processing unit 15 acquires data from the spreadsheet based on the content value range information acquired in S330 (S340). In the above case, the data of the cells “G13” to “G13” are acquired and stored in the internal variables.

つぎにマトリックス分解変換処理部15は,1単位となるデータ群を取得する(S35
0)。データ群の取得処理は,内容値項目における内容値で設定されている最小のセルと
最大のセルを特定し,それに基づいて,データ群の範囲として設定する。すなわち,設定
値が図21の場合,内容値項目の内容値としてセルの位置「C4」と「C5」が設定され
ているので,最小列が「C」,最小行が「4」,最大列が「C」,最大行が「5」である
ことが特定できる。そのため,最小のセルとして「C4」,最大のセルとして「C5」と
特定できるので,データ群の範囲として「C4」,「C5」を設定する。またデータ群の
取得処理の際には,データ群列数(データ群における列数),データ群行数(データ群に
おける行数)を算出する。上述の場合,データ群列数は1,データ群行数は2として算出
できる。データ群の算出方法について模式的に示すのが図27,データ群の取得処理を模
式的に示すのが図28である。
Next, the matrix decomposition conversion processing unit 15 acquires a data group as one unit (S35).
0). In the data group acquisition process, the minimum cell and the maximum cell set by the content value in the content value item are specified, and based on this, the range is set as the data group. That is, when the set value is FIG. 21, since the cell positions “C4” and “C5” are set as the content value of the content value item, the minimum column is “C”, the minimum row is “4”, and the maximum column Is “C” and the maximum row is “5”. Therefore, since “C4” can be specified as the minimum cell and “C5” as the maximum cell, “C4” and “C5” are set as the range of the data group. In the data group acquisition process, the number of data group columns (the number of columns in the data group) and the number of data group rows (the number of rows in the data group) are calculated. In the above case, the number of data group columns can be calculated as 1, and the number of data group rows can be calculated as 2. FIG. 27 schematically shows a data group calculation method, and FIG. 28 schematically shows data group acquisition processing.

そしてマトリックス分解処理部は,カウンタとなる引数X,Yに初期値「0」をそれぞ
れ代入する(S360)。このカウンタとなる引数Xは列に対するものであり,引数Yは
行に対するものである。X,Yのいずれもがデータ範囲行数,データ範囲列数以上になっ
た場合には,テキスト変換処理の終了を示すこととなる。
Then, the matrix decomposition processing unit substitutes the initial value “0” for the arguments X and Y serving as counters (S360). The counter argument X is for a column and the argument Y is for a row. When both X and Y exceed the number of data range rows and the number of data range columns, this indicates the end of the text conversion process.

引数Xの値がデータ範囲列数未満であれば(S370),設定値を参照して,S340
で取得して内部変数で記憶した値のうち,データ群の範囲の値(データ)を取得する(S
380)。具体的には,縦項目の1項目として「A4」+Y行の値を,2項目として「B
4」+Y行の値を,横項目の1項目として「C1」+X列の値を,2項目として「C2」
+X列の値を,3項目として「C3」+X列の値を,内容値項目の1項目として「C4」
+X列+Y行の値を,2項目として「C5」+X列+Y行の値を,判定対象のセルとして
「C4」+X列+Y行の値を,それぞれ取得する。この処理を模式的に示すのが図29で
ある。
If the value of the argument X is less than the number of data range columns (S370), referring to the set value, S340
The value (data) in the range of the data group is acquired from the values acquired in step 1 and stored as internal variables (S
380). Specifically, “A4” + Y row value is set as one vertical item, and “B” is set as two items.
4 ”+ Y row value,“ C1 ”+ X column value as one horizontal item, and“ C2 ”as two items
+ C column value as the X column value, “C3” as the 3 item value, and “C4” as the 1 content item item
The value of + X column + Y row is acquired as two items, the value of “C5” + X column + Y row is acquired, and the value of “C4” + X column + Y row is acquired as the determination target cell. This process is schematically shown in FIG.

上述の場合,引数X,Yはそれぞれ初期値0が代入された状態なので,縦項目の1項目
は「001001」,2項目は「顧客A」,横項目の1項目は「00100001」,2
項目は「商品A」,3項目は「100」,内容値項目の1項目は「10」,2項目は「1
,000」,判定対象セルは「10」となる。
In the above case, since the initial values 0 are assigned to the arguments X and Y, one vertical item is “001001”, two items are “customer A”, one horizontal item is “00100001”, 2
The item is “product A”, the three items are “100”, the content value item is “10”, the second item is “1”
, 000 ”, and the determination target cell is“ 10 ”.

そしてマトリックス分解判定処理部は,判定対象のセルの値が所定条件,たとえば空白
(NULL)あるいは「0」,であるかを判定する(S390)。上述の例では判定対象
セルが「10」なので条件を充足せず,データ出力処理部16は,S380で取得した各
値を,テキストファイルにそれぞれ出力する(S400)。この状態を模式的に示すのが
図30である。なお,判定対象セルの値が「NULL」であった場合には,S390の処
理は実行せずに(すなわちデータ出力処理部16におけるテキストファイルへの出力処理
は行わずに),後述するS410の処理を実行する。
The matrix decomposition determination processing unit determines whether the value of the determination target cell is a predetermined condition, for example, blank (NULL) or “0” (S390). In the above example, since the determination target cell is “10”, the condition is not satisfied, and the data output processing unit 16 outputs each value acquired in S380 to a text file (S400). FIG. 30 schematically shows this state. If the value of the determination target cell is “NULL”, the process of S390 is not executed (that is, the output process to the text file in the data output processing unit 16 is not performed), and the process of S410 described later is performed. Execute the process.

そして引数Xに,データ群列数の値,上述の例では,「1」を加算する(S410)。
すなわち,引数Xを1に更新する。これによって,処理対象とするデータ群をつぎのデー
タ群にずらすこととなる。
Then, the value of the number of data group columns, “1” in the above example, is added to the argument X (S410).
That is, the argument X is updated to 1. As a result, the data group to be processed is shifted to the next data group.

そして再度,S370以降の処理を実行させる。そうすると,引数Xは1なので,デー
タ範囲列数未満であるから(S370),上述と同様に,設定値を参照して,S340で
取得して内部変数で記憶した値のうち,データ群の範囲の値(データ)を取得する(S3
80)。具体的には,引数Xは1,Yは初期値0が代入された状態なので,縦項目の1項
目は「001001」,2項目は「顧客A」,横項目の1項目は「00100002」,
2項目は「商品B」,3項目は「200」,内容値項目の1項目は「20」,2項目は「
4,000」,判定対象セルは「20」となる。
Then, the processes after S370 are executed again. Then, since the argument X is 1, it is less than the number of data range columns (S370), so as in the above case, referring to the set value, among the values acquired in S340 and stored as internal variables, the range of the data group Value (data) is acquired (S3
80). Specifically, since the arguments X are 1 and Y are assigned with an initial value 0, one vertical item is “001001”, two are “customer A”, one horizontal item is “00100002”,
2 items are “product B”, 3 items are “200”, 1 content item is “20”, 2 items are “
The determination target cell is “20”.

そうすると,判定対象セルには「20」があるので条件を充足せず(S390),デー
タ出力処理部16がテキストファイルに,S380で取得した各値を,テキストファイル
にそれぞれ出力する(S400)。この状態を模式的に示すのが図31である。そして,
引数Xにデータ群列数「1」を加算し,引数Xを2に更新する(S410)。
Then, since there is “20” in the determination target cell, the condition is not satisfied (S390), and the data output processing unit 16 outputs each value acquired in S380 to the text file (S400). FIG. 31 schematically shows this state. And
The number of data group columns “1” is added to the argument X, and the argument X is updated to 2 (S410).

以上のように,S370乃至S410の処理を引数Xが5になるまで反復すると,S3
70において,データ範囲列数と引数Xとが同じ値となるので,S420の処理を実行す
る。すなわち,引数Xを0とし,引数Yにデータ群行数の値「2」を加算して,引数Yを
2にして更新する。そして引数Yは,データ範囲行数未満であるので(S430),S3
80以降の処理を実行する。S420の処理は,処理対象としていたデータ群が最大列ま
で到達したので,つぎのデータ群の行を実行するために,処理対象とするデータ群を変更
する処理である。
As described above, when the processing of S370 to S410 is repeated until the argument X becomes 5, S3
In 70, since the number of data range columns and the argument X have the same value, the process of S420 is executed. That is, the argument X is set to 0, the value “2” of the number of data group rows is added to the argument Y, and the argument Y is updated to 2. Since the argument Y is less than the number of rows in the data range (S430), S3
The process after 80 is executed. The process of S420 is a process of changing the data group to be processed in order to execute the next data group row because the data group to be processed has reached the maximum column.

そして上記と同様に,設定値を参照して,S340で取得して内部変数で記憶した値の
うち,データ群の範囲の値(データ)を取得する(S380)。上述の場合,引数Xは初
期値0,Yは2が代入された状態なので,縦項目の1項目は「001002」,2項目は
「顧客B」,横項目の1項目は「00100001」,2項目は「商品A」,3項目は「
100」,内容値項目の1項目は「空白(NULL)」,2項目は「空白(NULL)」
,判定対象セルは「空白(NULL)」となる。そうすると,判定対象のセルの値が所定
条件を充足するので,データ出力処理部16は,S380で取得した値をテキストファイ
ルに出力せずに,そのまま破棄をする。そして,引数Xにデータ群列数1を加算し(S4
10),S370以降の処理を実行する。
In the same manner as described above, the value (data) in the range of the data group is acquired from the values acquired in S340 and stored as internal variables (S380). In the above case, since the argument X is an initial value 0 and Y is set to 2, the vertical item 1 is “001002”, the 2 items are “customer B”, the horizontal item 1 is “00100001”, 2 The item is “Product A” and the 3 items are “
"100", one item of the content value item is "blank (NULL)", and two items are "blank (NULL)"
, The determination target cell is “blank (NULL)”. Then, since the value of the determination target cell satisfies the predetermined condition, the data output processing unit 16 discards the value acquired in S380 without outputting it to the text file. Then, 1 is added to the argument X (S4).
10), the process after S370 is executed.

以上のような処理を引数Yが10になるまで反復する。引数Yが10に更新されると(
S420),データ範囲行数と引数Yとが同じ値となるので,そのまま処理を終了する。
以上のような処理を実行することで,スプレッドシートのデータをテキストファイルに変
換して出力することができる。出力結果となるテキストファイルを図32に示す。
The above processing is repeated until the argument Y becomes 10. When argument Y is updated to 10, (
S420) Since the number of rows in the data range and the argument Y have the same value, the processing is terminated as it is.
By executing the above processing, the spreadsheet data can be converted into a text file and output. The text file that is the output result is shown in FIG.

以上のような処理を実行することで,複数行または複数列に関連するデータが入力され
たスプレッドシートについて,テキストファイルに出力することができる。
By executing the processing as described above, it is possible to output a spreadsheet into which data related to a plurality of rows or columns is input to a text file.

上述では,内容値が縦に2つの場合を説明したが,内容値が1つの場合,内容値が横に
2つの場合,内容値が縦横複数の場合であっても同様に処理が実行できる。
Although the case where there are two content values vertically has been described above, the same processing can be executed when there is one content value, when there are two content values horizontally, and when there are a plurality of content values vertically and horizontally.

内容値が1つの場合のスプレッドシートの一例を図33に示す。この場合,たとえば,
事前設定処理部14の設定値入力画面で受け付ける設定値としては,図34がある。また
この設定値に基づいて,図19の処理を実行したテキストファイルの出力結果が,図35
である。
An example of a spreadsheet with one content value is shown in FIG. In this case, for example,
FIG. 34 shows setting values accepted on the setting value input screen of the pre-setting processing unit 14. Further, based on this set value, the output result of the text file obtained by executing the processing of FIG.
It is.

内容値が横に2つの場合のスプレッドシートの一例を図36に示す。この場合,たとえ
ば,事前設定処理部14の設定値入力画面で受け付ける設定値としては,図37がある。
またこの設定値に基づいて,図19の処理を実行したテキストファイルの出力結果が,図
38である。
An example of a spreadsheet when there are two content values horizontally is shown in FIG. In this case, for example, FIG. 37 shows setting values accepted on the setting value input screen of the pre-setting processing unit 14.
Further, FIG. 38 shows the output result of the text file in which the processing of FIG. 19 is executed based on this set value.

内容値が縦横複数の場合のスプレッドシートの一例を図39に示す。この場合,たとえ
ば,事前設定処理部14の設定値入力画面で受け付ける設定値としては,図40がある。
またこの設定値に基づいて,図19の処理を実行したテキストファイルの出力結果が,図
41である。
FIG. 39 shows an example of a spreadsheet when there are a plurality of content values. In this case, for example, FIG. 40 shows a set value accepted on the set value input screen of the advance setting processing unit 14.
Further, FIG. 41 shows the output result of the text file in which the processing of FIG. 19 is executed based on this set value.

本発明のデータ変換システム1を用いることで,スプレッドシートで作成されているデ
ータを自動化することができる。それによって,データ変換時のミスの発生をなくすとと
もに,その作業に要する手間や時間を大幅に減らすことが可能となる。また,複数の行や
列に関連するデータが入力されている場合であっても,それらを一つのデータ群として処
理し,テキストファイルのデータへの変換処理が実行できる。
By using the data conversion system 1 of the present invention, data created in a spreadsheet can be automated. As a result, errors during data conversion can be eliminated, and the labor and time required for the work can be greatly reduced. Even if data related to a plurality of rows and columns is input, the data can be processed as one data group and converted into text file data.

1:データ変換システム
10:取込範囲入力受付処理部
11:対象ファイル入力受付処理部
12:変換処理部
13:データ取込処理部
14:事前設定処理部
15:マトリックス分解変換処理部
16:データ出力処理部
70:演算装置
71:記憶装置
72:表示装置
73:入力装置
74:通信装置
120:取込範囲データ抽出処理部
121:取込範囲データ記憶部
122:判定対象データ抽出処理部
123:判定対象データ記憶部
124:除外対象データ判定処理部
125:除外対象データ記憶部
126:データ生成処理部
127:データ出力処理部
1: Data conversion system 10: Capture range input reception processing unit 11: Target file input reception processing unit 12: Conversion processing unit 13: Data capture processing unit 14: Pre-setting processing unit 15: Matrix decomposition conversion processing unit 16: Data Output processing unit 70: arithmetic device 71: storage device 72: display device 73: input device 74: communication device 120: capture range data extraction processing unit 121: capture range data storage unit 122: determination target data extraction processing unit 123: Determination target data storage unit 124: Exclusion target data determination processing unit 125: Exclusion target data storage unit 126: Data generation processing unit 127: Data output processing unit

Claims (3)

複数行および/または複数列にわたって関連するデータが入力されたスプレッドシートのデータをテキストファイルに変換するデータ変換システムであって,
前記データ変換システムは,
前記スプレッドシートにおけるデータ変換処理を実行するための,処理対象となる範囲のデータ,データ取得の一単位となるデータ群の範囲を設定する内容値を含む内容値項目,項目とデータとの対応関係,および除外対象とするデータか否かを判定するためのセルである判定対象セル,を含む,設定値の入力を受け付ける事前設定処理部と,
前記スプレッドシートにおけるデータから前記設定値における処理対象となる範囲のデータを取得し,前記一単位となるデータ群ごとに,それぞれの判定対象セルについて所定条件の充足の有無を判定するマトリックス分解変換処理部と,
前記所定条件の充足性の判定結果に応じて,前記取得したデータ群のデータをテキストファイルに出力するデータ出力処理部と,
を有し,
前記所定条件が,それぞれの判定対象セルにデータがあるか,あるいは所定値であるかを判定するための条件であ
前記一単位となるデータ群ごとに,それぞれの判定対象セルについて所定条件の充足の有無を判定する処理が,
前記内容値項目の内容値で設定されているセル位置から,最小列の列数と,最小行の行数と,最大列の列数と,最大行の行数とを特定し,最小列かつ最小行のセルを最小セル,最大列かつ最大行のセルを最大セルとすることによって一単位となるデータ群の範囲を設定し,
さらに,最大列から最小列を減じて1加えた値をデータ群列数,最大行から最小行を減じて1加えた値をデータ群行数,として算出し,
カウンタとして列に関する引数X,行に関する引数Yを設け,
前記データ群ごとのそれぞれの判定対象セルは、前記設定値の判定対象セルの列数にXを加算し、前記設定値の判定対象セルの行数にYを加算することによって特定されるセルであり,
Xが処理対象となるデータ範囲の列数より小さい間は,データ群の取得および充足性の判定を行うごとにXにデータ群列数を加算し,データ群列数がデータ範囲の列数を超えるまで,データ群を一単位としてデータを取得および充足性の判定を行い,
処理対象としていたデータ群が最大列まで到達すると,次のデータ群の行を実行するために,処理対象とするデータ群を,Yにデータ群行数を加算することによってデータ群を取得する行を変更し,
Yがデータ範囲の行数より小さい場合は,行方向にデータ取得処理を行い,これらの処理を繰り返し,
X,Yのいずれもがデータ範囲の行数,データ範囲の列数以上になった場合には,処理を終了させる
ことを特徴とするデータ変換システム。
A data conversion system for converting spreadsheet data into which related data is input across multiple rows and / or multiple columns into a text file,
The data conversion system includes:
Correspondence relationship between content value items including the range data to be processed, content value that sets the range of data group as a unit of data acquisition, and items and data for executing data conversion processing in the spreadsheet , And a determination processing cell that receives a setting value including a determination target cell that is a cell for determining whether or not the data is to be excluded;
The acquired data in the range to be processed in the set value from the data in a spreadsheet, for each data group to be pre-Symbol a unit, each of the determination-target cell judges matrix degradation converts the presence or absence of satisfaction of the predetermined condition for A processing unit;
A data output processing unit that outputs the data of the acquired data group to a text file in accordance with a determination result of satisfaction of the predetermined condition;
Have
Wherein the predetermined condition is, Ri conditions der to determine whether there is data in each determination target cell, or a predetermined value,
A process for determining whether or not a predetermined condition is satisfied for each determination target cell for each data group as one unit,
From the cell position set in the content value of the content value item, specify the number of columns in the minimum column, the number of rows in the minimum row, the number of columns in the maximum column, and the number of rows in the maximum row. Set the range of the data group as one unit by setting the cell in the smallest row as the smallest cell, the cell in the largest column and the largest row as the largest cell,
Further, the value obtained by subtracting the minimum column from the maximum column and adding 1 is calculated as the number of data group columns, and the value obtained by subtracting the minimum row from the maximum row and adding 1 is calculated as the number of data group rows.
The column argument X and the row argument Y are provided as counters.
Each determination target cell for each data group is a cell specified by adding X to the number of columns of the determination target cell of the setting value and adding Y to the number of rows of the determination target cell of the setting value. Yes,
As long as X is less than the number of columns in the data range to be processed, the number of data group columns is added to X each time a data group is acquired and the sufficiency is determined. Until the data is exceeded, the data is collected as a unit and the sufficiency is determined.
When the data group to be processed reaches the maximum number of columns, in order to execute the next data group row, the data group to be processed is acquired by adding the number of data group rows to Y. Change
If Y is smaller than the number of rows in the data range, perform data acquisition processing in the row direction, repeat these processing,
A data conversion system characterized in that when both X and Y exceed the number of rows in the data range and the number of columns in the data range, the processing is terminated .
前記項目とデータの対応関係が,
スプレッドシートにおいて縦方向に配置される関連するデータであり,見出しと内容値とからなる縦項目と,
スプレッドシートにおいて横方向に配置される関連するデータであり,見出しと内容値とからなる横項目と,
であることを特徴とする請求項1記載のデータ変換システム。
The correspondence between the item and data is
Related data arranged in the vertical direction in the spreadsheet, vertical items consisting of headings and content values,
Relevant data arranged in the horizontal direction in the spreadsheet, horizontal items consisting of headings and content values,
The data conversion system according to claim 1, wherein:
複数行および/または複数列にわたって関連するデータが入力されたスプレッドシートのデータをテキストファイルに変換するデータ変換プログラムであって,
前記データ変換プログラムは,コンピュータを,
前記スプレッドシートにおけるデータ変換処理を実行するための,処理対象となる範囲のデータ,データ取得の一単位となるデータ群の範囲を設定する内容値を含む内容値項目,項目とデータとの対応関係,および除外対象とするデータか否かを判定するためのセルである判定対象セル,を含む,設定値の入力を受け付ける事前設定処理部,
前記スプレッドシートにおけるデータから前記設定値における処理対象となる範囲のデータを取得し,前記一単位となるデータ群ごとに,それぞれの判定対象セルについて所定条件の充足の有無を判定するマトリックス分解変換処理部,
前記所定条件の充足性の判定結果に応じて,前記取得したデータ群のデータをテキストファイルに出力するデータ出力処理部,
として機能させ,
前記所定条件が,それぞれの判定対象セルにデータがあるか,あるいは所定値であるかを判定するための条件であ
前記一単位となるデータ群ごとに,それぞれ判定対象セルについて所定条件の充足の有無を判定する処理が,
前記内容値項目の内容値で設定されているセル位置から,最小列の列数と,最小行の行数と,最大列の列数と,最大行の行数とを特定し,最小列かつ最小行のセルを最小セル,最大列かつ最大行のセルを最大セルとすることによって一単位となるデータ群の範囲を設定し,
さらに,最大列から最小列を減じて1加えた値をデータ群列数,最大行から最小行を減じて1加えた値をデータ群行数,として算出し,
カウンタとして列に関する引数X,行に関する引数Yを設け,
前記データ群ごとのそれぞれの判定対象セルは、前記設定値の判定対象セルの列数にXを加算し,前記設定値の判定対象セルの行数にYを加算することによって特定されるセルであり,
Xが処理対象となるデータ範囲の列数より小さい間は,データ群の取得および充足性の判定を行うごとにXにデータ群列数を加算し,データ群列数がデータ範囲の列数を超えるまで,データ群を一単位としてデータを取得および充足性の判定を行い,
処理対象としていたデータ群が最大列まで到達すると,次のデータ群の行を実行するために,処理対象とするデータ群を,Yにデータ群行数を加算することによってデータ群を取得する行を変更し,
Yがデータ範囲の行数より小さい場合は,行方向にデータ取得処理を行い,これらの処理を繰り返し,
X,Yのいずれもがデータ範囲の行数,データ範囲の列数以上になった場合には,処理を終了させる
ことを特徴とするデータ変換プログラム。
A data conversion program for converting spreadsheet data into which related data is input across multiple rows and / or multiple columns into a text file,
The data conversion program stores a computer,
Correspondence relationship between content value items including the range data to be processed, content value that sets the range of data group as a unit of data acquisition, and items and data for executing data conversion processing in the spreadsheet , And a determination processing cell that receives an input of a setting value, including a determination target cell that is a cell for determining whether or not the data is to be excluded,
The acquired data in the range to be processed in the set value from the data in a spreadsheet, for each data group to be pre-Symbol a unit, each of the determination-target cell judges matrix degradation converts the presence or absence of satisfaction of the predetermined condition for Processing section,
A data output processing unit for outputting data of the acquired data group to a text file in accordance with a determination result of satisfaction of the predetermined condition;
Function as
Wherein the predetermined condition is, Ri conditions der to determine whether there is data in each determination target cell, or a predetermined value,
A process for determining whether or not a predetermined condition is satisfied for each determination target cell for each data group as one unit,
From the cell position set in the content value of the content value item, specify the number of columns in the minimum column, the number of rows in the minimum row, the number of columns in the maximum column, and the number of rows in the maximum row. Set the range of the data group as one unit by setting the cell in the smallest row as the smallest cell, the cell in the largest column and the largest row as the largest cell,
Further, the value obtained by subtracting the minimum column from the maximum column and adding 1 is calculated as the number of data group columns, and the value obtained by subtracting the minimum row from the maximum row and adding 1 is calculated as the number of data group rows.
The column argument X and the row argument Y are provided as counters.
Each determination target cell for each data group is a cell identified by adding X to the number of columns of the determination target cell of the set value and adding Y to the number of rows of the determination target cell of the set value. Yes,
As long as X is less than the number of columns in the data range to be processed, the number of data group columns is added to X each time a data group is acquired and the sufficiency is determined. Until the data is exceeded, the data is collected as a unit and the sufficiency is determined.
When the data group to be processed reaches the maximum number of columns, in order to execute the next data group row, the data group to be processed is acquired by adding the number of data group rows to Y. Change
If Y is smaller than the number of rows in the data range, perform data acquisition processing in the row direction, repeat these processing,
A data conversion program for ending processing when both X and Y exceed the number of rows in the data range and the number of columns in the data range .
JP2015049075A 2015-03-12 2015-03-12 Data conversion system Active JP5814480B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015049075A JP5814480B2 (en) 2015-03-12 2015-03-12 Data conversion system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015049075A JP5814480B2 (en) 2015-03-12 2015-03-12 Data conversion system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014070089 Division 2014-03-28

Publications (2)

Publication Number Publication Date
JP2015191665A JP2015191665A (en) 2015-11-02
JP5814480B2 true JP5814480B2 (en) 2015-11-17

Family

ID=54426039

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015049075A Active JP5814480B2 (en) 2015-03-12 2015-03-12 Data conversion system

Country Status (1)

Country Link
JP (1) JP5814480B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6770271B2 (en) * 2018-02-01 2020-10-14 株式会社Nykシステムズ Attribute processing device

Also Published As

Publication number Publication date
JP2015191665A (en) 2015-11-02

Similar Documents

Publication Publication Date Title
JP6282116B2 (en) Associating captured image data with a spreadsheet
JP4580518B2 (en) Database design system
US9213893B2 (en) Extracting data from semi-structured electronic documents
US20090106308A1 (en) Complexity estimation of data objects
US9922016B2 (en) Virtual sticky generation
JP2022041865A (en) Online working system for template-based excel documents
US20210109894A1 (en) Automated customized modeling of datasets with intuitive user interfaces
CN110728123A (en) Report generation method, system and related equipment
JP6320901B2 (en) Data linkage support system and data linkage support method
JP5814480B2 (en) Data conversion system
CN112308519A (en) Configuration method of form association rule, form association method and device thereof
CN120278134B (en) Multi-dimensional data management method and system based on electronic table
JP5753619B1 (en) Data conversion system
JP5631517B1 (en) Data conversion system
WO2012024028A1 (en) Systems and methods for extracting pedigree and family relationship information from documents
JP2015210586A (en) Data extraction editing device of various databases and program of the same
KR102199668B1 (en) Method for providing a service of automatically creating a workflow for processing geo spatial information, and a computer readable storage medium
JP7605707B2 (en) Anomaly detection setting device, anomaly detection setting method, and anomaly detection setting program
CN111782629B (en) Feature processing script generation method and device
KR102099362B1 (en) Device and method for a data preparation using a micro service
JP2023064481A (en) Anomaly detection apparatus, anomaly detection method, anomaly detection program, and backbone information system
US20130265326A1 (en) Discovering a reporting model from an existing reporting environment
JP6369766B1 (en) Schedule form output method and form output program
JP2017083937A (en) Information processing apparatus, information processing method, and program
JP7837583B1 (en) Information processing systems, information processing methods, and programs

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150908

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150917

R150 Certificate of patent or registration of utility model

Ref document number: 5814480

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250