JP2014178812A - Device, method, and program for aligning and visualizing spreadsheet program - Google Patents

Device, method, and program for aligning and visualizing spreadsheet program Download PDF

Info

Publication number
JP2014178812A
JP2014178812A JP2013051483A JP2013051483A JP2014178812A JP 2014178812 A JP2014178812 A JP 2014178812A JP 2013051483 A JP2013051483 A JP 2013051483A JP 2013051483 A JP2013051483 A JP 2013051483A JP 2014178812 A JP2014178812 A JP 2014178812A
Authority
JP
Japan
Prior art keywords
cell
column
spreadsheet
character string
cells
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.)
Pending
Application number
JP2013051483A
Other languages
Japanese (ja)
Inventor
Satoshi Hino
三十四 日野
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP2013051483A priority Critical patent/JP2014178812A/en
Publication of JP2014178812A publication Critical patent/JP2014178812A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a processor for automatically aligning and visualizing a spreadsheet program.SOLUTION: A processor detects an object cell from an original sheet, sequentially stores an object cell address in cells of a first column of a new sheet, sequentially stores object cell data in cells of a second column of the new sheet, sequentially stores a variable type of the object cell in cells of a third column of the new sheet, sequentially stores data on two cells near the object cell in the original sheet in cells of fourth, fifth columns of the new sheet, respectively, digitizes character strings stored in the cells of the second column or makes the character string into computation expressions, sequentially stores the character string in cells of a sixth column of the new sheet, and sorts the new sheet by using the third column as a key. The processor makes the character strings stored in the cells of the second column into the computation expressions by discovering the cells which store the same character strings as cell reference character strings in the character strings stored in the cells of the second column from the first column, and replacing the cell reference character strings with cell reference of the cells of the sixth column in the same line as that of the discovered cells.

Description

本発明は、表計算プログラムの処理装置、方法、およびプログラムに関し、特に、表計算プログラムを自動的に整列的に可視化する技術に関する。   The present invention relates to a processing apparatus, method, and program for a spreadsheet program, and more particularly to a technique for automatically visualizing a spreadsheet program in an aligned manner.

近年、簡便なコンピュータプログラミング手段としてMicrosoft社のExcel(登録商標)に代表される表計算ソフトが多く使われるようになった。表計算ソフトを使用して作成された表計算プログラムでは、セル番地を説明変数扱い(セル参照)して計算式が記述されるため、1)計算のロジックが直接的にわからない、2)計算式がセルの裏に隠れているのでプログラムの全体像がわからない、3)スプレッドシートの任意のセルに任意の計算式が格納できるため表計算プログラムの作成者によってシート様式が異なる、といった諸問題がある。   In recent years, spreadsheet software represented by Microsoft's Excel (registered trademark) has been widely used as a simple computer programming means. In spreadsheet programs created using spreadsheet software, cell addresses are treated as explanatory variables (referring to cells) and formulas are described. 1) The calculation logic is not directly understood. 2) Formulas Is hidden behind the cell, so I don't know the whole picture of the program. 3) Since any calculation formula can be stored in any cell in the spreadsheet, there are various problems such as different sheet formats depending on the creator of the spreadsheet program. .

