TableRun Blog

How to run an AI Workflow on each spreadsheet row

To run an AI Workflow on each spreadsheet row in TableRun, configure one output cell with a fixed prompt and a relative reference to the input. Test it on one row, fill the configuration down, then review the cells before approving. In this example, three museum research notes in B2:B4 became three slide summaries in C2:C4.

Three museum research notes and their Workflow summaries in TableRun

1. Run the AI Workflow on one row

I used the notes from the web research spreadsheet tutorial in a separate Workflow demo sheet. Column B held each museum’s research note and review status. Column C held the generated summary.

Select C2 and open Insert → Insert workflow to see the available options. This test used DeepSeek V4 Flash. I entered the formula directly:

=WORKFLOW_DEEPSEEK_V4_FLASH("Rewrite the reference note as one plain-English sentence for a slide. If the note says Needs review or that credit is unconfirmed, say it is unconfirmed. Use only the note.",B2)

With New cells only and Always ask enabled, saving C2 showed Approval required. I chose Review, checked that the dialog listed only C2, and clicked Approve & run. The Smithsonian summary kept the credit guidance unconfirmed.

TableRun approval dialog listing only Workflow demo C2

The Smithsonian source note in B2 beside the single completed summary in C2

You can also ask the Agent to configure the first cell. Specify the sheet, input, output cell and prompt. Review the configuration before approving. For more on choosing and checking a destination, see the Agent writeback guide.

2. Reuse the AI Workflow across rows

Drag the fill handle from C2 through C4. Check the resulting range and select a filled cell to inspect the reference. In this run, the formula in C4 pointed to B4, with the same prompt used in C2.

The formula bar for filled cell C4 shows B4 as its reference while the output awaits approval

Filling down copies the configuration. With this workbook’s policy, the new cells awaited approval. I selected C3:C4, clicked Approve selection (2), and confirmed that only those two cells were listed before choosing Approve & run. With Manual policy, request execution using Run on the intended cells. Workflow runs can use your allowance.

Batch confirmation lists two DeepSeek V4 Flash tasks, C3 and C4

3. Check each row’s output

The new summaries appeared in C3:C4. Settings → Runs showed one completed single-cell run and one completed two-cell run. The Met summary kept its caveat. The National Gallery of Art summary changed “encourages” into a stronger instruction. Compare the output with its source before using it, especially when the wording changes what a reader would do.

All three slide summaries are written back beside the source notes, with C3:C4 selected

View the full workbook screenshot.

Why use TableRun for row-by-row AI work?

TableRun is a good fit when your source data already lives in a spreadsheet and you want the AI results in the same sheet. A cell-bound Workflow makes three parts of the job easier to check:

  • Reuse the prompt across rows. In this run, filling down kept the slide-summary prompt and shifted the input reference from B2 to B3 and B4. Each museum’s note fed its own summary.
  • See which cells you’re approving. After the C2 trial, the batch confirmation listed C3 and C4. With Always ask, I could check those exact destinations before approving the two tasks.
  • Review outputs beside their sources. The notes stayed in column B and the generated text appeared in column C. That made it easy to spot when the National Gallery of Art summary turned a recommendation into an instruction.

If you’re preparing slides from research notes, try this on one representative row first. Open TableRun.

For a visual example, see how to generate AI images in spreadsheet cells with a formula. That tutorial combines four columns into an image prompt and verifies the artwork in the original formula cells.