TableRun Blog

How to use an AI agent to write results into spreadsheet cells

To write results into spreadsheet cells with TableRun’s AI spreadsheet agent, select the source range and choose Send to chat. In the Agent panel, describe the task, name the destination sheet or range, and send your message. When the Agent replies, open that sheet and compare a few output cells with the source.

Completed course comparison worksheet and the Agent conversation in TableRun

Write AI results to a new sheet

Suppose you’re comparing three short courses. You’ve already pasted sample details into Sheet1, with columns for course name, cost, weekly study time, and source. You want a comparison you can sort and check later.

  1. Open your workbook. Use an editable workbook in TableRun. If your source data is in an existing Excel file, import it from the Workspace first.
  2. Give the Agent the source range. Select the headers and rows on Sheet1, right-click the selection, then choose Send to chat. That adds a range reference to the message draft. Check the reference in the composer before you send.
  3. Name the result you want. Ask for a new sheet and give it columns, rules for missing values, and a clear instruction to leave your source data intact. Send the message to start the task.
  4. Review the sheet and follow up in chat. Open Course comparison when the Agent reports it has written the results. Check a few values against Sheet1 and check a source entry. If it needs a correction, name the affected column or range in your next message.

Close-up of Sheet1 A1:D4 with Send to chat visible in the context menu

Select the course rows and choose Send to chat* to reference them in the Agent composer.*

Here’s a prompt you can adapt.

Use the attached range on Sheet1. Create a new sheet called Course comparison with one row per course. Add columns for course name, cost, weekly study hours, source, and notes. Leave missing prices blank and flag them in Notes. Keep Sheet1 unchanged. Tell me which range you wrote to.

Full TableRun Agent exchange showing the submitted course-comparison prompt, Completed status, and final reply naming Course comparison A1:E4

The Agent reports what it wrote and where. The original request is visible above the reply.

In the demo, the Agent wrote the headers and three course rows to Course comparison!A1:E4. For Writing Lab, it left the missing price blank in B4 and flagged it in the Notes cell E4. Check those two cells together to verify how the Agent handled the gap in the source data.

Close-up of the result in TableRun showing three courses and a blank price with a highlighted note for Writing Lab

View the full workbook and Agent exchange.

This example was run in TableRun with fictional course data. Use the same pattern for a research comparison, a personal spending review, or monthly sales data. The prompt works best when it names the source, the desired transformation, and a destination you can find again. For a larger analysis, see the TableRun guide to spreadsheet data analysis.

Continue the task in the same conversation

Follow-up messages are useful when a detail changes. For the course comparison, you could ask the Agent to add a column that flags courses above your weekly time limit. Refer to Course comparison and specify the limit. If the Agent asks whether a one-time registration fee belongs in the cost, answer in the same chat.

Use the workbook to check the work itself. A read receipt tells you the message reached the Agent conversation. Open the destination sheet to verify the write, and compare a few rows with the source before you use the result.

If your task starts with information scattered across websites, see how to organize web research in a spreadsheet with sources and flag findings that still need review.

When to use the cloud computer or a Workflow

Cloud computer. If you need to check a missing course detail on the provider’s website, ask the Agent to look it up and record the source in the sheet. You can observe from Cloud computer in the Agent panel and use Take control if you need to sign in yourself. Choose Return control when you’re done.

Workflow. For a repeatable task such as generating a short summary for each course, ask the Agent to configure a text Workflow or start from the destination cell with Insert → Insert workflow. Check one row before extending the configuration. Review the selected rows and any required approval before running the batch.

Start with a few rows in an editable workbook and check where the results land. Open TableRun to try it with your own data.