従来、表計算ソフトを用いて作成した仕様書ファイルからコンピュータプログラムのソースコードを自動生成する技術が知られている(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, a technique for automatically generating a computer program source code from a specification file created using spreadsheet software is known (see, for example, Patent Document 1).

特開2009−223843号公報JP 2009-223843 A

表計算プログラムはプログラミングの自由度が高く、誰でも容易にプログラミングすることができる反面、他人が作成した表計算プログラムを第三者が計算式や計算の流れを理解しないまま使ったり、適切なメンテナンスができなかったり、ほかのプログラムやデータベースと入出力データをリンクさせることが難しいという問題がある。   Spreadsheet programs have a high degree of freedom in programming, and anyone can easily program them, but others use spreadsheet programs created by others without understanding the formulas and flow of calculations, and appropriate maintenance. There is a problem that it is difficult to link the input / output data with other programs and databases.

上記問題に鑑み、本発明は、表計算プログラムを自動的に整列的に可視化することを目的とする。   In view of the above problems, an object of the present invention is to automatically visualize a spreadsheet program in an aligned manner.

本発明の一局面に従った表計算プログラムの整列可視化装置は、表計算プログラムが記述され、データ入力用のセルに初期値が入力された原スプレッドシートをスキャンして前記初期値、前記初期値以外の数値、および計算式のいずれかが格納されている対象セルを検出し、前記対象セルのセル番地を文字列化して新スプレッドシートにおける第1の列のセルに順次格納し、前記対象セルのデータを文字列化して前記新スプレッドシートにおける第2の列のセルに順次格納し、前記対象セルの変数種別を表す記号を前記新スプレッドシートにおける第3の列のセルに順次格納し、前記原スプレッドシートにおいて前記対象セル近傍の第1および第2のセルのデータを変数名および単位を表す情報として前記新スプレッドシートにおける第4および第5の列のセルにそれぞれ順次格納し、前記第2の列のセルに格納された文字列を数値化または計算式化して前記新スプレッドシートにおける第6の列のセルに順次格納し、前記新スプレッドシートを前記第3の列をキーにしてソートする処理装置を備え、前記処理装置は、前記第1の列から、前記第2の列のセルに格納された文字列中のセル参照文字列と同じ文字列を格納しているセルを見つけ、前記セル参照文字列を当該見つけたセルと同じ行にある前記第6の列のセルのセル参照に置換することで、前記第2の列のセルに格納された文字列を計算式化する。   According to an aspect of the present invention, there is provided an apparatus for visualizing the alignment of a spreadsheet program by scanning a raw spreadsheet in which a spreadsheet program is described and an initial value is input to a cell for data input to scan the initial value and the initial value. A target cell in which any one of numerical values other than and a calculation formula is stored is detected, the cell address of the target cell is converted into a character string, and sequentially stored in the cells of the first column in the new spreadsheet, the target cell The data is converted into a character string and sequentially stored in cells of the second column in the new spreadsheet, and a symbol representing the variable type of the target cell is sequentially stored in cells of the third column in the new spreadsheet, In the original spreadsheet, the data in the first and second cells in the vicinity of the target cell are used as information representing the variable name and unit, and the fourth spreadsheet in the new spreadsheet. Sequentially stored in the cells in the fifth column, and the character strings stored in the cells in the second column are converted into numerical values or calculation formulas and sequentially stored in the cells in the sixth column in the new spreadsheet, A processing device for sorting the new spreadsheet using the third column as a key, wherein the processing device refers to a cell in a character string stored in a cell of the second column from the first column. Find the cell that stores the same string as the string, and replace the cell reference string with the cell reference of the cell in the sixth column in the same row as the found cell; Formula the character string stored in the cell of the column.

前記処理装置が、前記第1の列のセルの書き換えに応じて、前記第2の列のセルに格納された文字列中の対応文字列を書き換えてもよい。   The processing device may rewrite the corresponding character string in the character string stored in the cell of the second column in accordance with rewriting of the cell of the first column.

また、本発明の別の局面に従った表計算プログラムの整列可視化方法は、処理装置が、表計算プログラムが記述され、データ入力用のセルに初期値が入力された原スプレッドシートをスキャンして前記初期値、前記初期値以外の数値、および計算式のいずれかが格納されている対象セルを検出するステップと、前記処理装置が、前記対象セルのセル番地を文字列化して新スプレッドシートにおける第1の列のセルに順次格納するステップと、前記処理装置が、前記対象セルのデータを文字列化して前記新スプレッドシートにおける第2の列のセルに順次格納するステップと、前記処理装置が、前記対象セルの変数種別を表す記号を前記新スプレッドシートにおける第3の列のセルに順次格納するステップと、前記処理装置が、前記原スプレッドシートにおいて前記対象セル近傍の第1および第2のセルのデータを変数名および単位を表す情報として前記新スプレッドシートにおける第4および第5の列のセルにそれぞれ順次格納するステップと、前記処理装置が、前記第2の列のセルに格納された文字列を数値化または計算式化して前記新スプレッドシートにおける第6の列のセルに順次格納するステップと、前記処理装置が、前記新スプレッドシートを前記第3の列をキーにしてソートするステップとを備え、前記第6の列のセルに順次格納するステップでは、前記第1の列から、前記第2の列のセルに格納された文字列中のセル参照文字列と同じ文字列を格納しているセルを見つけ、前記セル参照文字列を当該見つけたセルと同じ行にある前記第6の列のセルのセル参照に置換することで、前記第2の列のセルに格納された文字列を計算式化する。   According to another aspect of the present invention, there is provided a spreadsheet program alignment visualization method in which a processing device scans an original spreadsheet in which a spreadsheet program is described and initial values are input to cells for data input. A step of detecting a target cell in which any one of the initial value, a numerical value other than the initial value, and a calculation formula is stored; and the processing device converts the cell address of the target cell into a character string in a new spreadsheet. A step of sequentially storing the cells in the first column; and a step in which the processing device converts the data of the target cell into a character string and sequentially storing the data in the cells of the second column in the new spreadsheet; Sequentially storing a symbol representing the variable type of the target cell in a third column of cells in the new spreadsheet; and Sequentially storing the data of the first and second cells in the vicinity of the target cell in the sheet in the cells of the fourth and fifth columns in the new spreadsheet as information representing variable names and units, respectively, and the processing device Converting the character string stored in the cell of the second column into a numerical value or a calculation formula, and sequentially storing the character string in the cell of the sixth column in the new spreadsheet; and the processing device includes the new spreadsheet Sorting using the third column as a key, and sequentially storing in the cells in the sixth column, the characters stored in the cells in the second column from the first column Find a cell that stores the same string as the cell reference string in the column and replace the cell reference string with the cell reference of the cell in the sixth column in the same row as the found cell In Rukoto, calculates equation of the string stored in the cell of the second column.

当該方法は、さらに、前記処理装置が、前記第1の列のセルの書き換えに応じて、前記第2の列のセルに格納された文字列中の対応文字列を書き換えるステップを備えていてもよい。   The method may further include a step of rewriting the corresponding character string in the character string stored in the cell of the second column in response to rewriting of the cell of the first column. Good.

また、本発明のさらに別の局面に従った表計算プログラムの整列可視化プログラムは、表計算プログラムが記述され、データ入力用のセルに初期値が入力された原スプレッドシートをスキャンして前記初期値、前記初期値以外の数値、および計算式のいずれかが格納されている対象セルを検出する手段、前記対象セルのセル番地を文字列化して新スプレッドシートにおける第1の列のセルに順次格納する手段、前記対象セルのデータを文字列化して前記新スプレッドシートにおける第2の列のセルに順次格納する手段、前記対象セルの変数種別を表す記号を前記新スプレッドシートにおける第3の列のセルに順次格納する手段、前記原スプレッドシートにおいて前記対象セル近傍の第1および第2のセルのデータを変数名および単位を表す情報として前記新スプレッドシートにおける第4および第5の列のセルにそれぞれ順次格納する手段、前記第2の列のセルに格納された文字列を数値化または計算式化して前記新スプレッドシートにおける第6の列のセルに順次格納する手段、および前記新スプレッドシートを前記第3の列をキーにしてソートする手段としてコンピュータを機能させ、前記第6の列のセルに順次格納する手段が、前記第1の列から、前記第2の列のセルに格納された文字列中のセル参照文字列と同じ文字列を格納しているセルを見つけ、前記セル参照文字列を当該見つけたセルと同じ行にある前記第6の列のセルのセル参照に置換することで、前記第2の列のセルに格納された文字列を計算式化する。   In addition, the spreadsheet program alignment visualization program according to still another aspect of the present invention includes a spreadsheet program, wherein the initial value is scanned by scanning an original spreadsheet in which initial values are input to cells for data input. , Means for detecting a target cell in which any one of numerical values other than the initial value and calculation formula is stored, and the cell address of the target cell is converted into a character string and sequentially stored in the cells of the first column in the new spreadsheet Means for converting the data of the target cell into a character string and sequentially storing the data in a second column of the new spreadsheet; and a symbol representing the variable type of the target cell in the third column of the new spreadsheet. Means for sequentially storing data in cells, and data representing the variable names and units of the data of the first and second cells near the target cell in the original spreadsheet; Means for sequentially storing in the cells of the fourth and fifth columns in the new spreadsheet, respectively, and converting the character string stored in the cell of the second column into a numerical value or a formula to calculate the sixth in the new spreadsheet Means for sequentially storing in the cells in the column, and means for causing the computer to function as means for sorting the new spreadsheet using the third column as a key, and means for sequentially storing the cells in the sixth column. From the first column, find a cell that stores the same character string as the cell reference character string in the character string stored in the cell of the second column, and set the cell reference character string to the same row as the found cell. The character string stored in the cell of the second column is converted into a formula by replacing the cell reference of the cell of the sixth column in

当該プログラムは、さらに、前記第1の列のセルの書き換えに応じて、前記第2の列のセルに格納された文字列中の対応文字列を書き換える手段としてコンピュータを機能させてもよい。   The program may further cause the computer to function as means for rewriting the corresponding character string in the character string stored in the cell of the second column in response to rewriting of the cell of the first column.

本発明によると、原スプレッドシートにおいて自由に記述された表計算プログラムが新プログラムにおいて自動的に整列可視化される。特に、原スプレッドシートにおいて散在していたデータ入力用セルや計算式が新スプレッドシートの所定の列に集約される。これにより、他人が作成した表計算プログラムの計算式や計算の流れが理解しやすくなり、メンテナンスも容易になり、さらには、ほかのプログラムやデータベースと入出力データをリンクさせることが容易になる。   According to the present invention, a spreadsheet program freely described in the original spreadsheet is automatically visualized in the new program. In particular, data input cells and calculation formulas scattered in the original spreadsheet are collected in a predetermined column of the new spreadsheet. This makes it easier to understand the calculation formulas and flow of spreadsheet programs created by others, facilitates maintenance, and makes it easy to link input / output data with other programs and databases.

本発明の一実施形態に係る表計算プログラムの整列可視化装置の外観図1 is an external view of a spreadsheet program alignment visualization device according to an embodiment of the present invention. 表計算プログラムの整列可視化のフローチャートFlow chart for visualizing the alignment of spreadsheet programs 表計算プログラムが記述された原スプレッドシートを示す図Figure showing the original spreadsheet with a spreadsheet program 整列可視化途中の新スプレッドシートを示す図Diagram showing new spreadsheet in the middle of alignment visualization 新スプレッドシートにおいて変数記号が書き換えられた例を示す図Figure showing an example of variable symbols being rewritten in a new spreadsheet 整列可視化が完了した新スプレッドシートを示す図Figure showing a new spreadsheet with complete alignment visualization 完成した新スプレッドシートに数値を入力した例を示す図Figure showing an example of entering numerical values in a completed new spreadsheet

以下、図面を参照しながら本発明を実施するための形態について説明する。なお、本発明は、以下の実施形態に限定されるものではない。   DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings. In addition, this invention is not limited to the following embodiment.

図1は、本発明の一実施形態に係る表計算プログラムの整列可視化装置(以下、本装置と称することがある)10の外観を示す。本装置10は、表示装置12、処理装置14、およびマウスやキーボードなどの入力装置16から構成される一般的なコンピュータシステムで実現することができる。表示装置12は、具体的には、液晶ディスプレイや有機ELディスプレイなどのフラットパネルディスプレイである。表示装置12はタッチパネル機能を有していてもよい。この場合、ユーザーは、指または図示しないスタイラスで表示装置12の画面に触れることで、画面上に表示されたオブジェクトを操作することができる。処理装置14は、具体的には、CPU(Central Processing Unit)やMPU(MicroProcessing Unit)などを備えたコンピュータ装置である。   FIG. 1 shows the appearance of a spreadsheet program alignment visualization apparatus (hereinafter also referred to as this apparatus) 10 according to an embodiment of the present invention. The device 10 can be realized by a general computer system including a display device 12, a processing device 14, and an input device 16 such as a mouse or a keyboard. Specifically, the display device 12 is a flat panel display such as a liquid crystal display or an organic EL display. The display device 12 may have a touch panel function. In this case, the user can operate the object displayed on the screen by touching the screen of the display device 12 with a finger or a stylus (not shown). Specifically, the processing device 14 is a computer device including a CPU (Central Processing Unit), an MPU (MicroProcessing Unit), and the like.

なお、本装置10は、下述のように、表計算プログラムが記述された原スプレッドシートを処理して整列可視化された新たなスプレッドシートを生成するものである。したがって、処理装置14に表計算プログラムを実行するための表計算ソフトがインストールされている必要はない。   As will be described below, the apparatus 10 processes the original spreadsheet in which the spreadsheet program is described, and generates a new spreadsheet that is visualized by alignment. Therefore, it is not necessary to install spreadsheet software for executing the spreadsheet program in the processing device 14.

新スプレッドシートは、原スプレッドシートと同じファイル(Excel(登録商標)の場合のブック)の別シートとして作成されてもよいし、原スプレッドシートとは別ファイルとして作成されてもよい。   The new spreadsheet may be created as a separate sheet of the same file as the original spreadsheet (book in the case of Excel (registered trademark)), or may be created as a separate file from the original spreadsheet.

図2は、表計算プログラムの整列可視化のフローを示す。以下、図2のフローチャートおよび整列可視化途中のスプレッドシートの別図を参照しながら、本装置10による表計算プログラムの整列可視化の手順について説明する。   FIG. 2 shows the flow of visualizing the alignment of the spreadsheet program. The procedure for visualizing the alignment of the spreadsheet program by the apparatus 10 will be described below with reference to the flowchart of FIG. 2 and another view of the spreadsheet in the process of visualizing the alignment.

図3は、表計算プログラムが記述された原スプレッドシートを示す。表計算ソフトを使用すると、ユーザは、シートの任意の場所(セル)に計算式や注記を記述し、さらには図形オブジェクトをも配置して図3に示したような表計算プログラムを作成することができる。   FIG. 3 shows an original spreadsheet in which a spreadsheet program is described. When using spreadsheet software, the user writes a calculation formula and notes in any place (cell) on the sheet, and also creates a spreadsheet program as shown in FIG. Can do.

まず、原スプレッドシートにおいて、ユーザは、数値を入力すべきセル、すなわち、データ入力用のセルに初期値を入力する。図3の例では、D4セル、D5セルなどがデータ入力用のセルであり、初期値として“0”が入力されている。   First, in the original spreadsheet, the user inputs an initial value into a cell in which a numerical value is to be input, that is, a data input cell. In the example of FIG. 3, D4 cell, D5 cell, etc. are cells for data input, and “0” is input as an initial value.

処理装置14は、データ入力用のセルに初期値が入力された原スプレッドシートをスキャンして対象セルを検出する(S1)。対象セルとは、1)初期値が入力されているセル、2)初期値以外の数値が入力されているセル、3)計算式が入力されているセル、のいずれかのセルである。スキャン方向は列優先および行優先のいずれでもよい。   The processing device 14 scans the original spreadsheet in which the initial value is input to the data input cell, and detects the target cell (S1). The target cell is any one of 1) a cell in which an initial value is input, 2) a cell in which a numerical value other than the initial value is input, and 3) a cell in which a calculation formula is input. The scan direction may be either column priority or row priority.

