0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

LUI on Spreadsheet 表計算ソフトをLLMインターフェースで動かす

0
Last updated at Posted at 2026-09-05

免責事項 Desclaimer

本稿で扱う方法により情報がLLMサービスに流れます。LLMの契約内容を確認したうえで利用には十分に注意してください。当方では本稿内容を利用したことによる情報流出等の損害について一切の責任を取りません。

The procedure described in this article involves uploading info to a LLM service. Please check your contract with the service and carefully use it. Author of this article is not a subject of responsibility for any loss (e.g. leakage of info) regarding to the content of this ariticle.

概要 Exective Summary

表計算ソフトにPromptというシートを用意し、そこにプロンプトを書き込みます。付属のLLMのチャット(MS ExcelならCopilot、Google SpreadSheetならGemini)に「Promptシートを実行して」と言うと用意したプロンプトの通りに実行します。これにより他のシートに入れたデータをベースとしたオペレーションが可能となります。

Prepare a shreadsheet file with "Prompt" sheet and write prompts in the sheet. At the attached LLM chat (Copilot for MS Excel and Gemini for Google SpreadSheet), ask to "execute Prompt sheet" then LLM will execute those prepared prompts. This allows natural language operations on the data on other sheets.

Hack Tips

PromptシートにプロンプトをState Machine的に定義していきます。次の表の様にすると表計算ファイルのどこからでも「Promptシートを実行して」と言えば、最初にStartを、次にSetUpをと指定通りに読み込み、実行してくれます。日本語で書いても動きます。

Define prompts like a State Machine in "Prompt" sheet. The following table is an example which allows you to say "execute Prompt sheet" at anywhere in the file. Then LLM read and execute Start prompt at first, SetUp prmot at next, so on as described in prompts.

STATE PROMPT
Start This is the initial setup of this system. There are STATEs in column A and corresponding PROMPTs in column B. Please execute the prompt according to the requested state. As next, please move to SetUp STATE.
SetUp You (LLM) is ... (description)

Example : Task Manager

簡単なタスクマネージャーを作成してみました。以下のGitHubにでも動画とエクセルファイルを置いてあります。

I made a simple task manager. Please check the following GitHub for the demo movie and the Excel file.

タスクのステータスの定義にセルの色指定なども加えられます。

You can define task status with cell colors.

Stacked: Start Date is not set. The cell color is white
Working: Start Date is set but End Date is not. The cell color is blue.
Reviewing: End Date is set but Reviewing Date is not. The cell color is green.
Done: Start Date, End Date, and Reviewing Date are set. The cell color is grey.

応用 Applications

プロンプトとデータをまとめて第三者に渡せるというのがキーポイントだと思います。プロンプトだけならばパワポやワードでもできると思いますが、データを扱うなら表計算ソフトの方が良いです。複雑なスプシでもその使い方をプロンプトに起こしておけば作成者の代わりにLLMが伴走してくれます。そしてそのようなプロンプトの生成すらLLMでできるはず。

The key point of this technique is that you can deliver prompts and data togather to a third person. If you just want to deliver only prompts, PowerPoint and Word can handle. But to integrate data with prompt, I think shreadsheet is the best. Even for a neetly constructed system on a spreadsheet file, you can make LLM alternate of you to support users. Also I think you can utilize LLM to prepare prompts for "Prompt" sheet.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?