Lesson 1 of 4

AI-Powered Formulas

Transform Natural Language into Formulas

The Old Way vs AI Way

Old Way: Google "Excel formula for..." → Copy-paste → Hope it works

AI Way: Describe what you want → Get working formula → Understand why

Using ChatGPT for Formulas

Prompt Template:

I need an Excel formula that [describe what you want].
Column A has [data type], Column B has [data type].
Example: If A2 is greater than 100, return "High", otherwise "Low"

Example Prompts:

  1. Conditional Logic: "I need a formula that returns 'Over Budget' if expenses (B2) exceed budget (C2), otherwise 'On Track'"

Result: =IF(B2>C2, "Over Budget", "On Track")

  1. Text Manipulation: "Extract the first name from full name in A2 (e.g., 'John Smith' → 'John')"

Result: =LEFT(A2, FIND(" ", A2)-1)

  1. Date Calculations: "Calculate working days between A2 (start date) and B2 (end date), excluding weekends"

Result: =NETWORKDAYS(A2, B2)

  1. Complex Lookups: "VLOOKUP alternative that can look left - find price in Column C based on product name in Column E"

Result: =INDEX(C:C, MATCH(E2, E:E, 0))

Formula Optimization Tips

  • Always validate AI-generated formulas
  • Use cell references, not hardcoded values
  • Test with edge cases
  • Add error handling: IFERROR()
  • Comment complex formulas: use N("comment")

→ Proceed to Lesson 2: Built-in AI Features