処理装置14が図3に示した原スプレッドシートを列優先でスキャンすると、例えば、計算式が入力されているC23セル、D3セル、初期値が入力されているD4セル、D5セル、初期値以外の数値が入力されているD6セルの順に対象セルが検出される。初期値が入力されているJ34セルが、図3に示した原スプレッドシートにおいて最後に検出される対象セルである。   When the processing apparatus 14 scans the original spreadsheet shown in FIG. 3 with column priority, for example, the C23 cell, D3 cell, the D4 cell, D5 cell, and the initial value other than the initial value are input. The target cells are detected in the order of the D6 cell in which the numerical value of is input. The J34 cell in which the initial value is input is the target cell that is finally detected in the original spreadsheet shown in FIG.

処理装置14は、ステップS1で検出した対象セルのセル番地を文字列化して新スプレッドシートの第1の列のセルに順次格納する(S2)。図4は、整列可視化途中の新スプレッドシートを示す。新スプレッドシートの第1行目の各セルには各列のタイトルが記述されている。処理装置14は、例えば、新スプレッドシートのC列の第2行目のセルから順に対象セルのセル番地の文字列を格納する。例えば、新スプレッドシートのC2セルには原スプレッドシートにおいて最初に検出される対象セルであるC23セルのセル番地“C23”が格納され、新スプレッドシートのC34セルには原スプレッドシートにおいて最後に検出される対象セルであるJ34セルのセル番地“J34”が格納される。当該文字列は新スプレッドシートにおいて「変数記号」として扱われる。   The processing device 14 converts the cell address of the target cell detected in step S1 into a character string and sequentially stores it in the cell of the first column of the new spreadsheet (S2). FIG. 4 shows a new spreadsheet in the middle of alignment visualization. Each cell in the first row of the new spreadsheet describes the title of each column. For example, the processing device 14 stores the character string of the cell address of the target cell in order from the cell in the second row of the C column of the new spreadsheet. For example, the cell address “C23” of the C23 cell which is the first target cell in the original spreadsheet is stored in the C2 cell of the new spreadsheet, and the cell address “C23” of the new spreadsheet is finally detected in the C34 cell of the new spreadsheet. The cell address “J34” of the J34 cell that is the target cell to be processed is stored. The character string is treated as a “variable symbol” in the new spreadsheet.

