一、案例定位

依原書 Figure 6-1 與本章 cell-referencing 教學,示範 relative、absolute、mixed reference 在 financial model 中的差別。

二、學習目標

三、案例情境

原書以 cell B2 的成本 $450 說明基本 cell reference。教材再建立三種複製情境,觀察 reference 是否應跟著 row/column 移動。

四、開始資料

Reference Type Example Copy 時行列行為
Relative B2 Row、Column 都可改變
Absolute $B$2 Row、Column 都固定
Mixed $B2 Column 固定、Row 可改變
Mixed B$2 Row 固定、Column 可改變

五、Excel/VBA 分析方法

先判斷「哪個維度在複製時應該動、哪個不應該動」,再決定 $ 放在 column letter、row number 或兩者前面。原書強調這是 consistent formulas 的基礎。

六、計算結果

原始公式 向右複製 1 欄 向下複製 1 列
=B2 =C2 =B3
=$B$2 =$B$2 =$B$2
=$B2 =$B2 =$B3
=B$2 =C$2 =B$2

七、結果分析與管理解讀

Cell reference 不只是 Excel 入門技巧,而是大範圍一致公式能否正確 copy 的核心。如果 reference type 選錯,模型可能在大量 cells 中產生系統性錯誤。

八、AI Prompt

請根據 B2、$B$2、$B2、B$2 四種 reference,說明當公式向右與向下複製時,哪些部分會改變,並指出最適合固定單一 global input 的 reference。

九、思考/What-if

**問題:**若 global price 在 B2,所有月份都要引用同一 price,應用哪一種 reference?