1# Model a DCF valuation | Codex use cases1---
2 2name: Model a DCF valuation
3Codex use cases3tagline: Turn financial inputs into an editable valuation workbook.
4 4summary: Attach historical financials, valuation assumptions, and modeling
55 notes, then ask ChatGPT for an editable DCF workbook you can inspect and
6 6 revise in ChatGPT.
77skills:
8 8 - token: $spreadsheets
9Codex use case9 description: Create editable spreadsheet workbooks from attached inputs,
10 10 formulas, and assumptions.
11# Model a DCF valuation11bestFor:
12 12 - Analysts turning historical financials and assumptions into a DCF workbook.
13Turn financial inputs into an editable valuation workbook.13 - Finance teams that want to inspect and iterate on the workbook in ChatGPT.
14 14 - Teams preparing a valuation model from source files.
15Difficulty **Intermediate**15starterPrompt:
16 16 title: Model a DCF valuation
17Time horizon **30m**17 body: >-
18 18 Use $spreadsheets to build a DCF workbook for the company in the attached
19Attach historical financials, valuation assumptions, and modeling notes, then ask Codex for an editable DCF workbook you can inspect and revise in Codex.19 source files.
20 20
21## Best for21
22 22 Include explicit operating drivers for revenue growth, margins, capex, and
23- Analysts turning historical financials and assumptions into a DCF workbook.23 working capital. Calculate unlevered free cash flow, WACC, terminal value,
24- Finance teams that want to inspect and iterate on the workbook in Codex.24 and enterprise value. If capital structure and diluted share count are
25- Teams preparing a valuation model from source files.25 provided, bridge to implied equity value and implied equity value per share.
26 26
27# Contents27
28 28 Use any assumptions included in the source files. If an assumption is
29[← All use cases](https://developers.openai.com/codex/use-cases)29 missing, add a clearly labeled placeholder in the assumptions tab instead of
30 30 hiding it in a formula. If full balance sheet or cash-flow statement inputs
31Copy page [Export as PDF](https://developers.openai.com/codex/use-cases/dcf-model/?export=pdf)31 are missing, create the operating forecast needed for unlevered free cash
32 32 flow and flag the missing statement inputs.
33Attach historical financials, valuation assumptions, and modeling notes, then ask Codex for an editable DCF workbook you can inspect and revise in Codex.33
34 34
35Intermediate35 Generate the result as an editable .xlsx workbook.
36 36 suggestedEffort: medium
3730m37relatedLinks:
38 38 - label: Agent skills
39Related links39 url: /codex/build-skills
40 40 - label: File inputs
41[Agent skills](https://developers.openai.com/codex/skills) [File inputs](https://developers.openai.com/api/docs/guides/file-inputs)41 url: /api/docs/guides/file-inputs
42 42---
43## Best for
44
45- Analysts turning historical financials and assumptions into a DCF workbook.
46- Finance teams that want to inspect and iterate on the workbook in Codex.
47- Teams preparing a valuation model from source files.
48
49## Skills & Plugins
50
51- Spreadsheets
52
53 Create editable spreadsheet workbooks from attached inputs, formulas, and assumptions.
54
55| Skill | Why use it |
56| --- | --- |
57| Spreadsheets | Create editable spreadsheet workbooks from attached inputs, formulas, and assumptions. |
58
59## Starter prompt
60
61Use $spreadsheets to build a DCF workbook for the company in the attached source files.
62Include explicit operating drivers for revenue growth, margins, capex, and working capital. Calculate unlevered free cash flow, WACC, terminal value, and enterprise value. If capital structure and diluted share count are provided, bridge to implied equity value and implied equity value per share.
63Use any assumptions included in the source files. If an assumption is missing, add a clearly labeled placeholder in the assumptions tab instead of hiding it in a formula. If full balance sheet or cash-flow statement inputs are missing, create the operating forecast needed for unlevered free cash flow and flag the missing statement inputs.
64Generate the result as an editable .xlsx workbook.
65
66Open in the Codex app
67
68Use $spreadsheets to build a DCF workbook for the company in the attached source files.
69Include explicit operating drivers for revenue growth, margins, capex, and working capital. Calculate unlevered free cash flow, WACC, terminal value, and enterprise value. If capital structure and diluted share count are provided, bridge to implied equity value and implied equity value per share.
70Use any assumptions included in the source files. If an assumption is missing, add a clearly labeled placeholder in the assumptions tab instead of hiding it in a formula. If full balance sheet or cash-flow statement inputs are missing, create the operating forecast needed for unlevered free cash flow and flag the missing statement inputs.
71Generate the result as an editable .xlsx workbook.
72 43
73## Introduction44## Introduction
74 45
75Codex can help you create a fully functional DCF workbook that you can inspect and revise.46ChatGPT can help you create a fully functional DCF workbook that you can inspect and revise.
76 47
77It can use multiple files as context, including the historical financials, valuation assumptions, and any modeling notes.48It can use multiple files as context, including the historical financials, valuation assumptions, and any modeling notes.
78You can provide these files directly, or use file references when the inputs live in Google Drive or another connected source. If so, provide the exact file references, as it will be more effective than asking Codex to search through all of your files.49You can provide these files directly, or use file references when the inputs live in Google Drive or another connected source. If so, provide the exact file references, as it will be more effective than asking ChatGPT to search through all of your files.
79
80[
81Your browser does not support the video tag.
82](https://openaiassets.blob.core.windows.net/$web/codex/docs/developers-website/use-cases/create-a-dcf.mp4)
83 50
84## Create the workbook51## Create the workbook
85 52
861. Attach the historical financials, valuation assumptions, and any modeling notes, or provide exact file references along with the source.
872. Run the starter prompt and ask for an editable `.xlsx` workbook.
883. Open the generated workbook in Codex. Expand it into the full-screen view to inspect the model tabs, formulas, assumptions, and valuation summary.
894. Continue in the same thread to check formula links, change assumptions, add scenarios, or tighten the model.
90
91When the workbook appears in the thread, open it in Codex and expand it full-screen. Review the source inputs, forecast drivers, valuation outputs, and sensitivity tables, then ask Codex to revise the same workbook from there.
92
93## Check the valuation
94
95Before using the workbook, ask Codex to review the model like a finance teammate would: source tie-outs, formulas, hardcoded assumptions, and valuation outputs.
96 53
97Review the DCF workbook before I use it.
98Check:
99- historicals tied to the source files
100- forecast drivers and visible assumptions
101- formulas versus hardcoded values
102- unlevered free cash flow calculation
103- WACC, terminal value, enterprise value, and any equity-value bridge
104- sensitivity table formulas
105- missing capital structure, diluted share count, or assumptions that need human review
106Fix safe formatting or formula issues, then list anything I should review manually.
107 54
108## Revise one assumption551. Attach the historical financials, valuation assumptions, and any modeling notes, or provide exact file references along with the source.
109 562. Run the starter prompt and ask for an editable `.xlsx` workbook.
110After reviewing the workbook in Codex, ask for targeted revisions in the same thread. Change one driver at a time so the impact is easy to inspect.573. Open the generated workbook in ChatGPT. Expand it into the full-screen view to inspect the model tabs, formulas, assumptions, and valuation summary.
111 584. Continue in the same task to check formula links, change assumptions, add scenarios, or tighten the model.
112Update the DCF model so [revenue growth, EBITDA margin, WACC, terminal growth, or capex] uses [new assumption].
113Keep the old assumption visible in a note, update dependent formulas, and tell me which tabs changed.
114
115## Related use cases
116
117[
118
119### Forecast cash flow
120
121Give Codex cash-flow inputs and model constraints, then ask it to create an editable...
122
123Data Knowledge Work](https://developers.openai.com/codex/use-cases/cash-flow-forecast)[
124 59
125### Review budget vs. actuals
126 60
127Give Codex a budget, actuals export, and close notes, then ask it to map actuals to plan...
128 61
129Data Knowledge Work](https://developers.openai.com/codex/use-cases/budget-vs-actuals-review)[62When the workbook appears in the task, open it and expand it full-screen. Review the source inputs, forecast drivers, valuation outputs, and sensitivity tables, then ask ChatGPT to revise the same workbook from there.
130 63
131### Clean and prepare messy data64## Check the valuation
132 65
133Drag in or mention a messy CSV or spreadsheet, describe the problems you see, and ask Codex...66Before using the workbook, ask ChatGPT to review the model like a finance teammate would: source tie-outs, formulas, hardcoded assumptions, and valuation outputs.
134 67
135Data Knowledge Work](https://developers.openai.com/codex/use-cases/clean-messy-data)68## Revise one assumption
136 69
70After reviewing the workbook, ask for targeted revisions in the same task. Change one driver at a time so the impact is easy to inspect.