一、案例定位

依原書 Figure 9-25~9-27,把 Actual-vs-Budget report 的 alert 結果轉成 chart 上的 dynamic commentary。

二、學習目標

三、案例情境

原書 Monthly Budget Report 中,column G 已含 Over budget 等文字 alerts。A15 使用 =COUNTA(G3:G12)-COUNT(G3:G12),得到 2;再改成文字公式顯示 2 Items over Budget。

四、開始資料

步驟 原書公式/結果
Count text alerts =COUNTA(G3:G12)-COUNT(G3:G12)
Current Result 2
Dynamic Text =COUNTA(G3:G12)-COUNT(G3:G12)&" Items over Budget"

五、Excel/VBA 分析方法

先建立 clustered column chart,再將 source table 正確排序;原書提醒排序時要整個 A:G 一起選,避免公式/資料錯位。最後建立 A15 dynamic text,插入 text box 並 link 到 A15。

六、計算結果

Model State Commentary
目前來源 2 Items over Budget
若 alert count 改變 文字會跟著公式自動更新

七、結果分析與管理解讀

Dynamic commentary 可把 model output 直接轉成 decision-friendly language,減少管理者自行數 alert 的負擔。但文字必須由 model calculations 驅動,不能是獨立 hard-coded annotation。

八、AI Prompt

請解釋 COUNTA(G3:G12)-COUNT(G3:G12) 為什麼可以在此原書案例中計算文字 alerts,並說明 linked text box 如何保持 commentary 與模型同步。

九、思考/What-if

**問題:**若只排序 Account column,沒有一起選 A:G,主要風險是什麼?