JPS6385961A - Text processor with table calculation function - Google Patents
Text processor with table calculation functionInfo
- Publication number
- JPS6385961A JPS6385961A JP61230149A JP23014986A JPS6385961A JP S6385961 A JPS6385961 A JP S6385961A JP 61230149 A JP61230149 A JP 61230149A JP 23014986 A JP23014986 A JP 23014986A JP S6385961 A JPS6385961 A JP S6385961A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- register
- text
- coordinate
- data
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
Description
【発明の詳細な説明】
[IIe業上の利用分野]
この発明は、ワードプロセッサ茅において、文章メモリ
上に作成された表内の数値を縦方向あるいは横方向に累
計するようにした表計算機能付き文章処理装置に関する
。[Detailed Description of the Invention] [Field of Industrial Application of IIe] This invention provides a word processor Kaya with a spreadsheet function that cumulatively adds up numerical values in a table created on a text memory in the vertical or horizontal direction. It relates to a text processing device.
[発明の概要]
この発明は1文章メモリ内にM線で囲まれた表を作威可
18なワードプロセッサ等において1表内に二次元配列
された数値を予め指定された範囲内で横方向あるいは縦
方向別に累計し、その累計値を文屯メそりの指定表項目
内に書き込むことにより、縦横集計を文章メモリ内に作
成された表に基づいて実行することができるようにした
ものである。[Summary of the Invention] This invention is capable of creating a table surrounded by M lines in one text memory.In a word processor, etc., the numbers arranged two-dimensionally in one table can be horizontally or By cumulating the total in each vertical direction and writing the cumulative value in the designated table item of the text memory, it is possible to perform vertical and horizontal totals based on the table created in the text memory.
[従来の技術]
従来、ワードプロセッサにおいては、任意の大きさの表
を文章メモリ内に作成することができる作表機部を備え
たものが実用化され、これにより売上管理表や成績表あ
るいは見積表等を容易に作成することができるようにな
っている。[Prior Art] Conventionally, word processors have been put into practical use that are equipped with a tabulation unit that can create tables of any size in text memory, and this allows them to be used to create sales management tables, report cards, or estimates. Tables etc. can be easily created.
[発明が解決しようとする問題点]
しかしながら、この種の作表機能付きワードプロセッサ
において、例えば、売上管理表を作成するような場合に
、商品別売上合計個数や合計金額あるいは総売上個数や
総売上金額を予め小型電子式計算機等で計算しなければ
ならず、その結果作表を効率良く行うことができないと
いう欠点があった。[Problems to be Solved by the Invention] However, in this type of word processor with tabulation function, when creating a sales management table, for example, it is difficult to calculate the total number of sales by product, the total amount, the total number of sales, or the total sales. The amount has to be calculated in advance using a small electronic calculator or the like, which has the disadvantage that tabulation cannot be done efficiently.
この発明は上述した事情を背景になされたもので、その
目的とするところは、文章メモリ上に作成された表内の
数値(二次元数値)に基づいて縦集計や横集計が実行回
部な表計算機能付き文章処理装置を提供することにある
。This invention was made against the background of the above-mentioned circumstances, and its purpose is to perform vertical and horizontal aggregation based on the numerical values (two-dimensional numerical values) in the table created on the text memory. An object of the present invention is to provide a text processing device with a spreadsheet function.
[問題点を解決するための手段J
第1図はこの発明の機部ブロック図である0図中1は文
章メモリ、2は文章メモリl内に作成された表を構成す
る複数の表項目のうち演算の対象とすべき全表項目の範
囲を指定する為に少なくとも2つの表項目を指定する第
1の指定手段と、3は文章メモリ1内に作成された表を
a成する複数の表項目のうち演算結果を書き込むべき少
なくとも1つの表項目を指定する第2の指定手段、4は
第2の指定手段3で指定された範囲内の各表項目を縦方
向あるいは横方向から順次指定すると共に指定された表
項目に含まれる数値を文章メモリ1から読み出してこれ
を縦方向あるいは横方向別に累計する@算手段、5は、
この演算手段4で得られた演算結果データを第2の指定
手段3で指定された表項目内に古き込む書込手段である
。[Means for Solving the Problems J] Figure 1 is a block diagram of the machine part of this invention. In Figure 1, 1 is a text memory, and 2 is a list of multiple table items constituting a table created in the text memory l. A first specifying means for specifying at least two table items in order to specify the range of all table items to be subjected to calculation, and 3 a plurality of tables forming the table created in the text memory 1. A second specifying means for specifying at least one table item among the items into which the calculation result should be written; 4 specifies each table item within the range specified by the second specifying means 3 sequentially from the vertical or horizontal direction; @Calculation means 5 reads the numerical values included in the specified table items from the text memory 1 and totals them vertically or horizontally.
This is a writing means for writing the calculation result data obtained by the calculation means 4 into the table item designated by the second designation means 3.
[作 用]
この発明の作用について説明する。先ず1文章メモリl
に罫線で囲まれた表を作成すると共に、この表内に演算
の対象とすべき数値を書き込んでおく、この状態におい
て、第1の指定手段2で表内の各表項目のうち演算の対
象とすべき全表項目の範囲を指定する。この場合、例え
ば、CRT画面に表示されている表を見ながらカーソル
キーを操作して演算対象となる範囲の少なくともその始
点、終点にカーソルを位置させ、その位置座標を夫々取
り込むことによって行なわれる。このようにして′@算
対象となる範囲を指定すると、演算子段4は表内の横方
向に配列されている数値を順次読み出して累計する横集
計処理を実行し、また、表内の縦方向に配列されている
数値を順次読み出して累計する縦集計処理を実行する。[Function] The function of this invention will be explained. First, one sentence memory
Create a table surrounded by ruled lines, and write the numerical values to be calculated in this table.In this state, use the first specifying means 2 to select the target of calculation among each table item in the table. Specify the range of all table items to be included. In this case, for example, while looking at a table displayed on a CRT screen, the cursor is operated by operating a cursor key to position the cursor at at least the start point and end point of the range to be calculated, and the position coordinates are respectively taken in. In this way, when the range to be calculated is specified, operator stage 4 executes horizontal aggregation processing that sequentially reads and totals the numbers arranged horizontally in the table. Executes vertical aggregation processing in which numerical values arranged in the direction are sequentially read and totaled.
このようにして得られた演算結果データは、書込手段5
の制御下で第2の指定手段3によって指定されている衷
項目内に書き込まれる。The calculation result data obtained in this way is stored in the writing means 5.
under the control of the second specifying means 3.
[実施例]
以下、この発明を第2図〜第5図に示す一実施例に基づ
いて具体的に説明する。なお、本実施例は作表機能付き
日本語ワードプロセッサに適用した例を示している。[Example] Hereinafter, this invention will be specifically described based on an example shown in FIGS. 2 to 5. Note that this embodiment shows an example in which the present invention is applied to a Japanese word processor with tabulation function.
棟−虞
第2図はこのワードプロセッサの基本的なブロック回路
図である0図中11は、このワードプロセッサの入力部
で、このキーボード上には、数字キーKA、文字キーK
B、実行+−KC1777クシヨンキーKD、カーソル
キーKE、表集計キーKFが設けられている。なお、表
集計キーKFは横集計、縦集計を実行開始させる為のキ
ーである。しかして、入力部11から操作キーに対応し
して出力されるキー人力信号は、入力制御部12に送ら
れてキーコードに変換されたのち、CPU(中央演算処
理回路)13に取り込まれ、その入力処理プログラムを
指定する。Figure 2 is a basic block circuit diagram of this word processor. 11 in Figure 2 is the input section of this word processor. On this keyboard, there are number keys KA and letter keys K.
B. Execution +-KC1777 A button key KD, a cursor key KE, and a tabulation key KF are provided. Note that the table aggregation key KF is a key for starting execution of horizontal aggregation and vertical aggregation. Thus, the key human power signals outputted from the input unit 11 in response to the operation keys are sent to the input control unit 12 and converted into key codes, and then taken into the CPU (central processing circuit) 13. Specifies the input processing program.
CPU13は予め記憶されているマイクロプロダラムに
したがって入力処理、文章作成処理、表示処J9!等を
実行すると共に1本実施例においては、表計算(表集計
)を実行するようになっている。そして、CPU13に
は文章メモリ14が接続されている。The CPU 13 performs input processing, text creation processing, and display processing according to the microprogram stored in advance. etc., and in this embodiment, spreadsheet calculations (table tabulation) are also executed. A text memory 14 is connected to the CPU 13.
文章メモリ14はRAM(ランダムアクセスメモリ)に
よって構成され、CPU13の制御下でデータの書き込
み、読み出し動作が制御されると共に、テキストポイン
タ15の値にしたがってその書き込みあるいは読み出し
アドレスが指定される。The text memory 14 is constituted by a RAM (random access memory), and data writing and reading operations are controlled under the control of the CPU 13, and the writing or reading address is specified according to the value of the text pointer 15.
ワークRAM16はCPU13の制御下でデータの書き
込み、読み出し動作が制御されるもので、Pレジスタお
よびQレジスタを有するJili戊となっており、Pレ
ジスタおよびQレジスタは1表集計時に使用されるy4
ri用レジスタである。The work RAM 16 controls data writing and reading operations under the control of the CPU 13, and has a P register and a Q register.
This is a register for ri.
座標メモリ17は文章メモリ14上の各種の座標位置デ
ータ(x、y)、(xo 、 yo )、(xl 、y
+ )、(X2 、 72 )、(x3173)を記憶
するもので、これらは表計算実行時に使用され、CPU
13に取り込まれる。The coordinate memory 17 stores various coordinate position data (x, y), (xo, yo), (xl, y) on the text memory 14.
+ ), (X2, 72), and (x3173), which are used when executing spreadsheets and are
Incorporated into 13.
表示部18は例えばCR7表示装置によって構成され、
CPU13から出力された表示用データが表示調御部1
9で表示駆動信号に変換されることにより、1画面分の
データを表示する。The display unit 18 is composed of, for example, a CR7 display device,
The display data output from the CPU 13 is sent to the display control unit 1.
By converting the signal into a display drive signal at step 9, data for one screen is displayed.
東−芸
先ず1通常のキー操作手順にしたがって文章メモリ14
内にM線で囲まれた表を作成する0例えば、第3図に示
すような表を文章メモリ14内に作成したものとする。To-gei First 1 Follow the normal key operation procedure to select the text memory 14.
For example, suppose that a table as shown in FIG. 3 is created in the text memory 14.
この場合、表を構成する各表項目は縦方向に3個、横方
向に3個設けられ、その下側3個、右側3個を除く各表
項目には、上に「lO」、r40J、下にr20」、r
3(Hの如く、二次元配列された数値が書き込まれてい
る。なお1図中、(l、1)〜(3,3)は1行1桁目
から3行3桁■までの表項目に対応し、また1文章メモ
リ14の座標位置は図中左上端部を基点(l、1)とし
て定められている。In this case, each table item that makes up the table is provided 3 vertically and 3 horizontally, and each table item except for 3 on the bottom and 3 on the right has "lO", r40J, R20 below, r
3 (H) Numerical values are written in a two-dimensional array. In Figure 1, (l, 1) to (3, 3) are the table items from the 1st row, 1st digit to the 3rd row, 3rd digit. , and the coordinate position of the one-sentence memory 14 is determined with the upper left end in the figure as the base point (l, 1).
次に、上述のように作成された文章メモリ14内の表に
基いた表集計を行う場合には、表集計午−KFを操作す
る。すると、第4図のフローにしたがった動作が実行開
始される。先ず、文章メモリ14内に作成した表を表示
部18に表示させた状態において、カーソルキーKEを
操作してカーソルを移動させ、カーソルを表の基準位置
(第3図中左上端位置)にセットする(ステップ31)
そして、実行キーKCI:操作すると、現在のカーソル
座標例えば、(4,2)が座標メモリ17に基準位置座
標(xo 、 yo )としてセットされる(ステッ
プS2)。Next, when performing tabulation based on the table in the text memory 14 created as described above, the table tabulation function -KF is operated. Then, the operation according to the flow shown in FIG. 4 starts to be executed. First, while the table created in the text memory 14 is displayed on the display section 18, operate the cursor key KE to move the cursor and set the cursor to the standard position of the table (top left position in FIG. 3). (Step 31)
When the execution key KCI is operated, the current cursor coordinates, for example (4, 2), are set in the coordinate memory 17 as the reference position coordinates (xo, yo) (step S2).
このようにして表の基準位置を入力したら、次に1文章
メモリ14内に作成された表をJIIIR,する複数の
表項目のうち表集計を行う対象となる範囲の指定を行う
、この場合、対象範囲の始点と終点の2箇所を指定する
ことによって行なわれる。先ず、カーソルキーKEを操
作してカーソルを対象範囲の始点位置に合わせる(ステ
ップS3)、そして、実行キーKCを操作すると、現在
のカーソル座標が座標メモリ17に始点位置座e!(x
i。After inputting the reference position of the table in this way, the table created in the one-sentence memory 14 is then JIIIR, and the range to be tabulated is specified among the multiple table items. In this case, This is done by specifying two points, the start and end points of the target range. First, operate the cursor key KE to align the cursor with the starting point position of the target range (step S3), and then operate the execution key KC, the current cursor coordinates are stored in the coordinate memory 17 as the starting point position e! (x
i.
y+)としてセットされる(ステップS4)、続いて、
カーソルキーKEを操作してカーソルを対象範囲の終点
位置に合わせる(ステップS5)。y+) (step S4), followed by
The cursor key KE is operated to move the cursor to the end point of the target range (step S5).
そして、実行キーKCを操作すると、現在のカーソル座
標が座標メモリ17に終点位置座標(X2 、 Vz
)としてセットされる(ステップS6)。Then, when the execution key KC is operated, the current cursor coordinates are stored in the coordinate memory 17 as the end point position coordinates (X2, Vz
) (step S6).
次に、演算結果を表のどの位置に書き込むかの出力位置
にカーソルを合わせる(ステップS7)、そして、実行
キーKCを操作すると、現在のカーソル座標が座標メモ
リ17に出力位置座標(X3 、 73 )としてセッ
トされる(ステップS8)。Next, move the cursor to the output position where the calculation result is to be written in the table (step S7), and operate the execution key KC, the current cursor coordinates will be stored in the coordinate memory 17 as the output position coordinates (X3, 73 ) (step S8).
このようにして各種の座標入力処理が終ると、指定され
た範囲内でMI集計や縦集計が実行される。ここで、第
3図に示す例で、演算対象の始点位置(x+ 、y+
)として(6,3)、終点位n(X2 、72 )とし
て(10,5)をセットし、そして出力位と座標(X3
、y3)として(13,7)を指定したものとする。When the various coordinate input processes are completed in this way, MI aggregation and vertical aggregation are executed within the specified range. Here, in the example shown in Fig. 3, the starting point position (x+, y+
) as (6,3), the end point position n(X2,72) as (10,5), and the output position and coordinate (X3
, y3) is designated as (13, 7).
この場合、出力位置のY座標は73=7.終点位δのY
座標はy2=5であるから、ステップS9で73 >y
2の関係が成立していることが検出される。これによっ
てステップ310に進み、出力位置のX座標x3と終点
位置のX座標x2とが比較されてX3>X2の関係が成
立するか否かの判断が行なわれる。いま、X3=13、
X2=10であるから、縦集計処理(ステップ311)
が実行されると共に、横集計処理(ステップS 12)
が実行され、その後、横集計の結果を集計する処理(ス
テップS 13)が行なわれる。In this case, the Y coordinate of the output position is 73=7. Y of end point δ
Since the coordinate is y2=5, 73 > y in step S9
It is detected that the following relationship holds true. The process then proceeds to step 310, where the X coordinate x3 of the output position and the X coordinate x2 of the end point position are compared to determine whether the relationship X3>X2 holds. Now, X3=13,
Since X2=10, vertical aggregation processing (step 311)
is executed, and horizontal aggregation processing (step S12)
is executed, and then a process (step S13) of totalizing the horizontal totaling results is performed.
一方、出力位置座標(x3.73 )として(13,5
)が指定されているものとすると、13”V2 となり
、ステップS9でそのことが検出されてステップ314
に進み、横集計処理のみが行なわれる。また、出力位置
座標(x3.72)として(10,7)が指定されてい
るものとすると、 X3 =X2 となり、そのこと
がステップS10で検出されてステップ315に進み、
縦集計処理のみが行われる。On the other hand, the output position coordinates (x3.73) are (13,5
) is specified, it becomes 13”V2, which is detected in step S9 and the process proceeds to step 314.
Then, only horizontal aggregation processing is performed. Furthermore, if (10,7) is specified as the output position coordinate (x3.72), then X3 = X2, which is detected in step S10 and the process proceeds to step 315.
Only vertical aggregation processing is performed.
次に、第5図を参照して上記横集計処理を具体的に説明
する。このフローに入ると、先ず、カーソルを始点位置
座標(x+ 、y+ )に移動させる(ステ、プ521
)、次で、現在のカーソル座標を含む表引[1内から項
目データを全て読み出し、これをワークRAM16内の
Pレジスタに転送する。 p、aち、いま、始点位置座
標(x+ 、y+ )が(6,3)とすると、表項目(
1,1)内のデータ(10)が読み出されてPレジスタ
に転送される。ここで、表項目(1,l)から全てのデ
ータを読み出す場合には、次の如くして行なわれる。Next, the above-mentioned horizontal aggregation process will be specifically explained with reference to FIG. When entering this flow, first move the cursor to the starting point position coordinates (x+, y+) (step 521).
), then all item data is read from table lookup [1 including the current cursor coordinates and transferred to the P register in the work RAM 16. p, a, now, if the starting point position coordinates (x+, y+) are (6, 3), the table item (
1,1) is read out and transferred to the P register. Here, when all data is read from table item (1, l), it is performed as follows.
先ず、現在のカーソル座6(6,3)から左方向の罫線
コードがサーチされるまでxP!標をrlJずつ減算し
、そして、右方向のπ線コードが検索されると、今度は
X座標をrlJずつ加算してX座標を右方向へ移動させ
てゆき、データの先頭を見つける。そして、データの先
頭が捜し出されると、その先頭から1桁ずつ右方向へ移
動させてゆきながらデータを順次取り出してゆ#、次の
罫線コードが来るまで右方向への移動を続行する。これ
によって、1項目内に記録されている全てのデータをそ
の先頭から順番に取り出すことができる。したがって、
表項目内のデータ記録領域、つまり、その先頭から最後
の位置を指定しなくともそのデータの一部を指定するだ
けでその表項目内の全てのデータを取り出すことができ
る。First, xP! is searched from the current cursor position 6 (6, 3) until the leftward ruled line code is searched. The mark is subtracted by rlJ, and when the rightward π-line code is searched, the X coordinate is added by rlJ to move the X coordinate to the right, and the beginning of the data is found. When the beginning of the data is found, the data is sequentially taken out while moving one digit to the right from the beginning, and the movement to the right continues until the next ruled line code is reached. This allows all data recorded in one item to be retrieved in order from the beginning. therefore,
All data in a table item can be retrieved by simply specifying a part of the data without specifying the data recording area in the table item, that is, the position from the beginning to the end.
このようにして文章メモリ14から取り出した1表引日
内のデータは、Pレジスタに堆り込まれた後、Qレジス
タに転送される(ステップ523)、この結果Qレジス
タには表項目(l、1)内のデータ(10)がセットさ
れることになる。The data within the first table drawing date retrieved from the text memory 14 in this way is stored in the P register and then transferred to the Q register (step 523). As a result, the Q register contains the table items (l, Data (10) in 1) will be set.
そして、次のステップS24では、現在、方線上にある
X座標を右方向へ1桁移動させてその座標を座標メモリ
17の現在位置座標(x、y)としてセットされる、こ
の場合、この現在位置座標(x、y)は(9,3)とな
る、したがって、いま、現在位置のX座標がx=9.終
点位置のX座標がx2=10となるので、ステップS2
5ではx < X 2であることが検出されるので、次
のステップS26に進み、現在のカーソル座標を含む表
項目内から項目データが全て読み出されてPレジスタに
取り込まれる。この場合、上述したステップS22と同
様の動作が実行されることによって、現在の指定表項目
(1、?)に記憶されているデータが全て読み出されて
Pレシジスタに珈り込まれる。いまPレジスタに取り込
まれる。いま、Pレジスタには(40)、Qレジスタに
は(10)がセットされているので、次のステップS2
7でこれらが累計され、その結果がPレジスタに転送さ
れると、Pレジスタの値は(50)となる、その後、次
の表項目内のデータを累計する為に、ステップ323に
戻る。この場合、横集計を行う項目数は、第3図に示す
ように(2)であるから、ステップ325でそのことが
検出されてステップ528に進む。Then, in the next step S24, the X coordinate currently on the normal line is moved one digit to the right and that coordinate is set as the current position coordinate (x, y) in the coordinate memory 17. In this case, this current The position coordinates (x, y) are (9, 3). Therefore, the X coordinate of the current position is x=9. Since the X coordinate of the end point position is x2=10, step S2
5, it is detected that x < In this case, by performing the same operation as step S22 described above, all data stored in the current specification table item (1, ?) is read out and put into the P register. It is now loaded into the P register. Now, the P register is set to (40) and the Q register is set to (10), so the next step S2
When these are accumulated in step 7 and the result is transferred to the P register, the value of the P register becomes (50). Thereafter, the process returns to step 323 to accumulate the data in the next table item. In this case, since the number of items to be horizontally totaled is (2) as shown in FIG. 3, this is detected in step 325 and the process proceeds to step 528.
このステップ528においては、このような横集計で得
られた演算結果データがセットされているQレジスタの
内容が読み出されて文章メモリ14上の座標位21 C
x3.y)に書き込まれる。この場合、出力位置のX座
標はx3=13.現在位lのY座標はY=3であるから
、Qレジスタ内の@算結果(50)は、表項目(1,3
)内の座標(13,3)から順次書き込まれる。In this step 528, the contents of the Q register in which the calculation result data obtained by such horizontal aggregation are set are read out and the coordinate position 21C on the text memory 14 is read out.
x3. y). In this case, the X coordinate of the output position is x3=13. Since the Y coordinate of the current position l is Y=3, the @ calculation result (50) in the Q register is the table item (1, 3
) is written sequentially starting from the coordinates (13, 3).
そして、次のステップS29では現在位置のY座標と終
点位置のY座標との比較が行なわれる。Then, in the next step S29, the Y coordinate of the current position and the Y coordinate of the end point position are compared.
いま、現在位置のY座標はyz=3、終点位置のY座標
はy2=5であるから、次の横集計処理へ移行させる為
に、改行処理(ステップ530)が行なわれる。ここで
は、第3図に示すように、各表項目が縦方向に2行分の
大きさを持っているので、現在位置のY座標をプラス「
2」するインクリメント処理が実行される。これにより
、いまの場合にはy=5となる。そして、次のステップ
S31では、カーソルを座標(x+ 、y)に移動させ
る。いま、始点位置のX座標はx1=6、現在位置のY
座標はV=5であるから、カーソルが座標、(6,5)
の位tに移動することになる。このようにして2行目の
表項目(2、l)内の座標位21(6,5)にカーソル
が移動されると、ステップS22に戻り、その表項目(
2,1)からデータ(20)が読み出されてPレジスタ
に転送される。そして、以下1上述と同様の処理が実行
されることになって2行目の横集計値(50)が求めら
れ2表項口(2,3)内に書き込まれる。Now, since the Y coordinate of the current position is yz=3 and the Y coordinate of the end point position is y2=5, a line feed process (step 530) is performed in order to move on to the next horizontal aggregation process. Here, as shown in Figure 3, each table item has the size of two lines in the vertical direction, so the Y coordinate of the current position is plus "
2" increment processing is executed. As a result, in the present case, y=5. Then, in the next step S31, the cursor is moved to the coordinates (x+, y). Now, the X coordinate of the starting point position is x1=6, and the Y coordinate of the current position is
Since the coordinates are V=5, the cursor is at the coordinates (6, 5)
It will move to position t. When the cursor is moved to the coordinate position 21 (6, 5) in the table item (2, l) on the second line in this way, the process returns to step S22 and the table item (
Data (20) is read from 2, 1) and transferred to the P register. Then, the same process as described in 1 above is executed, and the horizontal total value (50) in the 2nd row is obtained and written into the 2nd table entry (2, 3).
このようにして2行目に対する横集計が終ると、現在位
置のY座標y=2.終点位置のY座標y2=2となるの
で、そのことがステップ529で検出され、これによっ
て横集計が耕了する。When the horizontal aggregation for the second row is completed in this way, the Y coordinate of the current position is y=2. Since the Y coordinate of the end point position y2=2, this is detected in step 529, and the horizontal totalization is thereby completed.
他方、縦集計のフローチャートは図示省略したが、縦計
算については、横計算の場合に比べて単に処理方向が上
下と左右の違いだけであり、基本的には横計算と同様で
ある。On the other hand, although the flowchart for vertical aggregation is omitted from illustration, the vertical calculation is basically the same as the horizontal calculation, with the only difference being the processing direction of up and down and left and right compared to the horizontal calculation.
このように本実施例においては表集計を行う場合、3点
の座標位置を指定するだけで所望する範囲内の表集計が
実行可能であると共に、その演算結果も所望する位置へ
書き込むことができるので、簡単な操作で多様性ある表
集計が可flとなる。In this way, in this embodiment, when performing table aggregation, it is possible to perform table aggregation within the desired range by simply specifying the coordinate positions of three points, and the calculation results can also be written to the desired position. Therefore, a variety of tabulations can be performed with simple operations.
なお、上記実施例では表計算の最後に横集計の結果を累
計する集計処理を実行するようにしたが、縦集計の結果
を累計するようにしてもよい。In the embodiment described above, the totalization process of summing up the results of horizontal aggregation is executed at the end of the spreadsheet calculation, but the results of vertical aggregation may also be cumulated.
[発明の効果]
この発明は以上詳廁に説明したように1文章メモリ内に
M!lで囲まれた表を作成可ス克なワードプロセッサ等
において表内に二次元配列された数値を予め指定された
範囲内で横方向あるいは縦方向別に累計し、その累計値
を文章メモリの指定表引日内に書き込むようにしたから
、縦横集計を文章メモリ内に作成された表に基づいて実
行することができる。また、少なくとも3点指定のみで
所望する範囲の表集計が実行可能であると共に、演算結
果を所望する位置に書き込むことができるので、多様性
ある表集計が可能となる等の効果を有する。[Effect of the invention] As explained in detail above, this invention stores M! in one sentence memory. It is possible to create a table surrounded by l.Using a powerful word processor, etc., the numbers arranged two-dimensionally in the table are totaled horizontally or vertically within a pre-specified range, and the cumulative value is added to the specified table in the text memory. Since the data is written within the specified date, it is possible to perform vertical and horizontal aggregation based on the table created in the text memory. In addition, it is possible to perform table aggregation in a desired range by specifying at least three points, and it is also possible to write the calculation results in a desired position, which has the effect of making it possible to perform a wide variety of table aggregation.
第1図はこの発明のa濠ブロック図、第2図〜第5図は
この発明の一実施例を示し、第2図はこの発明を適用し
たワードプロセッサの基本的なブロック回路図、第3図
は第2図で示した文章メモリ14内に作成された表を示
した図、第4図は表計算処理の全体動作を説明する為の
フローチャート、第5図は第4図で示した横集計処理の
具体的内容を説明する為のフローチャートである。
11・・・・・・入力部、13・・・・・・CPU、1
4・・・・・・文、6メモリ、16・・・・・・ワーク
RAM、17・・・・・・座標メモリ。
特許出願人 カシオ計算機株式会社
代理人 弁理士 町 1)俊 正
第1図
第2図FIG. 1 is a block diagram of this invention, FIGS. 2 to 5 show an embodiment of this invention, FIG. 2 is a basic block circuit diagram of a word processor to which this invention is applied, and FIG. is a diagram showing the table created in the text memory 14 shown in Fig. 2, Fig. 4 is a flowchart for explaining the overall operation of spreadsheet processing, and Fig. 5 is a horizontal aggregation shown in Fig. 4. It is a flowchart for explaining the specific contents of processing. 11...Input section, 13...CPU, 1
4...statement, 6 memory, 16...work RAM, 17...coordinate memory. Patent applicant Casio Computer Co., Ltd. Agent Patent attorney Machi 1) Tadashi Toshi Figure 1 Figure 2
Claims (1)
備えた文章処理装置において、 前記文章メモリ内に作成された表を構成する複数の表項
目のうち演算の対象とすべき全表項目の範囲を指定する
為に少なくとも2つの表項目を指定する第1の指定手段
と、 前記文章メモリ内に作成された表を構成する複数の表項
目のうち演算結果を書き込むべき少なくとも1つの表項
目を指定する第2の指定手段と、前記第2の指定手段で
指定された範囲内の各表項目を縦方向あるいは横方向か
ら順次指定すると共に指定された表項目に含まれる数値
を前記文章メモリから読み出してこれを縦方向あるいは
横方向別に累計する演算手段と、 この演算手段で得られた演算結果データを前記第2の指
定手段で指定された表項目内に書き込む書込手段と を具備したことを特徴とする表計算機能付き文章処理装
置。[Scope of Claim] In a text processing device equipped with a tabulation function that creates a table surrounded by ruled lines in a text memory, there is provided a text processing device that includes a tabulation function that creates a table surrounded by ruled lines in a text memory, a first specifying means for specifying at least two table items in order to specify the range of all table items to be targeted; a second specifying means for specifying at least one table item to be written, and sequentially specifying each table item within the range specified by the second specifying means from the vertical direction or the horizontal direction, and the specified table item. a calculation means for reading the included numerical values from the text memory and summing them vertically or horizontally, and writing the calculation result data obtained by the calculation means into the table item specified by the second specification means. 1. A text processing device with a spreadsheet function, characterized by comprising a writing means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61230149A JPS6385961A (en) | 1986-09-30 | 1986-09-30 | Text processor with table calculation function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61230149A JPS6385961A (en) | 1986-09-30 | 1986-09-30 | Text processor with table calculation function |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS6385961A true JPS6385961A (en) | 1988-04-16 |
Family
ID=16903357
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61230149A Pending JPS6385961A (en) | 1986-09-30 | 1986-09-30 | Text processor with table calculation function |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6385961A (en) |
-
1986
- 1986-09-30 JP JP61230149A patent/JPS6385961A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6243226B2 (en) | ||
| US4380053A (en) | Memory addressing system for sequentially accessing all memory addresses in a memory area | |
| JPS6385961A (en) | Text processor with table calculation function | |
| US7272621B2 (en) | Previous calculation reuse in a calculator | |
| US7403189B2 (en) | Graphical calculator | |
| US8332445B2 (en) | Computing machine with an inequality computation function | |
| JP2011043917A (en) | Mathematical expression display arithmetic unit and program | |
| JP2738851B2 (en) | Input data processing display method using multiple cursors | |
| JPS5911932B2 (en) | Numerical data input processing method using image display device | |
| JPH04127310A (en) | Character input system | |
| JP2696590B2 (en) | Input / output method of industrial robot controller | |
| JPH0432406B2 (en) | ||
| US5285399A (en) | Calculator with easily enterable constant calculation mode | |
| JPH0253817B2 (en) | ||
| JPS6385960A (en) | Text processing device with spreadsheet function | |
| JPH04436Y2 (en) | ||
| JPH0750470B2 (en) | Data processing device | |
| JPS605320A (en) | Menu appointing method and its device | |
| JPH05210688A (en) | Table calculation processing device | |
| JP2645174B2 (en) | Computer with field display function | |
| JPH11184614A (en) | Data input device | |
| JPH054045Y2 (en) | ||
| JP3091116B2 (en) | XY coordinate display method | |
| JPH08211985A (en) | Information processing device | |
| JPS6346869B2 (en) |