Holarch
コースのチャプター

トレーニング · トラック 14. スプレッドシート · チャプター 14.2(全 5 チャプター)

14.2 書式とレイアウト 3:16

表示形式コードで数値の書式を設定し、値に応じてセルを強調表示し、タイトルを結合して見出しを固定します。

Holarch 2.35 の画面です。

学習内容

  • タイトルを結合して中央揃えにし、見出しを太字にする
  • 列幅を内容に合わせる
  • パーセントとユーザー定義の表示形式コードを適用する
  • 条件付き書式のルールで値を強調表示する
  • 見出し行を固定する

EO-1 の質量予算の書式を設定します。タイトルを列にわたって結合して中央揃えにし、見出しを太字にし、列幅を調整し、予備をパーセントで表示し、質量に単位を付けるユーザー定義の表示形式コードを指定し、重いサブシステムを条件付き書式で強調表示し、タイトルと見出しを固定して常に表示されるようにします。

プロジェクトファイル

  • 開始時のプロジェクト (.holarch.json。プロジェクトを管理 → プロジェクトファイル ▾ → プロジェクトをインポート (.json)…)
  • 完成時のプロジェクト (.holarch.json。プロジェクトを管理 → プロジェクトファイル ▾ → プロジェクトをインポート (.json)…)

動画は holarch.app から再生されます。プライバシーポリシーをご覧ください。

演習

CubeSat EO-1 を使って、Holarch で実際に操作します。

  1. チャプターの開始ファイル、またはチャプター 14.1 のワークブックを開いて、Budget シートを表示します。
  2. A1 に EO-1 Mass Budget と入力します。A1:E1 を選択してセルを結合して中央揃えをクリックします。名前ボックスで A1:E2 を選択し、太字をクリックします。
  3. B、D、E の列見出しの右端をダブルクリックして、列幅を内容に合わせます。
  4. D3:D8 を選択してパーセントをクリックします。C3:C8 を選択し、セルの書式設定 → ユーザー定義を開いて 0.00" kg" と入力します。E3:E10 も同様にし、E11 にはコード 0.0% を指定します。
  5. E3:E8 を選択し、条件付き書式 → セルの強調表示ルール → 指定の値より大きいを開いて、2 と入力します。
  6. A3 を選択してウィンドウ枠の固定を選択します。下にスクロールしても、1 行目と 2 行目は表示されたままです。

質量が kg で表示され、マージンがパーセントで表示され、2 kg を超えるサブシステムが強調表示され、スクロールしても見出しが動かなければ完了です。

確認問題

  1. 表示形式コード 0.00" kg" は、値 2.5 に対して何をしますか。
  2. ウィンドウ枠の固定の前に A3 を選択すると、1 行目と 2 行目が表示されたままになるのはなぜですか。
  3. 条件付き書式のルールはセルの値を変更しますか。
解答を表示
  1. 表示形式コード 0.00" kg" は、値 2.5 に対して何をしますか。

    2.50 kg と表示されます。値は数値の 2.5 のままなので、数式はそのまま計算に使えます。

  2. ウィンドウ枠の固定の前に A3 を選択すると、1 行目と 2 行目が表示されたままになるのはなぜですか。

    ウィンドウ枠の固定は、アクティブセルより上の行と左の列を固定します。

  3. 条件付き書式のルールはセルの値を変更しますか。

    いいえ。条件が成り立つ間のセルの見た目が変わるだけです。

関連資料

トランスクリプト

トランスクリプトを表示 (ナレーションと画面の内容)

Introduction

Chapter two: formats and layout. A format changes how a value looks, never the value itself, so formulas keep calculating with the full number.

In this chapter you make the budget easy to read.

Title and headings

Give the sheet a title. In A1, type EO-1 Mass Budget.

On screen: A1: EO-1 Mass Budget.

Select A1 to E1 in the Name Box. Open Merge, and choose Merge and Center: the five cells become one, with the title in the middle.

On screen: Name Box A1:E1 → Merge ▾ → Merge & Center.

Make the title and the headings bold: select them, and click Bold, or press Command B.

On screen: Name Box A1:E2 → Bold.

The subsystem names are wider than their column. Double-click the right edge of column B's heading, and the column fits its longest entry. Do the same for D and E.

On screen: Double-click the header borders of B, D and E: the columns fit.

Number formats

Now the numbers. Select the contingencies, D3 to D8, and click Percent. Zero point one shows as ten percent.

On screen: Name Box D3:D8 → %.

Select the masses, C3 to C8, and open Number Format. The menu lists the common formats, with a sample of each. Choose More Number Formats.

On screen: Name Box C3:C8 → Number Format ▾ → More Number Formats….

Format Cells shows the format as a code. Choose Custom, and type zero point zero zero, then a space and k g, in quotes. Text in quotes is shown as it is, so each mass reads in kilograms. The sample shows the result. Click OK.

On screen: Category: Custom; code 0.00 " kg" → sample → OK.

The masses with contingency get the same code. Select E3 to E10, open More Number Formats again, choose Custom, and type the code.

On screen: Name Box E3:E10 → More Number Formats… → Custom → 0.00 " kg" → OK.

The margin is a fraction. Select E11, and give it the code zero point zero percent: a percentage with one decimal.

On screen: E11 → More Number Formats… → Custom → 0.0% → OK.

Conditional formatting

Conditional formatting colors cells by their values. Select E3 to E8, open Conditional Formatting, then Highlight Cells Rules, and choose Greater Than.

On screen: Name Box E3:E8 → Conditional Formatting ▾ → Highlight Cells Rules ▸ → Greater Than….

Type two, keep the red fill, and click OK. The two heaviest subsystems stand out, and the color follows the values when they change.

On screen: Value 2 → OK: Payload Camera and Structure and Thermal turn red.

Freeze panes

Last, freeze panes keep the title and headings in view while you scroll. Select A3, open Freeze, and choose Freeze Panes: everything above the active cell stays put.

On screen: A3 → Freeze ▾ → Freeze Panes.

Scroll the sheet down. The rows move under the frozen title and headings.

On screen: Scroll down, then back up.

Recap

To recap: merge and center a title, fit columns by double-clicking their edge, choose formats from the menu or write a format code, color cells with a rule, and freeze the headings.

In the next chapter, you turn the budget into a table, find and replace text, and save views.