Skip to Content
学习 Excel 生成式人工智能工具 (Chinese Edition)
book

学习 Excel 生成式人工智能工具 (Chinese Edition)

by Angelica Lo Duca
April 2026
Intermediate
390 pages
5h 31m
Chinese
O'Reilly Media, Inc.
Content preview from 学习 Excel 生成式人工智能工具 (Chinese Edition)

第 3 章. 利用 ChatGPT加速 日常操作

本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com

每个人都不得不处理一些枯燥、耗时且重复的任务。对我来说,其中之一就是每天早上整理床铺,不仅要整理我(和丈夫)的,还要整理孩子们的。为了保持家居整洁,你必须做这件事,但这非常乏味、耗时且重复。 为了解决这个问题,我可以雇个保姆,让他们帮我整理床铺。这有点像 ChatGPT 在数字世界中所做的事情。你可以让它成为你的保姆,为你处理那些繁琐且重复的任务。如果有一款能整理床铺的 ChatGPT,我肯定会买(当然,前提是价格合理)。

同样地,当你使用Excel时,也经常需要处理那些繁琐、耗时且重复的任务。 你希望尽可能加快这些任务的处理速度。例如,创建模板、根据日期或递增数字的模式填充表格,甚至用数据集外部的值来丰富数据集。其实,ChatGPT可以成为你的管家。

第 2 章中,你已经看到 ChatGPT 可以成为你活动中的伙伴、助手或秘书——随你称呼。核心理念是 ChatGPT 在你执行任务时提供协助。在本章中,你将以一种新方式使用 ChatGPT:将其作为管家,为你处理那些繁琐、重复且耗时的任务。

本章将向您展示如何利用 ChatGPT:

  • 创建模板

  • 自动填充

  • 数据增强

让我们从创建模板开始。

创建模板

Excel 中的模板是一种预定义文件,具有针对特定任务(如预算管理或库存管理)的现成结构和格式。 通常,模板包含预配置的表格、公式和图表。当我提到 Excel 中的模板时,我指的是创建新工作簿时看到的模板,例如预算规划表和作业记录表。 您可以通过创建一个具有所需布局、格式和公式的 Excel 工作簿,将其保存为 Excel 模板并放入相应的文件夹中,来制作自己的个人模板。一旦创建了模板,您就可以基于该模板创建新的工作簿,从而不必每次都从头开始。

使用模板有诸多优势,例如节省时间、确保不同文档在格式和风格上保持一致,以及减少错误。本质上,模板通过包含预定义的布局、格式和公式( ),可以加快创建报告、发票或日历等重复性任务的效率( )。

要在 ChatGPT 中创建模板,请按照第 2 章所学的故事情节结构(背景、核心观点和行动)编写 prompt。这里有两种应用场景:

  • 从零开始创建模板,向 ChatGPT 提供所有细节

  • 根据您提供的(手绘)草图创建模板,并将草图作为输入提交给 ChatGPT

让我们分析这两个案例,首先从零开始创建模板。

从零开始创建模板

当您从头开始创建模板 时,必须向 ChatGPT 提供所有必要的信息。请按照图 3-1 所示的流程与 ChatGPT 展开对话。

Diagram depicting the flow to create an Excel template using ChatGPT, including steps like context prompt, number of tables, tables structure, data formatting, additional elements, and style.
图3-1. 使用ChatGPT生成Excel模板的操作流程

Prompt 遵循故事结构,其中故事的最后阶段是创建 Excel 文件,该内容已包含在 的上下文 prompt 中:

  1. 登录后 https://chatgpt.com后,开启新对话并定义上下文,其中需明确您希望创建模板这一需求:

     I want to create an Excel template. I'll provide you with all the options to include in the template, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

向量数据库 (Chinese Edition)

向量数据库 (Chinese Edition)

Nitin Borwankar

Publisher Resources

ISBN: 0642572371579