コースのチャプター
Training · Track 14. Spreadsheets · Chapter 14.3 of 5
14.3 テーブル、検索、ビュー 2:17
範囲をテーブルとして書式設定し、テキストを検索して置換し、セルを変更せずに名前付きビューを保存します。
Holarch 2.35 の画面です。
学習内容
- 範囲を名前付きテーブルとして書式設定し、数式で使う
- ブック全体のテキストを 1 回の操作で検索して置換する
- フィルターボタンをオンにして列を並べ替える
- 名前付きビューを保存して、ビューを切り替える
EO-1 の質量予算を整理します。サブシステムの行を、名前、縞模様の行、フィルターボタン付きのテーブルとして書式設定し、検索と置換でサブシステム名をすべて変更し、プロジェクトと共有する名前付きビューで質量順にテーブルを並べ替え、セルを保存された状態のまま表示する既定のビューに戻します。
プロジェクトファイル
- 開始時のプロジェクト (.holarch.json。プロジェクトを管理 → プロジェクトファイル ▾ → プロジェクトをインポート (.json)…)
- 完成時のプロジェクト (.holarch.json。プロジェクトを管理 → プロジェクトファイル ▾ → プロジェクトをインポート (.json)…)
動画は holarch.app から再生されます。プライバシーポリシーをご覧ください。
演習
CubeSat EO-1 を使って、Holarch で実際に操作します。
- チャプターの開始ファイル、またはチャプター 14.2 のワークブックを開きます。
- A2:E8 を選択し、テーブルをクリックして、名前を
Subsystemsにし、OK をクリックします。 - 検索と置換を開き、
Commsを検索し、置換のフィールドを開いてCommunicationsと入力し、すべて検索、続いてすべて置換をクリックします。 - テーブル内をクリックし、並べ替えとフィルターを開いてフィルターボタンをオンにします。With contingency で降順(Z → A)で並べ替えを選択します。
- ビューを保存をクリックし、名前を
Heaviest firstにして、アクセス権のある全員を選択して保存します。既定と Heaviest first を切り替えます。
テーブルの名前が Subsystems になり、Comms が Communications に置き換わり、Heaviest first のビューで行が並べ替えられ、既定では行が元の順序で表示されれば完了です。
確認問題
- 数式から Subsystems テーブルの Mass 列を参照するにはどうしますか。
- ビューで並べ替えると、セルは変更されますか。
- ビューは、並べ替えとフィルター以外に何を保持しますか。
解答を表示
数式から Subsystems テーブルの Mass 列を参照するにはどうしますか。
Subsystems[Mass] と書きます。テーブル名の後に、角括弧で囲んだ列名を続けます。
ビューで並べ替えると、セルは変更されますか。
いいえ。ビューが変えるのはシートの見え方だけです。既定に戻すと、行は元の順序で表示されます。
ビューは、並べ替えとフィルター以外に何を保持しますか。
非表示の列、列幅、固定したウィンドウ枠です。
関連資料
トランスクリプト
トランスクリプトを表示 (ナレーションと画面の内容)
Introduction
Chapter three: tables, find and views. A table gives a block of rows a name and a style. Find and Replace changes text in one step. And views show the same cells in different ways.
In this chapter you organize the budget.
Tables
Select the headings and the six subsystems, A2 to E8, and click Table.
On screen: Name Box A2:E8 → Table.
The dialog shows the range, and that the first row holds the headers. Name the table Subsystems, and click OK.
On screen: Range A2:E8, headers; name Subsystems → OK.
The table has a styled header row and banded rows, and grows when you add a row below it. Its name works in formulas: Subsystems, with a column name in square brackets.
On screen: The table: header style, banded rows.
Find and Replace
One subsystem is abbreviated. Open Find and Replace. Find Comms, open the replace field, and type Communications.
On screen: Find ▾ → Comms; ⇄ → Communications.
Find All lists each match with its sheet and cell. Click Replace All: the name is changed everywhere it appears, in one undo step. Close the bar.
On screen: Find All → the results; Replace All → close.
Named views
Now a view. Views change how you see the sheet, never the cells. Click in the table, open Sort and Filter, and turn on Filter Buttons.
On screen: B3 → Sort & Filter ▾ → Filter Buttons.
Click the filter button on With contingency, and choose Sort Z to A: the heaviest subsystem comes first.
On screen: With contingency ▾ → Sort Z to A.
The views bar shows the unsaved change. Click Save View, name it Heaviest first, choose Everyone with access, and save it.
On screen: Save View → Heaviest first, Everyone with access → Save View.
A view keeps sort, filters, hidden columns, widths and frozen panes. Click Default: the rows are back in their order, because the cells never changed. Everyone with access can switch views without affecting anyone else.
On screen: Default → rows in order; Heaviest first.
Recap
To recap: format rows as a named table, use Find and Replace for changes in many cells, and save sorts and filters as views.
In the next chapter, you chart the budget and feed it from the model.