なお、セル番地は、上記例の“C23”(C列の第23行目)や“D3”(D列の第3行目)のようなA1参照形式以外に、“R3C23”(第3列目の第23行目)や“R4C3”(第4列目の第3行目)のようなR1C1参照形式であってもよい。   The cell address is “R3C23” (third column) in addition to the A1 reference format such as “C23” (the 23rd row of C column) and “D3” (the third row of D column) in the above example. The R1C1 reference format such as “23rd row of the eye” or “R4C3” (third row of the fourth column) may be used.

また、処理装置14は、ステップS1で検出した対象セルのデータを文字列化して新スプレッドシートの第2の列のセルに順次格納する(S3)。図4に示したように、処理装置14は、例えば、新スプレッドシートのE列の第2行目のセルから順に対象セルのデータの文字列を格納する。例えば、新スプレッドシートのE2セルには原スプレッドシートにおいて最初に検出される対象セルであるC23セルのデータ“=D3*2/D8*(I23−H21)/I23+J3/4”が格納され、新スプレッドシートのE34セルには原スプレッドシートにおいて最後に検出される対象セルであるJ34セルのデータ“0”(初期値)が格納される。当該文字列は新スプレッドシートにおいて「計算内容」として扱われる。   Further, the processing device 14 converts the data of the target cell detected in step S1 into a character string and sequentially stores it in the cell of the second column of the new spreadsheet (S3). As illustrated in FIG. 4, for example, the processing device 14 stores the character string of the data of the target cell in order from the cell in the second row of the E column of the new spreadsheet. For example, E2 cell of the new spreadsheet stores data “= D3 * 2 / D8 * (I23−H21) / I23 + J3 / 4” of the C23 cell that is the first target cell detected in the original spreadsheet. In the E34 cell of the spreadsheet, data “0” (initial value) of the J34 cell which is the last detected target cell in the original spreadsheet is stored. The character string is treated as “calculation content” in the new spreadsheet.

なお、表計算ソフトにはほかのシートやブックなどからデータを引用する独自の関数があるが、それらは原スプレッドシートの対象セル内に記述されている通りに格納される。例えば、新スプレッドシートのE3セルには、原スプレッドシートのD3セルに記述されていた“[EOT計算.xls]というほかのブックのシート「主巻装置」のD3セル内にあるデータを読み込む”という関数記述がそのまま格納されている。   Note that spreadsheet software has its own functions for quoting data from other sheets, books, etc., but they are stored as described in the target cell of the original spreadsheet. For example, the E3 cell of the new spreadsheet reads the data in the D3 cell of the sheet “main winding device” of the other book “[EOT calculation.xls]” described in the D3 cell of the original spreadsheet. The function description is stored as it is.

また、処理装置14は、ステップS1で検出した対象セルの変数種別を表す記号を新スプレッドシートの第3の列のセルに順次格納する(S4)。変数種別にはI:入力変数、C:定数、P:過程変数、O:出力変数の4種類ある。初期値が格納されている対象セルは種別Iに、初期値以外の数値が格納されている対象セルは種別Cに、他の計算式で計算結果が引用されている計算式(被参照式)が格納されている対象セルは種別Pに、他の計算式で計算結果が引用されない計算式(非参照式)は種別Oに、それぞれ分類することができる。図4に示したように、処理装置14は、例えば、新スプレッドシートのA列の第2行目のセルから順に対象セルの変数種別の記号“I”、“C”、“P”、“O”を格納する。例えば、新スプレッドシートのA2セルには原スプレッドシートにおいて最初に検出される対象セルであるC23セルの変数種別“P”が格納され、新スプレッドシートのA34セルには原スプレッドシートにおいて最後に検出される対象セルであるJ34セルの変数種別“I”が格納される。当該記号は新スプレッドシートにおいて「変数種別」として扱われる。   Further, the processing device 14 sequentially stores the symbols representing the variable types of the target cells detected in step S1 in the cells in the third column of the new spreadsheet (S4). There are four types of variables: I: input variable, C: constant, P: process variable, and O: output variable. The target cell storing the initial value is type I, the target cell storing a numerical value other than the initial value is type C, and the calculation formula (referenced formula) in which the calculation result is quoted by another calculation formula Can be classified into type P, and calculation formulas (non-reference formulas) whose calculation results are not quoted in other calculation formulas can be classified into type O, respectively. As shown in FIG. 4, the processing device 14, for example, sets the variable type symbols “I”, “C”, “P”, “ O "is stored. For example, the A2 cell of the new spreadsheet stores the variable type “P” of the C23 cell that is the first target cell detected in the original spreadsheet, and the A34 cell of the new spreadsheet is the last detected in the original spreadsheet. The variable type “I” of the J34 cell that is the target cell to be stored is stored. The symbol is treated as a “variable type” in the new spreadsheet.

表計算プログラムにおいて各変数には変数名が付けられ、また、その変数の数量単位が示されていることが多い。さらに、変数名および単位は当該変数の近傍に示されていることが多い。そこで、処理装置14は、原スプレッドシートにおいて対象セル近傍の二つのセルのデータを変数名および単位を表す情報として新スプレッドシートにおける第4および第5の列のセルにそれぞれ順次格納する(S5)。経験的に言って、変数名は変数の左側のセル、単位は変数の右側のセルにそれぞれ格納されていることが多い。したがって、処理装置14は、対象セルの左方向を探索して文字列を格納しているセルを見つけ、当該文字列を変数名を表す情報として新スプレッドシートにおける第4の列のセルに順次格納する。変数名はかな漢字文字で表されていると考えられるため、処理装置14は、対象セルの左方向にかな漢字文字列を格納しているセルを見つけてもよい。また、対象セルの左方向にそのようなセルが見つからなければ、処理装置14は、対象セルの右方向または上下方向を探索してもよい。   In a spreadsheet program, each variable is given a variable name, and the unit of measure of the variable is often indicated. Furthermore, the variable name and unit are often shown near the variable. Therefore, the processing device 14 sequentially stores the data of two cells in the vicinity of the target cell in the original spreadsheet as information representing the variable name and unit in the cells in the fourth and fifth columns in the new spreadsheet, respectively (S5). . Empirically speaking, the variable name is often stored in the left cell of the variable and the unit is stored in the right cell of the variable. Therefore, the processing device 14 searches the left direction of the target cell to find a cell storing the character string, and sequentially stores the character string in the cell in the fourth column in the new spreadsheet as information representing the variable name. To do. Since the variable name is considered to be represented by Kana-Kanji characters, the processing device 14 may find a cell that stores the Kana-Kanji character string in the left direction of the target cell. Further, if such a cell is not found in the left direction of the target cell, the processing device 14 may search for the right direction or the vertical direction of the target cell.

