コースのチャプター
Training · Track 14. Spreadsheets · Chapter 14.1 of 5
14.1 シート、データ、数式 4:16
スプレッドシートを作成し、シートに名前と色を付け、データを入力し、数式バー、名前ボックス、オートコンプリートで数式を書きます。
Holarch 2.35 の画面です。
学習内容
- プロジェクトにスプレッドシートを作成し、ツールバー、名前ボックス、数式バー、シートタブを見つける
- シートの名前を変更し、色を付け、追加する
- 値を入力し、数式バーで数式を書く
- 名前ボックスで範囲を選択し、下方向へコピーで数式をコピーする
- オートコンプリートで関数名を完成させ、別のシートを参照する
CubeSat EO-1 デモプロジェクトの質量予算を、新しいスプレッドシートで始めます。タブをダブルクリックしてシート名を変更して色を付け、2 つ目のシートを追加し、セルに見出しと値を入力し、数式バーで数式を書き、名前ボックスで範囲を選択して数式を下方向へコピーし、数式のオートコンプリートで SUM を完成させ、別のシートのセルを参照します。
プロジェクトファイル
- 完成時のプロジェクト (.holarch.json。プロジェクトを管理 → プロジェクトファイル ▾ → プロジェクトをインポート (.json)…)
動画は holarch.app から再生されます。プライバシーポリシーをご覧ください。
演習
CubeSat EO-1 を使って、Holarch で実際に操作します。
- プロジェクトファイル → 新しいデモプロジェクトを開いて CubeSat を選択します。計画 → スプレッドシートを開き、新しいスプレッドシートをクリックして、名前を
EO-1 Mass Budgetにします。 - Sheet1 のタブをダブルクリックし、
Budgetと入力して Enter を押します。タブを右クリックして色を選択します。 - タブの横にある + をクリックし、新しいシートに
Assumptionsという名前を付け、A1 にMass allocation (kg)、B1 に12と入力します。 - Budget の A2:E2 に見出し
No.、Subsystem、Mass、Contingency、With contingencyを入力し、3 行目から 8 行目に六つのサブシステムとその質量、予備を入力します。 - E3 に数式バーで
=C3*(1+D3)と入力します。名前ボックスにE3:E8と入力して Enter を押し、フィル → 下方向へコピーを選択します。 - E9 に
=SUと入力し、一覧から SUM を選んでE3:E8)と入力して完成させます。E10 には=Assumptions!B1、E11 には=(E10-E9)/E10と入力します。
E9 に予備を含めた合計、E10 に Assumptions シートの 12、E11 にマージンが表示されれば完了です。
確認問題
- 結果が表示されているセルの数式はどこで確認できますか。
- E3 の数式を、参照を調整しながら E4:E8 にコピーするにはどうしますか。
- 数式で別のシートのセルを読み取るにはどうしますか。
解答を表示
結果が表示されているセルの数式はどこで確認できますか。
セルを選択したときに、グリッドの上にある数式バーで確認できます。
E3 の数式を、参照を調整しながら E4:E8 にコピーするにはどうしますか。
E3:E8 を選択し(たとえば名前ボックスに入力して)、フィル → 下方向へコピーを選択します。
数式で別のシートのセルを読み取るにはどうしますか。
シート名、感嘆符、セルの順で指定します。たとえば =Assumptions!B1 です。
関連資料
トランスクリプト
トランスクリプトを表示 (ナレーションと画面の内容)
Introduction
Welcome to the spreadsheet track. A Holarch spreadsheet is an Excel-style workbook inside a project, calculated in Excel's formula language, right next to the model. Across five chapters you build one workbook: the mass budget of the CubeSat EO-1.
In this chapter you create the workbook, set up its sheets, enter the budget and write its first formulas.
A new spreadsheet
We work in the CubeSat EO-1 demo project. To make your own copy, open Project Files, then New Demo Project, and choose the CubeSat. Its model already holds the mass of every component.
On screen: The CubeSat EO-1 demo project: Home.
Open Plan, then Spreadsheets, and click New Spreadsheet. Name it EO-1 Mass Budget.
On screen: Plan → Spreadsheets → + New Spreadsheet → EO-1 Mass Budget.
The editor opens. The toolbar is at the top. Below it are the Name Box, which shows the active cell, and the formula bar, which shows what the cell holds. The sheet tabs are at the bottom.
On screen: The editor: toolbar, Name Box, formula bar, grid, sheet tabs.
Sheets and tabs
Double-click the tab of Sheet1 to rename it. Type Budget, and press Enter.
On screen: Double-click Sheet1 → Budget ↵.
Right-click the tab for its menu: insert, rename, move, hide or delete a sheet, and choose a tab color. Choose Blue.
On screen: Right-click Budget → Tab Color: Blue.
The plus beside the tabs adds a sheet. Add one, and name it Assumptions. It will hold the inputs the budget uses.
On screen: + → double-click Sheet2 → Assumptions ↵.
Entering data
Type the first input. Double-click A1, type Mass allocation in kilograms, and press Enter. In B1, type twelve.
On screen: A1: Mass allocation (kg); B1: 12.
Back on the Budget sheet, type the column headings in row two: number, subsystem, mass, contingency, and mass with contingency. Enter confirms each entry.
On screen: Budget: A2 No., B2 Subsystem, C2 Mass, D2 Contingency, E2 With contingency.
Then the first subsystem: one point one, Payload Camera, an estimate of two point five kilograms, and a contingency of ten percent, typed as zero point one.
On screen: Row 3: 1.1, Payload Camera, 2.5, 0.1.
The other five subsystems are entered the same way.
On screen: Card while rows 4 to 8 are filled.
Formulas
Now a formula. Select E3, click the formula bar, and type equals C3 times, in brackets, one plus D3. Press Enter. The cell shows the result, and the formula bar keeps the formula.
On screen: E3 → formula bar: =C3*(1+D3) ↵.
The Name Box also selects. Type E3 colon E8, and press Enter. Then open Fill, and choose Fill Down: the formula is copied to every row, with its references adjusted.
On screen: Name Box E3:E8 ↵ → Fill ▾ → Fill Down.
In row nine, the total. Type Total in B9. In E9, start typing equals S U. Autocomplete lists the functions that match, with what each one does.
On screen: B9 Total; E9 =SU: the function list.
Click SUM. Holarch writes the name and the bracket, and the hint shows the arguments. Type E3 colon E8, close the bracket, and press Enter.
On screen: SUM → E3:E8) ↵.
Formulas can use other sheets. Type Allocation in B10, and in E10, equals Assumptions, exclamation mark, B1.
On screen: B10 Allocation; E10 =Assumptions!B1 ↵.
Last, the margin: what is left of the allocation, as a fraction of it. Type Margin in B11, and in E11, equals, in brackets, E10 minus E9, divided by E10.
On screen: B11 Margin; E11 =(E10-E9)/E10 ↵.
Every edit is one undo step, and the spreadsheet is saved with the project, as an item with its own history.
On screen: The budget so far.
Recap
To recap: rename tabs by double-clicking, color them from their menu, type in cells, write formulas in the formula bar, select ranges in the Name Box, and let autocomplete finish function names.
In the next chapter, you format the budget and lay it out.