🤖 AIPro Plan

AI_TABLE

Generate a table of data from a natural language description

Formula Signature
=AI_TABLE(prompt, [rows], [cols])

Returns: string[][]

Overview

AI_TABLE generates structured tabular data from a plain English description, returning a formatted table that fills across rows and columns in your spreadsheet. Instead of manually researching and typing data into cells, simply describe the table you need — "Top 10 programming languages by popularity with year created and primary use case" — and AI_TABLE creates it instantly. The output includes headers and cleanly fills adjacent cells using Google Sheets' array spill behavior.

Parameters

ParameterTypeRequiredDescription
promptstringYesA natural language description of the table you want to generate. Be specific about columns and content type.
rowsnumberNo (5)Number of data rows to generate (not counting the header row).
colsnumberNo (3)Number of columns to generate.

Examples

1

Generate a competitive analysis table

Creates a comparison table of email marketing platforms with specific columns.

fx
=AI_TABLE("Compare the top 5 email marketing platforms with columns: Platform, Free Plan Limit, Starting Price, Best For", 5, 4)

Output

PlatformFree Plan LimitStarting PriceBest For
Mailchimp500 contacts$13/moSmall businesses
ConvertKit1,000 subscribers$15/moCreators
Brevo300 emails/day$9/moTransactional email
ActiveCampaignNo free plan$29/moAdvanced automation
Klaviyo250 contacts$20/moE-commerce
2

Create a sample dataset for testing

Generates a realistic sample dataset for testing e-commerce formulas and charts.

fx
=AI_TABLE("Realistic e-commerce order data with order ID, customer name, product, quantity, total price, order date", 10, 6)

Output

Order IDCustomer NameProductQuantityTotal PriceOrder Date
ORD-001Maria JohnsonWireless Mouse2$49.982025-01-15
ORD-002David ChenUSB-C Hub1$34.992025-01-15
ORD-003Sarah WilliamsMechanical Keyboard1$129.992025-01-16
3

Generate a content calendar structure

Creates an 8-week content calendar with topics and SEO targets.

fx
=AI_TABLE("Content calendar for a fitness blog: week number, topic, target keyword, content type, target word count", 8, 5)

Output

WeekTopicTarget KeywordContent TypeTarget Word Count
15 Beginner Gym Mistakesgym mistakes beginnersBlog Post1,500
2Home Workout Equipment Guidebest home gym equipmentBuying Guide2,500
3Protein Intake Calculatorhow much protein per dayInteractive Tool1,000
4

Build a project task breakdown

Generates a project plan with task estimates and dependencies for a website redesign.

fx
=AI_TABLE("Website redesign project tasks with task name, responsible team, estimated hours, priority, dependencies", 12, 5)

Output

Task NameResponsible TeamEstimated HoursPriorityDependencies
Requirements gatheringProduct16HighNone
Wireframe designDesign24HighRequirements gathering
UI mockupsDesign40HighWireframe design
Frontend developmentEngineering80HighUI mockups
5

Generate a reference table dynamically

Creates a reference table of common HTTP status codes for developer documentation.

fx
=AI_TABLE("HTTP status codes with code number, name, and when it occurs", 15, 3)

Output

CodeNameWhen It Occurs
200OKRequest succeeded and response contains data
301Moved PermanentlyResource has been permanently relocated
404Not FoundRequested resource does not exist

Use Cases

Product Management

Competitive Landscape Mapping

Quickly generate feature comparison matrices of competing products to inform product strategy and roadmap discussions, then refine with verified data from actual research.

Education

Training Material Creation

Generate reference tables, vocabulary lists, quiz questions, and structured study guides for courses. Teachers can create practice datasets for data analysis classes instantly.

Data Analytics

Sample Data for Dashboard Prototyping

Generate realistic-looking datasets to prototype dashboards and reports before production data is available, letting you validate chart formats and KPI structures early in the project.

Sales Enablement

Sales Battle Cards

Create quick-reference comparison tables showing how your product stacks up against specific competitors on features, pricing, and customer segments for sales team training.

Event Management

