How Excel Copilot Writes Complex XLOOKUP Formulas Automatically

Share
How Excel Copilot Writes Complex XLOOKUP Formulas Automatically

Excel's Copilot formula completion feature can write complex XLOOKUP formulas for you. Instead of memorizing syntax and figuring out the arguments, you describe what you want in plain English and Copilot generates the formula. In this tutorial, Chris Menard demonstrates this using a sneaker sales dataset.

Watch the full tutorial:

Setting Up the Data

The example uses two data sets:

  • A sneaker sales table with columns for date, shoe model, quantity, and sale price
  • A shoe cost lookup table with the cost per unit for each shoe model

The goal is to pull the cost from the lookup table into the sales table to calculate profit — a classic XLOOKUP scenario.

Excel spreadsheet with sneaker sales data and a SHOE COST lookup table highlighted in red
The sneaker sales dataset with a separate lookup table for shoe costs — ready for Copilot.

Using Copilot Formula Completion

Here's how to let Copilot write the formula:

  1. Click in the cell where you want the formula result
  2. Type = to start a formula
  3. Begin typing a description of what you want, like "Calculate profit" or "Look up shoe cost"
  4. Copilot displays a formula suggestion with a preview of the result
  5. Press Tab to accept the suggestion

Copilot analyzes your data structure, identifies the lookup table, and generates a complete XLOOKUP formula — including the lookup value, lookup array, and return array arguments.

Excel Copilot formula completion popup showing a suggested XLOOKUP formula
Copilot suggests a complete XLOOKUP formula based on your data context and description.

Why This Matters

XLOOKUP is one of Excel's most powerful functions, but its syntax can be intimidating — especially when dealing with multiple tables or nested formulas. Copilot formula completion removes that barrier by letting you describe the result in natural language.

This is different from the COPILOT() function, which is a separate formula that uses AI to generate values. Formula completion, by contrast, helps you write traditional Excel formulas like XLOOKUP, SUM, and IF — Copilot just assists with the syntax.

Want to learn more? Visit courses.chrismenardtraining.com for online training courses.

Read more

Copilot Skills in PowerPoint - Live Stream on October 20, 2026

Copilot Skills in PowerPoint - Live Stream on October 20, 2026

𝗠𝗼𝘀𝘁 𝗣𝗼𝘄𝗲𝗿𝗣𝗼𝗶𝗻𝘁 𝘂𝘀𝗲𝗿𝘀 𝗸𝗻𝗼𝘄 𝗖𝗼𝗽𝗶𝗹𝗼𝘁 𝗰𝗮𝗻 𝗰𝗿𝗲𝗮𝘁𝗲 𝘀𝗹𝗶𝗱𝗲𝘀. 𝗙𝗮𝗿 𝗳𝗲𝘄𝗲𝗿 𝗸𝗻𝗼𝘄 𝗮𝗯𝗼𝘂𝘁 𝘁𝗵𝗲 𝟴 𝗯𝘂𝗶𝗹𝘁-𝗶𝗻 𝗖𝗼𝗽𝗶𝗹𝗼𝘁 𝗦𝗸𝗶𝗹𝗹𝘀 𝘁𝗵𝗮𝘁 𝗰𝗮𝗻 𝗰𝗼𝗺𝗽𝗹𝗲𝘁𝗲𝗹𝘆 𝗰𝗵𝗮𝗻𝗴𝗲 𝗵𝗼𝘄 𝘆𝗼𝘂 𝗯𝘂𝗶𝗹𝗱, 𝗶𝗺𝗽𝗿𝗼𝘃𝗲, 𝗮𝗻𝗱 𝗽𝗿𝗲𝘀𝗲𝗻𝘁 𝗮 𝗱𝗲𝗰𝗸. Join me live on October 20, 2026, at Noon Eastern as I demonstrate each Copilot Skill and show practical ways to use them in your presentations. PDF of the 8 Copilot Skills in Pow

By Chris Menard