一方、処理装置14は、対象セルの右方向を探索して文字列を格納しているセルを見つけ、当該文字列を単位を表す情報として新スプレッドシートにおける第5の列のセルに順次格納する。単位は半角英数文字で表されていると考えられるため、処理装置14は、対象セルの右方向に半角英数文字列を格納しているセルを見つけてもよい。また、対象セルの右方向にそのようなセルが見つからなければ、処理装置14は、対象セルの左方向または上下方向を探索してもよい。あるいは、単位となり得る文字列をあらかじめテーブル形式にまとめておくことで、処理装置14は、当該テーブルを参照して、見つかった文字列が単位を表すものかどうかを判定することができる。これにより、より高精度で信頼性の高い整列可視化が可能となる。   On the other hand, the processing device 14 searches the right direction of the target cell to find a cell storing the character string, and sequentially stores the character string as information representing a unit in the cell of the fifth column in the new spreadsheet. . Since the unit is considered to be represented by single-byte alphanumeric characters, the processing device 14 may find a cell storing a single-byte alphanumeric character string in the right direction of the target cell. Further, if such a cell is not found in the right direction of the target cell, the processing device 14 may search for the left direction or the vertical direction of the target cell. Alternatively, by collecting the character strings that can be units into a table format in advance, the processing device 14 can determine whether the found character string represents a unit by referring to the table. Thereby, alignment visualization with higher accuracy and higher reliability is possible.

図4に示したように、処理装置14は、例えば、新スプレッドシートのB列の第2行目のセルから順に対象セルに隣接する第1のセルのデータを格納する。例えば、新スプレッドシートのB3セルには原スプレッドシートにおいて検出される対象セルであるD3セルの左隣のC3セルのデータ“定格荷重 WR=”が格納される。当該文字列は新スプレッドシートにおいて「変数名」として扱われる。また、図4に示したように、処理装置14は、例えば、新スプレッドシートのD列の第2行目のセルから順に対象セルに隣接する第2のセルのデータを格納する。例えば、新スプレッドシートのD3セルには原スプレッドシートにおいて検出される対象セルであるD3セルの右隣のE3セルのデータ“t”が格納される。当該文字列は新スプレッドシートにおいて「単位」として扱われる。   As illustrated in FIG. 4, the processing device 14 stores, for example, data of the first cell adjacent to the target cell in order from the cell in the second row of the B column of the new spreadsheet. For example, the data “rated load WR =” of the C3 cell adjacent to the left of the D3 cell, which is the target cell detected in the original spreadsheet, is stored in the B3 cell of the new spreadsheet. The character string is treated as a “variable name” in the new spreadsheet. Further, as illustrated in FIG. 4, the processing device 14 stores, for example, data of the second cell adjacent to the target cell in order from the cell in the second row of the D column of the new spreadsheet. For example, the data “t” of the E3 cell adjacent to the right of the D3 cell that is the target cell detected in the original spreadsheet is stored in the D3 cell of the new spreadsheet. The character string is treated as “unit” in the new spreadsheet.

なお、上記のステップS2〜S5の実行順序は入れ替え可能である。あるいは、上記のステップS2〜S5は同時並行的に実行することもできる。   In addition, the execution order of said step S2-S5 is interchangeable. Or said step S2-S5 can also be performed simultaneously in parallel.

新スプレッドシートにおいて少なくとも第1および第2の列(図4の例ではC列とE列)のすべての処理が終わると、処理装置14は、第2の列のセルに格納された文字列を数値化または計算式化して新スプレッドシートにおける第6の列のセルに順次格納する(S6)。図4に示したように、処理装置14は、例えば、新スプレッドシートのF列の第2行目のセルから順に数値または計算式を格納する。例えば、新スプレッドシートのE4セル、E5セルに格納されている文字列“0”(初期値)は数値化されて同じ行のF列のセル、すなわち、F4セル、F5セルに数値“0”として格納される。また、新スプレッドシートのE6セルに格納されている文字列“=5”は数値化されて同じ行のF列のセル、すなわち、F5セルに数値“5”として格納される。   When the processing of at least the first and second columns (columns C and E in the example of FIG. 4) is completed in the new spreadsheet, the processing device 14 stores the character strings stored in the cells of the second column. It is converted into a numerical value or a calculation formula, and sequentially stored in the cells of the sixth column in the new spreadsheet (S6). As illustrated in FIG. 4, the processing device 14 stores, for example, numerical values or calculation formulas in order from the cell in the second row of the F column of the new spreadsheet. For example, the character string “0” (initial value) stored in the E4 cell and E5 cell of the new spreadsheet is digitized and the numerical value “0” is stored in the F column cell of the same row, that is, the F4 cell and F5 cell. Stored as In addition, the character string “= 5” stored in the E6 cell of the new spreadsheet is digitized and stored as the numerical value “5” in the F column cell of the same row, that is, the F5 cell.

なお、新スプレッドシートのE列において文字列“0”を格納しているセルと同じ行のA列のセルに格納された変数種別は必ず“I”であるため、処理装置14は、A列のセルを参照して、変数種別“I”を格納しているセルと同じ行のF列のセルに数値“0”を格納してもよい。   Since the variable type stored in the A column cell of the same row as the cell storing the character string “0” in the E column of the new spreadsheet is always “I”, the processing unit 14 With reference to the cell, the numerical value “0” may be stored in the cell in the F column in the same row as the cell storing the variable type “I”.

また、ステップS6で、処理装置14は、第1の列から、第2の列のセルに格納された文字列中のセル参照文字列と同じ文字列を格納しているセルを見つけ、当該セル参照文字列を当該見つけたセルと同じ行にある第6の列のセルのセル参照に置換することで、第2の列のセルに格納された文字列を計算式化する。例えば、図4の例では、E7セルに文字列“=(D3+J3)*1000*(D4/D5/3.1416)^2”が格納されている。当該文字列中の“D3”、“J3”などは原スプレッドシートにおけるセル参照文字列である。処理装置14は、E列のセルに格納された各文字列に含まれるすべてのセル参照文字列について、C列を探索して当該セル参照文字列と同じ文字列が格納されているセルを見つける。例えば、処理装置14は、E7セルの文字列中のセル参照文字列“J3”についてC列を探索して同じ文字列“J3”を格納しているC26セルを見つける。C列において目的のセルが見つかると、処理装置14は、当該セル参照文字列“J3”を当該見つけたセルと同じ第26行目にあるF列のセル、すなわち、F26セルのセル参照“F26”に置換して、E7セルの文字列を数式化する。ステップS6で処理装置14が第2の列のセルに格納された文字列を数値化または計算式化して新スプレッドシートにおける第6の列のセルに順次格納したものは、新スプレッドシートにおいて「計算式」として扱われる。   In step S6, the processing apparatus 14 finds a cell storing the same character string as the cell reference character string in the character string stored in the cell of the second column from the first column, and By replacing the reference character string with the cell reference of the cell in the sixth column in the same row as the found cell, the character string stored in the cell in the second column is formulated. For example, in the example of FIG. 4, the character string “= (D3 + J3) * 1000 * (D4 / D5 / 3.1416) ^ 2” is stored in the E7 cell. “D3”, “J3”, etc. in the character string are cell reference character strings in the original spreadsheet. The processing device 14 searches the C column for all cell reference character strings included in each character string stored in the cell of the E column, and finds a cell in which the same character string as the cell reference character string is stored. . For example, the processing device 14 searches the C column for the cell reference character string “J3” in the character string of the E7 cell, and finds the C26 cell storing the same character string “J3”. When the target cell is found in the C column, the processor 14 sends the cell reference character string “J3” to the cell in the Fth row in the same 26th row as the found cell, that is, the cell reference “F26 cell”. ”To formulate the character string of cell E7. In step S6, the processing device 14 converts the character string stored in the cell of the second column into a numerical value or a calculation formula and sequentially stores it in the cell of the sixth column in the new spreadsheet. Treated as an expression.

