Skip to content
←INDEX / Prompt library
TUTORIAL/ChatGPT / Claude / Gemini/Beginner

Excel Formula Prompt Template: Teach the AI Your Table's Layout Before Asking for a Formula

Nine times out of ten, asking AI for a formula fails because it doesn't know what your table actually looks like. This template gives you a fill-in-the-blanks format for describing your column structure; the formula you get back comes with a step-by-step breakdown, a 5-row mini sample table, and two common gotchas flagged, with both legacy and modern function syntax provided.

SakuyaPromptCraft editor · Updated 2026-06-12T08:00:00Z
TutorialChatGPT / Claude / GeminiBeginner
01PROMPT
你是 Excel 公式專家,擅長從業務需求直接寫出貼上就能用的公式(Excel 365 與 Google Sheets 都熟)。

我的表格結構如下:
- 工作表名稱:[工作表名稱]
- 欄位說明:[欄位說明](照這個格式寫:A 欄=訂單日期、B 欄=客戶名稱、C 欄=金額、D 欄=業務員;資料從第 2 列開始、約 500 列)
- 我要做到的事:[需求描述]
- 我用的版本:[版本]

請輸出:
1. 公式本體:放在程式碼區塊、註明要貼在哪一格
2. 逐段拆解:把公式切成 2-4 段、每段用一句話解釋在做什麼
3. 一個 5 列的迷你範例表,示範這條公式跑出來的結果長怎樣
4. 兩個常見炸點:這條公式最容易出錯的情況(空值、文字格式的數字、日期格式不一致等)和對應修法

品質準則:優先用新版函數(XLOOKUP、FILTER、LET)但附舊版替代寫法;如果我的欄位描述不夠你寫出正確公式,先列點問我、不要用猜的;之後我貼錯誤訊息或錯誤結果給你時,先判斷是公式問題還是資料格式問題再修。

Swap the variables inside the [ ] brackets for your own content, then paste into ChatGPT / Claude / Gemini.

RUNTRY IT
▶ TRY IT ON-SITE

See what this prompt actually produces without leaving the site (live AI run, 1 credit).

02CONTEXT / Why it works

Two lines describing 'what's in column A, what row the data starts on' do more good than any prompting trick — the model can't see your screen, so your table's structure is its only eyes. Requiring a mini sample table lets you check the formula against expected output before pasting it in; flagging gotchas in advance saves the most common back-and-forth (blank cells and text-formatted numbers really do break things constantly). You must fill in the version — 365 and 2016 support very different functions. In practice, this same description method works for complex needs too (multi-condition lookups, cross-sheet aggregation) — just describe the requirement concretely.

04VARIABLES
01[工作表名稱]

資料所在的工作表。例:「2026訂單明細」

02[欄位說明]

照範例格式逐欄寫。例:「A 欄=訂單日期、B 欄=客戶名稱、C 欄=金額、D 欄=業務員;資料從第 2 列開始、約 500 列」

03[需求描述]

你要算什麼。例:「算出每個業務員 3 月的成交總金額、金額空白的列要跳過」

04[版本]

例:「Excel 365」「Excel 2016」「Google Sheets」

05RESOLVER · 變數代入器0 / 4

填下面的欄位,上方 prompt 會即時替換 [方括號] 內容。填好後按「複製組好的 prompt」直接丟進工具。

修飾
Assembled · 填剩餘變數…
你是 Excel 公式專家,擅長從業務需求直接寫出貼上就能用的公式(Excel 365 與 Google Sheets 都熟)。

我的表格結構如下:
- 工作表名稱:[工作表名稱]
- 欄位說明:[欄位說明](照這個格式寫:A 欄=訂單日期、B 欄=客戶名稱、C 欄=金額、D 欄=業務員;資料從第 2 列開始、約 500 列)
- 我要做到的事:[需求描述]
- 我用的版本:[版本]

請輸出:
1. 公式本體:放在程式碼區塊、註明要貼在哪一格
2. 逐段拆解:把公式切成 2-4 段、每段用一句話解釋在做什麼
3. 一個 5 列的迷你範例表,示範這條公式跑出來的結果長怎樣
4. 兩個常見炸點:這條公式最容易出錯的情況(空值、文字格式的數字、日期格式不一致等)和對應修法

品質準則:優先用新版函數(XLOOKUP、FILTER、LET)但附舊版替代寫法;如果我的欄位描述不夠你寫出正確公式,先列點問我、不要用猜的;之後我貼錯誤訊息或錯誤結果給你時,先判斷是公式問題還是資料格式問題再修。
RELATED
PRO01
TUTORIALSuno v5.5FEATURED
r/SunoAI (anonymous studio engineer)2026-06-12

Suno Engineer's Mindset: 4 Steps to a Song That Doesn't Sound Like AI

5.0(1)

A studio engineer's breakdown of Suno's fatal weaknesses (fried vocals, high-frequency artifacts), plus a 4-step DAW workflow and a Suno Studio cleanup prompt.

Advanced
Read

Free02
TUTORIALClaude 4.5 SonnetFEATURED
r/ClaudeAI2026-05-14

5 Claude Weekly Workflows That Stuck After 6 Months

Proposal generator / meeting processor / content repurposer / Friday review / shutdown reset — out of 40 I tried, only these 5 survived, each saving 30+ minutes per run.

Intermediate
Read

PRO03
TUTORIALClaude 4.5 SonnetFEATURED
r/PromptEngineering2026-05-14

7 Cross-Model A/B-Tested Prompt Techniques (Not Vibes)

Written after six months of A/B testing 200+ prompts on Claude, GPT-4, and Gemini with human raters. Covers persona + constraint stacking, anti-examples, role-reversal QA, cognitive scaffolds, emotional priming, uncertainty CoT, and steelman-first.

Advanced
Read

Free04
TUTORIALChatGPTFEATURED
r/ChatGPTPromptGenius2026-05-14

5 trust-checking one-liner prompts (no role-play)

After a year of role-play system prompts and 14-step frameworks, here's the takeaway: the thing that actually moved the needle on quality was 5 one-line prompts. No roles, no markdown, no "you are an expert."

Beginner
Read

COMMENTS · 討論區0 則
登入 後可留言。還沒帳號?註冊
目前沒有留言。第一個說說你的經驗。