27 prompts
Copilot in Excel Prompts for Plant Data
Most plant data ends up in Excel sooner or later. It might be a downtime log exported from the MES, a scrap sheet the second shift fills in by hand, or a CSV dump from a historian that nobody has had time to look at. Copilot in Excel can help you make sense of it quickly, as long as you ask clearly.
This page collects prompts written for real plant-floor work. They're grouped by task. Each one tells you when to use it and what to check before you trust the answer. Copy a prompt, swap the [square brackets] for your own details, and paste it in.
The prompts are written for Copilot in Excel, but they also work in ChatGPT, Claude and Gemini. With those tools you upload the file or paste in the data first.
Before you start: three things that make Copilot work better
1. Format your data as a table. Click anywhere in your data and press Ctrl+T (Cmd+T on a Mac). Copilot works most reliably on a proper Excel table with one header row. Merged cells, blank rows and multi-line headers confuse it.
2. Save the file to OneDrive or SharePoint. Copilot can pull data in from other workbooks saved there, so keeping related exports together in one place makes them easy to combine.
3. Name your columns plainly. "Downtime_Min" beats "Col F" or "DT (see note)". Copilot reads your headers to work out what the data means, so clear headers give you better answers.
One more thing: Copilot can be wrong. It may pick the wrong column, miss rows or misread a unit. Every prompt below includes a "Check" line for that reason. Spend 30 seconds checking before you send a number to your plant manager.
Cleaning up messy exports
Raw exports from MES, ERP and SCADA systems are rarely ready to analyze. Start here.
Find problems in the data
Use it when: you've just pulled an export and don't know yet how messy it is.
Check the attached or open table for data quality problems. Don't change anything. Look for: blank cells, duplicate rows, dates or numbers stored as text, the same machine or line name spelled different ways, and impossible values (such as negative run times or more than [24] hours of downtime in one day).
Return a table with columns: Problem | Column | Example value | Row numbers | Rows affected. Use only what's in the data. If a check can't be done because the column isn't there, write "Not found". Flag anything you're unsure about instead of guessing.Check: Spot-check two or three of the problems it flags. Then scroll the data yourself for anything obvious it missed.
Standardize machine and line names
Use it when: the same asset shows up as "Press 4", "PRESS-04" and "Prs4".
In the [machine name column] of the attached or open table, the same machine is spelled different ways (for example "Press 4", "PRESS-04", "Prs4"). Don't change anything yet.
Return a table with columns: Suggested standard name | Variants found | Rows affected. Use only names that appear in the data. Never group names with different numbers (Press 4 and Press 14 are different machines). Put any value you're unsure about under "Unclear" instead of grouping it.Check: Make sure it didn't merge two different machines with similar names, like "Press 4" and "Press 14".
Split a combined column
Use it when: your export crams several fields into one cell, like "L2-Filler-Jam-2025-03-14".
The [combined code column] in the attached or open table holds several fields separated by [hyphens], in this order: [line], [machine], [reason], [date], for example "L2-Filler-Jam-2025-03-14". The date itself contains hyphens, so treat everything after the [third] separator as the date. Add one new column per field using Excel formulas, convert the date part to a real Excel date, and show the formulas. For rows with missing or extra parts, leave the new cells blank and list the row numbers and original values. Don't guess at those.
Check: Look at rows where the code has missing parts or extra separators. Those are where splits usually break.
Fix dates and times
Use it when: timestamps came through as text or in mixed formats.
The [timestamp column] in the attached or open table holds dates and times stored as text in mixed formats, such as [03/14/2025 06:30] and [2025-03-14T06:30:00]. The source system writes dates as [month/day or day/month]. Add a new column that converts every value to a proper Excel date-time using a formula, and show the formula. Then tell me how many rows converted, how many didn't, and the row numbers and original values of any that failed or could be read more than one way. Don't guess at those.
Check: Watch for day/month mix-ups. A date like 03/04 could be March 4 or April 3, depending on where the source system was set up.
Add a shift column
Use it when: you want to compare shifts but your data only has timestamps.
Add a column called Shift to the attached or open table, based on the [timestamp column]. First shift runs [6:00 AM to 2:00 PM], second shift [2:00 PM to 10:00 PM], third shift [10:00 PM to 6:00 AM]. Third shift crosses midnight, so times from midnight to [6:00 AM] belong to third shift. A time exactly on a boundary belongs to the shift that's starting. Use an Excel formula and show it. Write "Not found" where the timestamp is blank or unreadable, and tell me how many rows that affects.
Check: Look at events right around 6:00 AM, 2:00 PM, 10:00 PM and midnight. Edge cases are where shift formulas go wrong.
Downtime analysis
Top downtime reasons
Use it when: you need a quick answer to "where are we losing the most time?"
Using only the [downtime minutes column] and [reason column] in the attached or open table, find the top [10] downtime reasons by total minutes for [last month / date range]. Put the result in a new sheet with columns: Reason | Total minutes | Number of events | Average minutes per event | % of all downtime. Below it, show the grand total minutes and the number of rows included for the date range, and list any rows you left out (blank reason, blank or non-numeric minutes) and why.
Plant Data, Production Planning and KPI Reporting with AI: Get answers from your plant data without waiting on IT.
See the courseCheck: Add up the total minutes yourself with a quick SUM and compare it to Copilot's total. If they don't match, it filtered something out.
Build a downtime Pareto chart
Use it when: you're preparing for a morning meeting or a kaizen event.
Using only the attached or open table, create a Pareto chart of total [downtime minutes column] by [reason column] for [line / machine] over [date range]: bars for total minutes sorted highest to lowest, and a line on a secondary axis for cumulative percentage, ending at 100%. Title it "Downtime by reason, [line / machine], [date range]". Also show the table behind the chart: Reason | Total minutes | Cumulative minutes | Cumulative %. Group blank reasons as "Not found" and tell me how many minutes that covers.
Check: The cumulative line should end at exactly 100%. Also confirm the bars are sorted from highest to lowest.
Frequent short stops versus long breakdowns
Use it when: you suspect lots of small stops are hurting you more than the big failures everyone remembers.
Using only the [downtime minutes column] and [machine column] in the attached or open table, split downtime events into short stops (under [5] minutes) and long stops ([5] minutes or more). Return a table with columns: Machine | Short stop count | Short stop minutes | Long stop count | Long stop minutes | Short minus long minutes, sorted by the last column, highest first. Then list the machines that lose more total time to short stops than to long ones. Tell me how many rows you skipped for blank or non-numeric minutes.
Check: Make sure events of exactly [5] minutes landed in the group you intended.
Downtime by shift and day of week
Use it when: you want to know if problems cluster at certain times.
Using only the attached or open table, make a PivotTable of total [downtime minutes column] with [shift column] as rows and day of week (taken from the [date column]) as columns, with row and column totals. Highlight the three highest cells. Then write two or three sentences on what stands out, quoting the figures. Don't suggest causes the data doesn't show, and say so if a fair comparison would need scheduled hours that aren't in the table.
Check: Shifts don't always run the same number of hours or days. Before you draw conclusions, compare against scheduled time, not just raw minutes.
Mean time between failures and mean time to repair
Use it when: maintenance asks for MTBF and MTTR by asset.
Using only the attached or open table, calculate MTBF and MTTR for each [asset column] for [date range]: - Failures: only rows where [event type column] is ["Breakdown"]. Planned maintenance is not a failure. - MTBF (hours) = total [run hours column] / number of failures - MTTR (minutes) = total [repair minutes column] on failure rows / number of failures Return a table: Asset | Run hours | Failures | Repair minutes | MTBF | MTTR. Show the formulas you used. Write "No failures" instead of dividing by zero, and list any rows you excluded and why.
Check: Ask yourself whether planned maintenance was excluded. If it was counted as failures, MTBF will look much worse than it really is.
OEE and production performance
Calculate OEE
Use it when: you have the raw numbers but no OEE report yet.
Add four columns to the attached or open table that calculate, for each row: - Availability = [run time column] / [planned production time column] - Performance = ([ideal cycle time column] x [total count column]) / [run time column] - Quality = [good count column] / [total count column] - OEE = Availability x Performance x Quality Use Excel formulas, show them, and format all four as percentages. Ideal cycle time and run time must be in the same units; tell me which units you assumed. Write "Not found" where an input is blank or zero instead of showing an error, and list the rows where Performance is over 100%.
Check: Look for Performance above 100%. That usually means the ideal cycle time is set too slow, or the units don't match (seconds versus minutes).
Compare lines or shifts
Use it when: you want a fair side-by-side comparison.
Using only the attached or open table, summarize Availability, Performance, Quality and OEE by [line column] for [date range]. Calculate them from totals, not by averaging daily percentages: - Availability = total [run time] / total [planned production time] - Performance = sum of ([ideal cycle time] x [total count]) / total [run time] - Quality = total [good count] / total [total count] - OEE = Availability x Performance x Quality Return one row per line with the totals used and the four percentages, sorted from lowest to highest OEE. Show the formulas.
From spreadsheets to answers
This course shows you how to use AI to clean up exports from your MES or ERP, calculate OEE and other KPIs, and build a weekly report that writes most of itself. It will also cover using AI to think through schedules, capacity and changeovers.
Check: Averaging percentages gives a different (and usually wrong) answer from calculating with totals. This prompt asks for totals. Confirm Copilot actually did that.
Plan versus actual
Use it when: you're explaining a missed week to leadership.
Using only the [planned units column], [actual units column], [day column] and [line column] in the attached or open table, compare plan to actual by day and line. Add two columns with Excel formulas (show them): Difference (actual minus plan) and % of plan. Shade red any day below [90]% of plan. Where planned units are zero, write "No plan" instead of a percentage and leave those days out of averages. Then write a summary of up to [100] words on which lines missed plan most often, giving the days missed and average % of plan for each.
Check: Make sure days with zero planned production (holidays, shutdowns) aren't dragging down the averages or causing divide-by-zero errors.
Cycle time drift
Use it when: you think a machine is slowly getting slower.
Using only the [timestamp column] and [cycle time in seconds column] for [machine] in the attached or open table, filtered to [part number, if you run more than one], calculate the daily average cycle time over [date range]. Chart it as a line with a linear trendline. Then tell me in two or three sentences whether the trend is up, down or flat, and by roughly how many seconds per week, showing the slope and how you converted it. Note any days with no data or unusually few cycles.
Check: A product changeover can look like drift. Filter to one product or part number first if you run more than one.
Quality and scrap
Scrap rate by product and defect
Use it when: you need to know where scrap dollars are going.
Using only the [scrap quantity], [total quantity], [part number], [defect code] and [unit cost] columns in the attached or open table, calculate for each part number and defect code combination: - Scrap rate = total scrap quantity / total quantity - Scrap cost = total scrap quantity x unit cost Return the top [10] combinations by scrap cost in a table: Part number | Defect code | Scrap qty | Total qty | Scrap rate | Scrap cost. Then give the top [10] by scrap rate as a second table. Show the formulas. Write "Not found" where unit cost is missing and list those parts.
Check: High scrap rate and high scrap cost often point to different parts. Look at both lists before you choose what to work on.
Spot unusual readings
Use it when: you have measurement data and want outliers flagged.
In the attached or open table, flag values in the [measurement column] two ways: 1. Out of spec: below [lower spec limit] or above [upper spec limit]. 2. Statistically unusual: more than 3 standard deviations from the mean for that [part number column]. Use conditional formatting with a different color for each kind, and add a Flag column reading "Out of spec", "Unusual", "Both" or blank. Then give a table by part number: mean, standard deviation, and count of each flag. Show the formulas. List rows where the measurement is blank or not a number instead of flagging them.
Check: Out of spec and statistically unusual aren't the same thing. A process can be in spec but drifting, or in control but not capable.
Control chart data
Use it when: you want a basic individuals chart without buying SPC software.
For the [measurement column] on [part number] in the attached or open table, using [baseline rows or date range] as the baseline, calculate for an individuals (I-MR) chart: - Mean of the measurements - Moving range (absolute difference between consecutive measurements) and average moving range - Upper control limit = mean + 2.66 x average moving range - Lower control limit = mean - 2.66 x average moving range Show each value and its formula. Then create a line chart of the measurements in time order with the center line and both control limits, and list any points outside the limits by row number.
Check: Control limits should come from a stable baseline period, not from data that includes a known problem. Tell Copilot which rows to use if you need to.
First pass yield
Use it when: you want to see how much rework is hiding in your numbers.
Using only the [line], [date or week], [units started], [passed first time] and [reworked] columns in the attached or open table, calculate first pass yield by line and week for [date range]. First pass yield = units that passed first time / units started. Reworked units that later passed don't count as first-time passes. Return a table: Line | Week | Units started | Passed first time | Reworked | First pass yield (%). Show the formula. If passed first time plus reworked is more than units started, flag that row instead of guessing.
Plant Data, Production Planning and KPI Reporting with AI: Get answers from your plant data without waiting on IT.
See the courseCheck: Make sure reworked units that later passed aren't counted as first-time passes.
Maintenance and inventory
Overdue preventive maintenance
Use it when: you have a PM schedule export and want a quick risk list.
Using the [asset], [last PM date] and [PM interval in days] columns in the attached or open table, add two columns with Excel formulas (show them): - Next due date = last PM date + interval - Days overdue as of today, using TODAY() (0 if not yet due) Sort by most days overdue and highlight anything more than [14] days past due. Write "Not found" where the last PM date or interval is blank, and list those assets at the end.
Check: Today's date in Excel updates every time the file recalculates. If you send the file to someone, the overdue numbers will change when they open it.
Spare parts reorder check
Use it when: you want to catch stockouts before they stop a line.
Using the [part number], [on hand], [reorder point] and [average daily usage] columns in the attached or open table, list every part at or below its reorder point. Return a table: Part number | On hand | Reorder point | Avg daily usage | Days of stock left (on hand / avg daily usage), sorted fewest days first. Show the formula. Where average daily usage is zero or blank, write "No usage data" instead of dividing, and put those parts in a separate list.
Check: Parts with zero average usage will divide by zero. Decide whether those should be treated as "no risk" or reviewed separately.
Repeat failures
Use it when: you want to find assets that keep breaking the same way.
In the attached or open table, find every [asset] that has the same [failure code] [3] or more times within any [90]-day window, using the [failure date] column. Return a table: Asset | Failure code | Occurrences | Dates. In a separate list, show repeats under vague codes like "Other" or "Misc" with their [notes] text so I can review them. Use only the data; if a column I named isn't there, write "Not found".
Check: Vague failure codes like "Other" or "Misc" can hide repeat problems. Glance at the free-text notes for those rows.
Formulas and automation
Explain a formula someone else wrote
Use it when: you've inherited a spreadsheet and nobody remembers how it works.
Explain the formula in cell [G2] on the [sheet name] sheet of the attached or open workbook. Quote the formula first, then give: 1. What it does, step by step, in plain English. 2. Every cell, range, sheet or named range it depends on. 3. What could make it return a wrong answer or an error. Keep it under [200] words. If it refers to something you can't see, write "Not found" for that item instead of guessing what it holds.
Check: Change one input and see whether the result moves the way Copilot said it would.
Write a lookup formula
Use it when: you need to pull standard rates, costs or targets from another sheet.
Write a formula for column [H] of the attached or open table that looks up the [ideal cycle time] for each [part number] from the [Standards] sheet, where part numbers are in column [A] and ideal cycle times in column [B]. If the part isn't found, show "Missing" instead of an error. Give the formula for the first data row using XLOOKUP, plus an INDEX/MATCH version for older Excel, and explain each part in one line.
Check: Test it with a part number you know isn't on the Standards sheet. You should see "Missing", not #N/A.
Running totals and rolling averages
Use it when: daily numbers bounce around too much to read.
Add a column to the attached or open table with a [7]-day rolling average of [good count] for each [line], based on the [date] column. The average must restart for each line and never mix data from different lines. Where a line has fewer than [7] days of data so far, write "Not enough data" instead of a partial average. Use an Excel formula and show it. Tell me if any line has missing dates, since that changes what a [7]-day window covers.
From spreadsheets to answers
This course shows you how to use AI to clean up exports from your MES or ERP, calculate OEE and other KPIs, and build a weekly report that writes most of itself. It will also cover using AI to think through schedules, capacity and changeovers.
Check: Look at the first few days for each line. The rolling average can't be a full [7]-day average until there are [7] days of data.
Build a reusable weekly summary
Use it when: you rebuild the same report every Monday.
I paste a new week of [downtime / production] data into the table [table name] every Monday. Set up a summary sheet with formulas, not pasted values, showing [total output, OEE by line, top 5 downtime reasons and scrap rate]. Use structured references to the table so the summary updates automatically when I add new rows. List each summary item with the formula behind it and the columns it uses. If a column needed for an item isn't in the table, write "Not found" for that item instead of guessing.
Check: Add a fake row of test data and confirm the summary updates. Then delete the test row.
Turning numbers into something people will read
Write a shift or weekly summary
Use it when: you need words, not just charts, for the morning meeting or a leadership email.
Using only the data in the attached or open table for [date range], write a plain-English summary for [plant manager / shift supervisors] in under [150] words. Cover total output versus plan, the biggest downtime cause, any quality issues, and one thing that improved, each with specific numbers from the data. Don't round loosely or restate numbers. If the data doesn't show one of these items, write "Not found" for it. Under the summary, list each number you used and the column it came from.
Check: Every number in the summary should match the sheet. Copilot sometimes rounds or restates numbers loosely.
Ask what the data is telling you
Use it when: you're not sure where to look first.
I'm a [production supervisor / CI engineer / maintenance planner] at a [type of plant]. Look at the attached or open table and suggest [5] questions worth asking about this data, each with a one-sentence reason based on columns that are actually in it. Then answer the first question using only the data, show the calculation, and say what I should check before acting on the answer.
Check: Treat the suggestions as starting points. You know your process, and Copilot doesn't.
Using these prompts in ChatGPT, Claude or Gemini
All of the prompts above work outside Excel too. If you're still choosing a tool, see our comparison of Copilot, ChatGPT and Claude for Excel. A few tips:
- Upload the file or paste the data first, then send the prompt. For large exports, a CSV usually works better than a full workbook.
- Ask for formulas you can paste back into Excel, for example by adding: "Give me the Excel formula I can paste into column [H]."
- Remove sensitive information like customer names, pricing or employee names unless your company has approved the tool for that data.
- Ask it to show its work. Adding "Show the calculation steps" makes it easier to catch mistakes.
Frequently asked questions about Copilot in Excel Prompts for Plant Data
What is Copilot in Excel?
Copilot in Excel is Microsoft's AI assistant built into Excel. You type a request in plain English, and it can analyze data, create formulas, build charts and PivotTables, highlight cells and summarize trends. It's included with a Microsoft 365 Copilot license for business users, and with some personal and family Microsoft 365 plans.
Why is Copilot grayed out or not working in my spreadsheet?
Common reasons: your Microsoft 365 plan or Copilot license doesn't include Copilot in Excel (a work account labeled "Copilot Chat (Basic)" doesn't get it), your organization's settings have turned it off, or you're on a Personal or Family plan but aren't the subscription owner, who is the only one who can use Copilot in the desktop apps. Check which Copilot license you have, or ask your IT team.
How much data can Copilot in Excel handle?
It handles typical plant exports well, but very large tables can be slow or give incomplete answers. If you're working with hundreds of thousands of historian rows, summarize or filter the data first, for example to one line or one month, and then ask Copilot.
What makes a good Copilot in Excel prompt?
Name the exact columns, give the date range, state any rules (like shift times or what counts as a failure), and say what output you want: a new column, a chart, a PivotTable or a summary. The more specific the prompt, the less Copilot has to guess.
Can I trust Copilot's numbers?
Treat them like numbers from a new analyst: usually right, sometimes not. Check totals against a quick SUM, look at edge cases, and confirm it used the columns you meant. Never send a figure upstream that you haven't checked.
Is it safe to use Copilot in Excel with plant data?
With a business Microsoft 365 Copilot license, your prompts, the data Copilot uses and its responses are handled under the same commitments as your other Microsoft 365 work files, and they aren't used to train the AI models. Check with your IT team about your company's specific policy, including which AI models it allows, especially before using consumer AI tools with production or customer data.
Can Copilot in Excel connect directly to my MES or historian?
Not on its own. Copilot works with the data in your workbook, and it can also import data from other Excel workbooks and from the web. Export the data, or pull it in with Power Query, and then use Copilot to analyze it.
Spend Monday morning acting on the numbers, not building them
Plant Data, Production Planning and KPI Reporting with AI covers:
- Cleaning and combining messy spreadsheet and system exports
- Calculating OEE, scrap rate, throughput and other KPIs, and checking the math
- Building charts and dashboards with AI's help
- Writing clear production reports and shift summaries
- Working through scheduling, capacity and changeover scenarios
- Asking your data questions in plain English
$19.99 a month. Try it free for 3 days.
Sources
- Microsoft Support: Copilot in Excel (edit, plan and chat modes)
- Microsoft Support: Get started with Copilot in Excel
- Microsoft Support: Learn which Copilot license you have
- Microsoft Support: How Copilot Chat works in Microsoft 365 apps
- Microsoft Support: Get started with Microsoft Copilot
- Microsoft Learn: Data, Privacy, and Security for Microsoft Copilot
- Microsoft Support: Keyboard shortcuts in Excel
- Microsoft Support: XLOOKUP function
- Microsoft Support: TODAY function
- NIST/SEMATECH e-Handbook of Statistical Methods: Individuals control charts