なお、F列のセルに格納される計算式におけるセル参照は、図4の例のようなA1参照形式以外に、R1C1参照形式であってもよい。   Note that the cell reference in the calculation formula stored in the cell in the F column may be in the R1C1 reference format other than the A1 reference format as in the example of FIG.

ステップS6まで実行することで、原スプレッドシートに記述されていた表計算プログラムが新スプレッドシートにおいて整列的に可視化されるが、これをさらに加工してもよい。例えば、新スプレッドシートにおいてG列に備考を記入してもよい。   By executing up to step S6, the spreadsheet program described in the original spreadsheet is visualized in an aligned manner in the new spreadsheet, but this may be further processed. For example, remarks may be entered in column G in the new spreadsheet.

また、新スプレッドシートにおけるC列の変数記号は原スプレッドシートのセル番地をそのまま文字列化したものであるため、人間にとってわかりづらい。そこで、ユーザは新スプレッドシートにおけるC列のセルを適宜書き換えてもよい(S7)。ただし、C列のセルを書き換えた場合、E列のセルの修正も必要となる。そこで、処理装置14は、新スプレッドシートにおけるC列のセルの書き換えに応じて、E列のセルに格納された文字列中の対応文字列を書き換えてもよい。図5は、新スプレッドシートにおいて変数記号が書き換えられた例を示す。例えば、E7セルにおける文字列“D3”、“J3”、“D4”、“D5”(図4を参照)が、C3セル、C4セル、C5セル、C26セルの書き換えによって、文字列“WR”、“WT”、“V”、“N”にそれぞれ置換される。しかし、E7セルに対応するF7セルの計算式はC列のセルが書き換えられても変更されない。このように、新スプレッドシートにおいてC列の変数記号の書き換えはF列の計算式に何ら影響しない。   In addition, the variable symbol in column C in the new spreadsheet is a character string of the cell address of the original spreadsheet as it is, so it is difficult for humans to understand. Therefore, the user may appropriately rewrite the cells in column C in the new spreadsheet (S7). However, when the cells in the C column are rewritten, the cells in the E column need to be corrected. Therefore, the processing device 14 may rewrite the corresponding character string in the character string stored in the E column cell in accordance with the rewriting of the C column cell in the new spreadsheet. FIG. 5 shows an example in which variable symbols are rewritten in the new spreadsheet. For example, the character strings “D3”, “J3”, “D4”, and “D5” (see FIG. 4) in the E7 cell are changed to the character string “WR” by rewriting the C3 cell, C4 cell, C5 cell, and C26 cell. , “WT”, “V”, and “N”, respectively. However, the calculation formula of the F7 cell corresponding to the E7 cell is not changed even if the cell in the C column is rewritten. Thus, in the new spreadsheet, rewriting the variable symbols in the C column has no effect on the F column calculation formula.

新スプレッドシートにおいて各行に“I”、“C”、“P”、“O”のいずれかの変数種別が配置されている。これら変数種別が順に並んでいないとやはり人間にとってわかりづらい。そこで、ステップS7が終了すると、処理装置14は、A列をキーにして新スプレッドシートをソートして新スプレッドシートを完成させる。変数種別の並び順はI→C→P→Oの順にするのが適当である。図6は、整列可視化が完了した新スプレッドシートを示す。最終的に完成した新スプレッドシートでは、ユーザによって、原スプレッドシートの記述が不備だったため変換が不十分だった変数名と単位を適宜修正され、さらに、見やすくするために罫線が引かれている。例えば、ソート前のF7セルはソート処理によってF30に移動している。ソート処理によってF列の計算式のセル参照は処理装置14によって自動的に変更される。   In the new spreadsheet, each row has a variable type of “I”, “C”, “P”, or “O”. It is difficult for humans to understand that these variable types are not in order. Therefore, when step S7 ends, the processing device 14 sorts the new spreadsheet using column A as a key to complete the new spreadsheet. It is appropriate to arrange the variable types in the order of I → C → P → O. FIG. 6 shows the new spreadsheet with the alignment visualization complete. In the finally completed new spreadsheet, the variable names and units that were not fully converted because the description of the original spreadsheet was incomplete were corrected by the user as appropriate, and ruled lines were drawn to make it easier to see. For example, the F7 cell before sorting has been moved to F30 by the sorting process. The cell reference of the calculation formula of the F column is automatically changed by the processing device 14 by the sorting process.

なお、図6に示したように、新スプレッドシートの空いている領域に原スプレッドシート中の描画オブジェクトを貼り付けてもよい。当該貼り付け処理は、ユーザが行ってもよいし、処理装置14が行うこともできる。図7は、完成した新スプレッドシートに数値を入力した例を示す。ユーザが数値を入力すべきセルは、E列において“0”が格納されているセルと同じ行のF列のセル、すなわち、F2セルからF22セルまでである。   Note that, as shown in FIG. 6, the drawing object in the original spreadsheet may be pasted in an empty area of the new spreadsheet. The pasting process may be performed by the user or the processing device 14. FIG. 7 shows an example in which numerical values are input to the completed new spreadsheet. The cells into which the user should input numerical values are the cells in the F column in the same row as the cells storing “0” in the E column, that is, the F2 cell to the F22 cell.

なお、本装置10で表計算プログラムの整列可視化を実行する前に、原スプレッドシートの表計算プログラムをプリ処理、ソルバー、ポスト処理の3つに分けて別のシートやブックに保管しておき、ソルバー部分にのみ本装置10を適用すると表計算プログラムの全体像がより分かりやすくなる。プリ処理とは、ソルバー用の入力データを一定の表やグラフや図として表示する処理、ポスト処理とは、ソルバーの計算結果を用いて一定の表やグラフや図を作成する処理をいう。   In addition, before executing the alignment visualization of the spreadsheet program in the apparatus 10, the spreadsheet program of the original spreadsheet is divided into pre-processing, solver, and post-processing and stored in another sheet or book, If the present apparatus 10 is applied only to the solver portion, the whole picture of the spreadsheet program becomes easier to understand. Pre-processing refers to processing for displaying solver input data as a fixed table, graph, or figure, and post processing refers to processing for creating a fixed table, graph, or figure using the calculation results of the solver.

