ほかのシートの参照

シートのセルでは、ほかのシート内のセルに対する参照を表示できます。

同じ方法で、ほかのドキュメントからもセル参照を行うことができます。この場合、そのドキュメントがファイルとして保存されていなければなりません。

同じドキュメントのセルを参照します。

  1. Open a new, empty spreadsheet. By default, it has only a single sheet named Sheet1. Add a second sheet clicking on + button to the left of the sheet tab in the bottom (it will be named Sheet2 by default).

  2. 例として、Sheet1 のセル A1 に次の数式を入力します。

    =Sheet2.A1

  3. 表計算ドキュメントの最下部にある Sheet2 タブをクリックします。 カーソルをセル A1 に置き、テキストまたは数値を入力します。

  4. Sheet1 に戻ると、セル A1 に同じ内容が入っているはずです。 Sheet2 A1 の内容が変化すると、Sheet1 A1 の内容も変化します。

tip

When referencing a sheet with name containing spaces, use single quotes around the name: ='Sheet with spaces in name'.A1


tip

The example uses Calc formula syntax. It is also possible to use Excel A1 or R1C1 formula syntax; this is configured on Formula options page.


ほかのドキュメント内のセルを参照する

  1. ファイル → 開く を選択し、既存の表計算ドキュメントを読み込みます。

  2. ファイル → 新規作成 を選択し、新しい表計算ドキュメントを開きます。 外部データを挿入するセルにカーソルを置き、数式を開始することを示すために等号を入力します。

  3. 次に、読み込んだばかりのドキュメントに切り替えます。 新しいドキュメントに挿入するデータが入ったセルをクリックします。

  4. 新しい表計算ドキュメントに戻ります。 入力行では、LibreOffice Calc がどのように数式に参照を追加したかが分かります。

    The reference to a cell of another document contains the fully qualified name of the other document between single quotes ('), then a hash #, then the name of the sheet of the other document, followed by a period and the name or reference of the cell.

    For example, .

    note

    The path and document name URI must always be enclosed in single quotes. If the name contains single quotes (') they must be escaped using two single quotes (''). Only a sheet name may not be quoted if it does not contain a space or a character that would be an operator or the name would be pure numeric (for example, '123' must be quoted).


  5. 緑色のチェックマークをクリックし、数式を確定します。

  6. If you drag the box in the lower right corner of the active cell to select a range of cells, LibreOffice automatically inserts the corresponding references in the adjacent cells. As a result, the sheet name is preceded with a "$" sign to designate it as an absolute reference.

この数式内のほかのドキュメントの名前をよく見ると、その名前が URL として示されていることがわかるはずです。 つまり、インターネットから URL を取り込むこともできるということです。

ご支援をお願いします!