TableRun Blog

How to Generate AI Images in Spreadsheet Cells With a Formula

Use =WORKFLOW_GENERATE_IMAGE(E2) in F2 to generate an image from the prompt in E2. Once the Workflow completes, the image appears in F2, next to the spreadsheet fields that shaped it. Here’s how to use multiple spreadsheet columns as AI prompt inputs. In our TableRun test, we combined the event, audience, visual direction, and palette for two fictional newsletter events. The formulas wrote a vinyl record illustration to F2 and a sunset sketchbook illustration to F3.

TableRun formula bar and two spreadsheet cells containing generated newsletter illustrations

Build an image prompt from four spreadsheet columns

Give each column a job. The event sets the subject, the audience gives the artwork context, the visual direction describes what to depict, and the palette establishes the look.

Row A: Event B: Audience C: Visual direction D: Palette
2 Riverside Vinyl Swap Local record collectors Vinyl record over stylized river ripples Navy, teal, amber
3 Sunset Sketchbook Club Beginner illustrators Open sketchbook, setting sun, and pencil Coral, cream, amber

For the first row, put this prompt in E2:

Create text-free newsletter artwork for Riverside Vinyl Swap, for local record collectors. Show a vinyl record over stylized river ripples. Use navy, teal, and amber.

Write the second prompt in E3 using row 3. If you edit a source field, update the prompt cell to reflect the change. Keeping the assembled prompt visible makes it easier to check what the model will actually receive.

Generate an image with a cell formula

With the Generate image Workflow available in your workbook, enter this formula in F2:

=WORKFLOW_GENERATE_IMAGE(E2)

E2 supplies the image prompt. You can omit the optional reference images for a new illustration. The formula belongs in the cell where you want the artwork to appear.

If the configured cell shows Run, use it to request an image. If it shows Review, check the pending task and approve it when you’re ready. Image generation uses your subscription allowance. For the second event, use =WORKFLOW_GENERATE_IMAGE(E3) in F3. In our test, both formulas entered the approval queue after configuration. We approved only F2:F3, and both cells wrote back their images. To use the formula on more rows, follow the Workflow guide for filling formulas and approving a range.

TableRun worksheet showing four source columns, the assembled prompts in column E, and two image formulas running in column F.

The test workbook with both image generation tasks running. The event briefs are fictional.

The F2 formula bar shows WORKFLOW_GENERATE_IMAGE referencing E2. Both output cells show their generated newsletter artwork.

Both tasks completed in the test workbook. F2 displays the vinyl record artwork, and F3 displays the sketchbook artwork.

Review the image against the row that produced it

Start with the concrete details. In row 2, look for a record, river ripples, and the navy, teal, and amber palette. In row 3, look for the sketchbook, sun, and pencil. In our run, F2 placed a vinyl record over blue water with amber reflections. F3 placed an open sketchbook and pencil in front of an orange sunset. Both images appeared in their formula cells. The compositions can vary. Flag a missing subject, an off-brief palette, or stray lettering before using the image in a newsletter.

If you want a different look, update one field at a time. For example, change the second event’s palette to indigo and cream while keeping its sketchbook brief. Update E3 before requesting a new image. With fewer changes per revision, it’s easier to see whether the new draft follows your direction.

For a product-photo example, see the three Cyber Monday graphics made from one moka pot photo. Compare the same spout, handle, and offer across the feed post, Story, and email banner.

Why TableRun for spreadsheet image generation?

TableRun keeps the creative brief, the exact prompt, and the artwork together. When a picture misses the brief, you can read across the row and see whether an instruction was missing from the prompt or whether the output missed an instruction you supplied. That’s useful when two events share a newsletter but need artwork with different subjects and palettes.

This approach to spreadsheet content generation also works for projects that need several visuals from one brief. The product concept design template shows how to use one row to organize several types of creative assets. For AI content generation from spreadsheet rows beyond images, such as newsletter copy or structured summaries, see how to send selected cells to the TableRun Agent and ask it to write the result back.