以上、本実施形態によると、原スプレッドシートにおいてさまざまな列に分散してわかりづらくなっていた数値および計算式が、新スプレッドシートにおいて特定の列(図6の例ではF列)にすべて集約される。これにより、他人が作成した表計算プログラムの計算式や計算の流れが理解しやすくなり、メンテナンスも容易になり、さらには、ほかのプログラムやデータベースと入出力データをリンクさせることが容易になる。   As described above, according to the present embodiment, the numerical values and the calculation formulas that are difficult to understand by being dispersed in various columns in the original spreadsheet are all collected in a specific column (F column in the example of FIG. 6). The This makes it easier to understand the calculation formulas and flow of spreadsheet programs created by others, facilitates maintenance, and makes it easy to link input / output data with other programs and databases.

なお、本発明は上記の実施形態に限定されない。例えば、本発明に係る表計算プログラムの整列可視化装置はタブレットPCやノートPCなどで実現することもできる。また、PCなどの汎用コンピュータに表計算プログラムの整列可視化プログラムを実行させて当該汎用コンピュータを表計算プログラムの整列可視化装置として機能させることもできる。表計算プログラムは、例えば、Excel(登録商標)のVBAマクロとして記述することができる。また、本発明に係る表計算プログラムの整列可視化装置は、表計算プログラムの整列可視化方法を実施するネットワーク上のサーバーから汎用コンピュータがサービス提供を受けるといったSaaS(Software as a Service)などのいわゆるクラウドシステムとして実現することもできる。   In addition, this invention is not limited to said embodiment. For example, the spreadsheet program alignment visualization device according to the present invention can be realized by a tablet PC, a notebook PC, or the like. It is also possible to cause a general-purpose computer such as a PC to execute a spreadsheet program alignment visualization program so that the general-purpose computer functions as a spreadsheet calculation alignment visualization device. The spreadsheet program can be described as, for example, an Excel (registered trademark) VBA macro. In addition, the spreadsheet program alignment visualization apparatus according to the present invention is a so-called cloud system such as SaaS (Software as a Service) in which a general-purpose computer receives a service from a server on a network that implements the spreadsheet visualization method. It can also be realized as.

10 表計算プログラムの整列可視化装置
14 処理装置
10 Spreading and visualizing device for spreadsheet program 14 Processing device

Claims (6)

表計算プログラムが記述され、データ入力用のセルに初期値が入力された原スプレッドシートをスキャンして前記初期値、前記初期値以外の数値、および計算式のいずれかが格納されている対象セルを検出し、
前記対象セルのセル番地を文字列化して新スプレッドシートにおける第1の列のセルに順次格納し、
前記対象セルのデータを文字列化して前記新スプレッドシートにおける第2の列のセルに順次格納し、
前記対象セルの変数種別を表す記号を前記新スプレッドシートにおける第3の列のセルに順次格納し、
前記原スプレッドシートにおいて前記対象セル近傍の第1および第2のセルのデータを変数名および単位を表す情報として前記新スプレッドシートにおける第4および第5の列のセルにそれぞれ順次格納し、
前記第2の列のセルに格納された文字列を数値化または計算式化して前記新スプレッドシートにおける第6の列のセルに順次格納し、
前記新スプレッドシートを前記第3の列をキーにしてソートする処理装置を備え、
前記処理装置が、前記第1の列から、前記第2の列のセルに格納された文字列中のセル参照文字列と同じ文字列を格納しているセルを見つけ、前記セル参照文字列を当該見つけたセルと同じ行にある前記第6の列のセルのセル参照に置換することで、前記第2の列のセルに格納された文字列を計算式化する
ことを特徴とする表計算プログラムの整列可視化装置。
A target cell in which a spreadsheet program is described, and the initial value, a numerical value other than the initial value, and a calculation formula are stored by scanning an original spreadsheet in which an initial value is input to a cell for data input Detect
The cell address of the target cell is converted into a character string and sequentially stored in the cells of the first column in the new spreadsheet,
The data of the target cell is converted into a character string and sequentially stored in the cell of the second column in the new spreadsheet,
A symbol representing the variable type of the target cell is sequentially stored in a third column of cells in the new spreadsheet;
In the original spreadsheet, the data of the first and second cells in the vicinity of the target cell are sequentially stored in the cells in the fourth and fifth columns in the new spreadsheet as information representing variable names and units, respectively.
The character string stored in the cell of the second column is converted into a numerical value or a calculation formula and sequentially stored in the cell of the sixth column in the new spreadsheet,
A processing device for sorting the new spreadsheet using the third column as a key;
The processing device finds a cell that stores the same character string as the cell reference character string in the character string stored in the cell of the second column from the first column, and determines the cell reference character string. A table calculation characterized by formulating the character string stored in the cell of the second column by replacing the cell reference of the cell of the sixth column in the same row as the found cell Program alignment visualization device.
前記処理装置が、前記第1の列のセルの書き換えに応じて、前記第2の列のセルに格納された文字列中の対応文字列を書き換える、請求項1に記載の表計算プログラムの整列可視化装置。   The arrangement of the spreadsheet program according to claim 1, wherein the processing device rewrites a corresponding character string in a character string stored in a cell of the second column in response to rewriting of the cell of the first column. Visualization device. 処理装置が、表計算プログラムが記述され、データ入力用のセルに初期値が入力された原スプレッドシートをスキャンして前記初期値、前記初期値以外の数値、および計算式のいずれかが格納されている対象セルを検出するステップと、
前記処理装置が、前記対象セルのセル番地を文字列化して新スプレッドシートにおける第1の列のセルに順次格納するステップと、
前記処理装置が、前記対象セルのデータを文字列化して前記新スプレッドシートにおける第2の列のセルに順次格納するステップと、
前記処理装置が、前記対象セルの変数種別を表す記号を前記新スプレッドシートにおける第3の列のセルに順次格納するステップと、
前記処理装置が、前記原スプレッドシートにおいて前記対象セル近傍の第1および第2のセルのデータを変数名および単位を表す情報として前記新スプレッドシートにおける第4および第5の列のセルにそれぞれ順次格納するステップと、
前記処理装置が、前記第2の列のセルに格納された文字列を数値化または計算式化して前記新スプレッドシートにおける第6の列のセルに順次格納するステップと、
前記処理装置が、前記新スプレッドシートを前記第3の列をキーにしてソートするステップとを備え、
前記第6の列のセルに順次格納するステップでは、前記第1の列から、前記第2の列のセルに格納された文字列中のセル参照文字列と同じ文字列を格納しているセルを見つけ、前記セル参照文字列を当該見つけたセルと同じ行にある前記第6の列のセルのセル参照に置換することで、前記第2の列のセルに格納された文字列を計算式化する
ことを特徴とする表計算プログラムの整列可視化方法。
The processing device scans an original spreadsheet in which a spreadsheet program is described and an initial value is input to a cell for data input, and stores either the initial value, a numerical value other than the initial value, or a calculation formula. Detecting a target cell that has
The processing device converts the cell address of the target cell into a character string and sequentially stores it in the first column of cells in a new spreadsheet;
The processing device converts the data of the target cell into a character string and sequentially stores the data in a second column of cells in the new spreadsheet;
The processor sequentially stores symbols representing the variable type of the target cell in the cells of the third column in the new spreadsheet;
The processing device sequentially applies the data of the first and second cells in the vicinity of the target cell in the original spreadsheet to the cells in the fourth and fifth columns in the new spreadsheet as information representing variable names and units, respectively. Storing, and
The processing device quantifies or formulates the character string stored in the cell of the second column and sequentially stores it in the cell of the sixth column in the new spreadsheet;
The processing apparatus comprising: sorting the new spreadsheet using the third column as a key;
In the step of sequentially storing the cells in the sixth column, cells storing the same character string as the cell reference character string in the character string stored in the cell of the second column from the first column And replacing the cell reference character string with the cell reference of the cell in the sixth column in the same row as the found cell, thereby calculating the character string stored in the cell in the second column. A method for visualizing the alignment of a spreadsheet program, characterized by:
前記処理装置が、前記第1の列のセルの書き換えに応じて、前記第2の列のセルに格納された文字列中の対応文字列を書き換えるステップを備えている、請求項3に記載の表計算プログラムの整列可視化方法。   The said processing apparatus is provided with the step which rewrites the corresponding character string in the character string stored in the cell of the said 2nd column according to rewriting of the cell of the said 1st column. A method for visualizing the alignment of spreadsheet programs. 表計算プログラムが記述され、データ入力用のセルに初期値が入力された原スプレッドシートをスキャンして前記初期値、前記初期値以外の数値、および計算式のいずれかが格納されている対象セルを検出する手段、
前記対象セルのセル番地を文字列化して新スプレッドシートにおける第1の列のセルに順次格納する手段、
前記対象セルのデータを文字列化して前記新スプレッドシートにおける第2の列のセルに順次格納する手段、
前記対象セルの変数種別を表す記号を前記新スプレッドシートにおける第3の列のセルに順次格納する手段、
前記原スプレッドシートにおいて前記対象セル近傍の第1および第2のセルのデータを変数名および単位を表す情報として前記新スプレッドシートにおける第4および第5の列のセルにそれぞれ順次格納する手段、
前記第2の列のセルに格納された文字列を数値化または計算式化して前記新スプレッドシートにおける第6の列のセルに順次格納する手段、および
前記新スプレッドシートを前記第3の列をキーにしてソートする手段としてコンピュータを機能させ、
前記第6の列のセルに順次格納する手段が、前記第1の列から、前記第2の列のセルに格納された文字列中のセル参照文字列と同じ文字列を格納しているセルを見つけ、前記セル参照文字列を当該見つけたセルと同じ行にある前記第6の列のセルのセル参照に置換することで、前記第2の列のセルに格納された文字列を計算式化する
ことを特徴とする表計算プログラムの整列可視化プログラム。
A target cell in which a spreadsheet program is described, and the initial value, a numerical value other than the initial value, and a calculation formula are stored by scanning an original spreadsheet in which an initial value is input to a cell for data input Means for detecting,
Means for converting the cell address of the target cell into a character string and sequentially storing it in the first column of cells in a new spreadsheet;
Means for converting the data of the target cell into a character string and sequentially storing the data in a second column of cells in the new spreadsheet;
Means for sequentially storing symbols representing the variable types of the target cells in the cells of the third column in the new spreadsheet;
Means for sequentially storing the data of the first and second cells in the vicinity of the target cell in the original spreadsheet as information representing variable names and units in the cells in the fourth and fifth columns in the new spreadsheet, respectively;
Means for digitizing or calculating a character string stored in the cell of the second column and sequentially storing it in a cell of the sixth column in the new spreadsheet; and Make the computer function as a means of sorting by key,
A cell in which the means for sequentially storing the cells in the sixth column stores the same character string as the cell reference character string in the character string stored in the cell of the second column from the first column And replacing the cell reference character string with the cell reference of the cell in the sixth column in the same row as the found cell, thereby calculating the character string stored in the cell in the second column. An alignment visualization program for a spreadsheet program, characterized by:
前記第1の列のセルの書き換えに応じて、前記第2の列のセルに格納された文字列中の対応文字列を書き換える手段としてコンピュータを機能させる、請求項5に記載の表計算プログラムの整列可視化プログラム。   The spreadsheet program according to claim 5, wherein the computer functions as means for rewriting the corresponding character string in the character string stored in the cell of the second column in response to rewriting of the cell of the first column. Alignment visualization program.
JP2013051483A 2013-03-14 2013-03-14 Device, method, and program for aligning and visualizing spreadsheet program Pending JP2014178812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013051483A JP2014178812A (en) 2013-03-14 2013-03-14 Device, method, and program for aligning and visualizing spreadsheet program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013051483A JP2014178812A (en) 2013-03-14 2013-03-14 Device, method, and program for aligning and visualizing spreadsheet program

