What You Will Learn
You will learn how to create an AI-powered column that applies the same prompt to many rows, such as classifying comments, labeling purchase-order lines, or summarizing notes.
Required Dataset
Use the workbook from Lesson 15 or Lesson 16.
Use:
Theme_Classification
Sentiment_Classification
Create one new tab:
Repeatable_AI_Column
Before You Start
Copy 10–20 comments into Repeatable_AI_Column. Add these columns:
Comment ID
Raw Comment
AI Theme
AI Sentiment
AI Confidence
Review Needed
The goal is to apply the same AI logic consistently across many rows.
Step-by-Step Instructions
Step 1. Write a controlled prompt
Before using an AI function, decide the allowed outputs. For theme classification, use a fixed list:
Workload
Compensation
Product Quality
Service Issue
Manager Support
Process Friction
Positive Feedback
Other / Unclear
Step 2. Create the AI theme column
If your Sheets environment supports AI functions, enter this in the AI Theme column:
=AI(“Classify this comment into exactly one theme: Workload, Compensation, Product Quality, Service Issue, Manager Support, Process Friction, Positive Feedback, Other / Unclear. Return only the theme.”, B2)
If your environment uses =Gemini(), use the same prompt with =Gemini().
Copy the formula down.
Step 3. Create the AI sentiment column
Use:
=AI(“Classify this comment as Positive, Neutral, Negative, or Mixed. Return only the label.”, B2)
Copy it down.
Step 4. Add confidence and review logic
For confidence, use:
=AI(“Rate confidence in this classification as High, Medium, or Low. Return only the label.”, B2)
For Review Needed, use:
=IF(OR(C2=”Other / Unclear”,E2=”Low”),”Yes”,”No”)
Adjust cell references if your columns differ.
Expected Result
You should have a repeatable AI column that classifies many comments using the same prompt and flags unclear or low-confidence rows for review.
Check Your Work
Confirm that the AI output uses only allowed labels, vague comments are marked Other / Unclear, low-confidence rows are flagged, and a human reviews a sample of results.
Optional Extension
Ask Gemini:
Review the Repeatable_AI_Column tab. Identify inconsistent labels, low-confidence rows, and improvements to the AI prompt.