Event Planning Checklists

Generate structured event planning tables with tasks, timelines, responsible parties, and budget allocations for conferences, weddings, product launches, or corporate events.

Legal & Compliance

Regulatory Compliance Matrices

Create comparison tables of regulatory requirements across different markets or jurisdictions, helping compliance teams quickly identify where requirements differ.

Pro Tips

TIP

Specify exact column names in your prompt rather than letting the AI choose. This gives you predictable headers that work with VLOOKUP, MATCH, and other Sheets functions that reference column names.

TIP

Use AI_TABLE to create template structures, then overwrite individual cells with real data as it becomes available. This gives you a complete-looking spreadsheet immediately while you gather verified information.

TIP

Set rows and cols to match your available space. If you have exactly 8 rows of space below the formula, set rows=8 to prevent the output from overlapping other data.

TIP

For sample datasets, add realism cues to your prompt: "realistic e-commerce data with varied product categories, different price ranges between $10-$500, and dates throughout January 2025". The more context you give, the more useful the sample data.

This function is a massive time-saver for anyone who regularly creates reference tables, comparison matrices, or sample datasets in spreadsheets. Product managers can generate feature comparison tables in seconds. Teachers can create quiz answer keys or reference charts. Marketers can build competitive landscape tables without hours of manual research. The AI draws on its extensive training data to produce factually grounded tables, though you should verify critical data points for accuracy since AI-generated content can occasionally contain errors.

The optional rows and cols parameters let you control the exact dimensions of the output. If you need a quick 3-column, 5-row table for a presentation, specify those dimensions. If you omit them, the AI decides the appropriate size based on your prompt. AI_TABLE works especially well for brainstorming and prototyping — quickly generate a table structure, review the output, then refine or replace specific cells with verified data. It is also useful for generating realistic sample datasets for testing formulas, pivot tables, and charts before your real data is ready.

Common Errors

#ERROR! Output exceeds cell limit

Cause: The requested table is too large for Google Sheets to handle in a single array output.

Fix: Reduce the rows or cols parameter. Try generating a smaller table first. For very large tables, split the generation into multiple calls.

#REF! Array output blocked

Cause: The generated table is trying to spill into cells that already contain data.

Fix: Clear the cells below and to the right of the formula to make room for the table output. The table needs (rows+1) rows and (cols) columns of empty space.

#ERROR! Prompt is too vague

Cause: The prompt does not provide enough detail for the AI to generate a meaningful table.

Fix: Be specific about what data you want. Include column names, the subject matter, and any constraints. Example: "Top 10 US cities by population with city, state, population, and area in square miles".

Frequently Asked Questions

AI_TABLE generates data based on the AI model's training knowledge. For factual reference data (like programming languages or HTTP status codes), it is generally accurate. For pricing, market data, or statistics, treat the output as a strong starting point and verify critical figures. The function is especially reliable for structural and comparative information.

Yes, specify column names directly in your prompt. For example: "...with columns: Name, Price, Rating" will produce exactly those three columns. If you also set the cols parameter, make sure the number matches the columns you described in your prompt.

Practically, tables up to about 50 rows and 10 columns work well. Larger tables may hit token limits or take longer to generate. For very large datasets, generate in batches: create the first 50 rows, then use a follow-up prompt for the next 50.

AI_TABLE returns all values as text strings. If you need to perform calculations on generated numbers, wrap them with VALUE() or use 0+cell to convert text to numbers. For currency values, you may need to remove the "$" symbol first using SUBSTITUTE.

AI_TABLE is specifically optimized for tabular output with dimension control (rows and cols parameters). UNLIMITED_AI can also produce tables but gives you less control over exact dimensions. Use AI_TABLE when you need a specific table size and AI for table generation specifically.

Yes, specify the language in your prompt. For example: "Generate a table of 10 Spanish vocabulary words with columns: Spanish, English, Part of Speech". The AI will generate content in whatever language you request.

Related Functions

Start using AI_TABLE today

Install Unlimited Sheets to get AI_TABLE and 41 other powerful functions in Google Sheets.