Publications (1)

Publication Number Publication Date
JP2014178812A true JP2014178812A (en) 2014-09-25

Family

ID=51698716

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013051483A Pending JP2014178812A (en) 2013-03-14 2013-03-14 Device, method, and program for aligning and visualizing spreadsheet program

Country Status (1)

Country Link
JP (1) JP2014178812A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110728113A (en) * 2018-06-28 2020-01-24 北京金山办公软件股份有限公司 Information screening method and device of electronic forms and terminal equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110728113A (en) * 2018-06-28 2020-01-24 北京金山办公软件股份有限公司 Information screening method and device of electronic forms and terminal equipment

Similar Documents

Publication Publication Date Title
JP6282116B2 (en) Associating captured image data with a spreadsheet
CN108959328B (en) Knowledge graph processing method and device and electronic equipment
US20130124957A1 (en) Structured modeling of data in a spreadsheet
Ranjani et al. Combination of NumPy, SciPy and Matplotlib/Pylab-a good alternative methodology to MATLAB-A Comparative analysis
JP2012500441A5 (en)
KR101773574B1 (en) Method for chart visualizing of data table
US20130262974A1 (en) Tabular widget with mergable cells
JP2012069085A (en) Display controller and program
US20170091597A1 (en) Method and computing device for optically recognizing mathematical expressions
WO2018005263A1 (en) Constructing new formulas through auto replacing functions
JP2018501551A (en) Formula processing method, apparatus, device, and program
JP2014178812A (en) Device, method, and program for aligning and visualizing spreadsheet program
JP6290716B2 (en) Environmental impact assessment system and method
CN112149402B (en) Document matching method, device, electronic equipment and computer readable storage medium
JP2019185682A (en) Computer program, information processing method, and computer
US9582782B2 (en) Discovering a reporting model from an existing reporting environment
JP6707410B2 (en) Document search device, document search method, and computer program
JP2011248740A (en) Data output device, data output method, and data output program
KR20190044400A (en) System and method for exploratory data visualization
CN112328837A (en) Data display method, device, equipment and storage medium
JP5033775B2 (en) Design rule generation device, design rule generation program
JP6777445B2 (en) Citation map generator, citation map generation method and computer program
JP6423671B2 (en) Web page copying apparatus, web page copying method, and program
JP7352315B2 (en) Information processing method, search system and search method
JP5944945B2 (en) In-memory management system and in-memory management program