xlsEXPERTS
A.I. Use Cases

A.I. Use Cases for Excel, VBA and Power Query Workflows

A.I. does not need to replace an existing Excel solution to add significant value. These five patterns show where language, interpretation, classification and judgement belong — while Excel keeps doing the calculations and reporting.

In many cases, the best architecture is to leave Excel, VBA and Power Query doing what they already do well — calculations, structured data processing, workflow control and reporting — while adding A.I. at specific points where conventional programming struggles with language, interpretation, classification or judgement.

The A.I. capability can sit behind a secure API rather than being embedded directly into the workbook.

Typical architecture

Excel / VBA / Power Query → Secure Cloud API → A.I. Model → Structured JSON Response → Excel

For XLS Experts solutions, that API could sit within the Google Cloud ecosystem and manage authentication, prompt construction, data validation, calls to OpenAI or another approved model, logging and response handling.

The following five use cases demonstrate different ways that architecture can be applied.

Use Case 1

A.I. Commentary and Interpretation of Excel Data

Turn rows of operational data into meaningful written analysis

Many Excel reports contain plenty of numbers but still require somebody to interpret what those numbers mean.

A finance team may produce a monthly variance report containing hundreds of accounts. A sales manager may receive a table showing revenue, margin and year-on-year movements by customer. An operations team may have service performance data by branch, product or employee.

Excel can identify that a number has changed.

A.I. can help explain what deserves attention and how to describe it in plain English.

Example

Consider a management reporting workbook containing:

Business UnitActualBudgetPrior YearMarginVolume
Auckland$842,000$790,000$765,00031%4,220
Wellington$516,000$560,000$541,00024%2,730
Christchurch$624,000$610,000$590,00029%3,105

Traditional Excel formulas can calculate:

  • Actual versus budget
  • Percentage variance
  • Prior-year movement
  • Gross margin
  • Volume movement
  • Threshold breaches

A.I. could then generate commentary such as:

Auckland materially exceeded both budget and prior year, with revenue 6.6% above budget and stronger volume. Margin remains healthy at 31%, suggesting growth has not been achieved through excessive discounting.

For Wellington:

Wellington is 7.9% below budget and 4.6% below the prior year. The combination of weaker revenue and a 24% margin warrants investigation, particularly if the decline is concentrated in specific customers or product groups.

Instead of management manually writing commentary for 30 branches every month, A.I. creates a first draft in seconds.

Potential Technical Architecture

A practical implementation using Power Query could work as follows:

  1. 1

    Excel creates the analytical dataset

    Existing formulas, VBA or Power Query produce a clean table containing the metrics the A.I. needs.

    A.I. should generally not be asked to recalculate values that Excel already calculates reliably.

  2. 2

    Power Query packages the dataset

    Power Query converts the required rows into JSON. For example:

    {
      "period": "July 2026",
      "business_units": [
        {
          "name": "Auckland",
          "actual": 842000,
          "budget": 790000,
          "prior_year": 765000,
          "margin": 0.31,
          "volume": 4220
        }
      ]
    }
  3. 3

    Power Query calls the XLS Experts API

    • The workbook sends an HTTPS request to a secured Google Cloud endpoint.
    • The workbook does not need to contain the OpenAI API key.
    • Authentication can instead be handled between the workbook and our API.
  4. 4

    The API prepares the A.I. request

    The cloud service adds controlled instructions such as:

    • Analyse performance only from supplied data
    • Do not invent explanations that cannot be supported by the data
    • Identify material movements
    • Distinguish facts from possible causes
    • Write for a senior management audience
    • Return one summary per business unit
    • Return structured JSON
  5. 5

    A.I. returns structured results

    For example:

    {
      "business_units": [
        {
          "name": "Auckland",
          "status": "Positive",
          "priority": "Medium",
          "summary": "...",
          "key_observations": [
            "...",
            "..."
          ]
        }
      ]
    }
  6. 6

    Power Query expands the response

    Power Query converts the JSON back into rows and columns. The resulting table can then feed:

    • Management reports
    • Dashboard commentary
    • Board packs
    • Monthly reporting templates
    • Exception reports
    • Automated emails

Important Design Principle

The A.I. should interpret the data rather than become the calculation engine.

For example, Excel should calculate that revenue is 7.9% below budget. A.I. should explain whether that movement appears noteworthy in the context provided.

This separation makes the workflow considerably more auditable.

Additional Possibilities

The same architecture can produce:

  • One-line commentary per row
  • Detailed commentary only for exceptions
  • Executive summaries covering the entire dataset
  • Risk classifications
  • Suggested questions for management to investigate
  • Positive and negative performance highlights
  • Commentary written differently for management, customers or operational teams

The workbook remains an Excel reporting solution. A.I. simply adds a new interpretation layer that would traditionally require significant human effort.

Use Case 2

A.I. Classification and Coding of Unstructured Business Data

Turn descriptions, notes and free text into structured Excel data

A common limitation of traditional Excel automation occurs when a workflow contains human language.

Excel can easily process:

Invoice number: 48392

It has much more difficulty interpreting:

“Customer called again. Unit making intermittent rattling noise after compressor replacement. Technician needs to inspect mounting and fan assembly.”

Businesses frequently maintain Excel datasets containing:

  • Job descriptions
  • Customer comments
  • Complaint notes
  • Maintenance descriptions
  • Purchase descriptions
  • General ledger narratives
  • Survey responses
  • Incident reports
  • CRM notes
  • Email subjects
  • Product descriptions

A human can usually classify these immediately. Traditional formulas or VBA generally require increasingly complicated keyword rules. A.I. provides another approach.

Example — Maintenance Job Classification

Suppose a service company exports 12,000 historical job descriptions from its operational system. Management wants to understand equipment type, fault category, probable component, whether the issue is installation, maintenance or breakdown, severity, and whether the description indicates repeat work.

The source may contain:

Job IDTechnician Notes
10341Compressor trips after approx 15 min. Customer says problem started yesterday.
10342Annual preventative maintenance completed. Filters replaced and coils cleaned.
10343Returned following last week's repair. Fan still making excessive vibration.

A.I. could return:

Job IDWork TypeFault CategoryComponentRepeat Visit
10341BreakdownElectrical/OverloadCompressorNo
10342Preventative MaintenanceScheduled ServiceMultipleNo
10343BreakdownMechanical/VibrationFanYes

The organisation suddenly has structured analytical data that did not previously exist.

Potential Technical Structure

This is particularly suitable for a Power Query batch process.

  1. 1

    Import the source data

    Power Query imports records from:

    • Excel tables
    • CSV files
    • SQL databases
    • SharePoint
    • APIs
    • ERP exports
    • CRM exports
  2. 2

    Conventional preprocessing

    Power Query can first remove unnecessary information, clean text and assign unique record IDs. Potentially sensitive columns can be excluded before anything is sent externally.

  3. 3

    Send records in controlled batches

    Instead of sending 12,000 requests individually, the API can process batches. For example:

    {
      "records": [
        {
          "id": "10341",
          "description": "Compressor trips after approx 15 min..."
        },
        {
          "id": "10342",
          "description": "Annual preventative maintenance..."
        }
      ]
    }
  4. 4

    A.I. applies a predefined classification taxonomy

    Rather than simply asking “What category is this?”, the application can provide A.I. with the company's approved categories. For example:

    Work Type

    • Installation
    • Preventative maintenance
    • Breakdown
    • Inspection
    • Warranty
    • Other

    Fault Category

    • Electrical
    • Mechanical
    • Refrigeration
    • Controls
    • Leakage
    • Noise/Vibration
    • Unknown

    This makes output much more consistent.

  5. 5

    A.I. returns structured JSON

    The response can include:

    {
      "id": "10341",
      "work_type": "Breakdown",
      "fault_category": "Electrical",
      "component": "Compressor",
      "confidence": 0.91,
      "reason": "Description states compressor trips during operation."
    }
  6. 6

    Excel receives the enriched dataset

    Power Query expands the JSON into additional columns beside the original records. The resulting dataset can immediately be analysed using:

    • PivotTables
    • Charts
    • Power Query
    • Excel formulas
    • Existing VBA reporting
    • Downstream databases

Confidence and Exception Handling

A.I. does not need to be trusted blindly. A useful implementation could specify:

Confidence ≥ 90%

Automatically accept classification.

Confidence 70–89%

Accept but flag for review.

Confidence < 70%

Send to an exception worksheet for human classification.

Human corrections can also be retained. Over time, those examples can become part of the context supplied to the model.

Where This Can Be Used

The same architecture can classify:

  • Bank transactions into accounting categories
  • Customer enquiries by department
  • Complaints by cause
  • Insurance claims by incident type
  • Product descriptions into product families
  • Sales opportunities by industry
  • Maintenance notes by failure mode
  • Employee feedback by topic
  • Procurement descriptions by spend category
  • Health and safety reports by incident type

A previously unstructured text column becomes structured business intelligence.

Use Case 3

A.I. Extraction from Emails, PDFs and Documents into Excel

Convert documents people read manually into structured spreadsheet records

A large amount of business information enters organisations through documents rather than databases.

Examples include:

  • Supplier quotations
  • Purchase orders
  • Customer emails
  • Insurance claims
  • Engineering specifications
  • Tender documents
  • Statements
  • Contracts
  • Application forms
  • Inspection reports
  • PDF schedules
  • Delivery documents

Employees then manually read those documents and type selected information into Excel. That is precisely the type of workflow where A.I. can sit between an unstructured document and an existing Excel process.

Example — Supplier Quotation Processing

An engineering business requests quotes from several suppliers. Each supplier responds differently. One PDF may state:

UB 310 x 46.2 — 12 metres — Qty 6 — $1,287.50 each
Hot-dip galvanising additional $145.00 per item
Freight Auckland $385
Quote valid 30 days.

Another supplier may send the same information in an email using completely different terminology. The company's Excel workbook needs columns such as Supplier, Product, Length, Qty, Unit Price, Galv, Freight and Valid Until.

Historically somebody reads every quote and rekeys the information. A.I. can convert the documents into that structure.

Potential Technical Architecture

This workflow is often best controlled through VBA.

  1. 1

    User selects the source material

    An Excel interface could allow users to select one or more PDF files, an email attachment directory, paste email text, or select files from a network location.

    VBA sends the documents or extracted text to the cloud API. Alternatively, the process may be triggered outside Excel and Excel simply retrieves the completed dataset later.

  2. 2

    Cloud service extracts document content

    Depending on document type, the API layer may use:

    • Native document text
    • PDF parsing
    • OCR where required
    • Email body extraction
    • Spreadsheet parsing

    The extracted content is passed to the A.I. model along with a strict schema.

  3. 3

    A.I. maps the document into the required fields

    Instead of returning prose, the model is instructed to return something such as:

    {
      "supplier": "ABC Steel",
      "quote_number": "Q-44892",
      "quote_date": "2026-08-04",
      "valid_until": "2026-09-03",
      "currency": "NZD",
      "items": [
        {
          "description": "UB 310 x 46.2",
          "length_mm": 12000,
          "quantity": 6,
          "unit_price": 1287.50
        }
      ],
      "galvanising": 870,
      "freight": 385
    }
  4. 4

    API validates the response

    Before Excel receives anything, conventional program logic can validate:

    • Required fields exist
    • Dates are valid
    • Numbers are numeric
    • Quantity × unit price calculations reconcile where appropriate
    • Currency is recognised
    • Duplicate quote numbers have not already been processed
  5. 5

    VBA writes the records into the existing workbook

    The data may populate:

    • Quote comparison worksheets
    • Procurement models
    • Estimating systems
    • Accounts payable templates
    • Material schedules
    • Project costing worksheets

    The user's downstream process can remain unchanged.

A.I. Can Also Preserve Source Evidence

A particularly useful implementation is to return not only the extracted value but its evidence. For example:

{
  "field": "freight",
  "value": 385,
  "source_text": "Freight Auckland $385",
  "confidence": 0.98
}

The Excel interface can then allow the user to review questionable records.

Resolving Ambiguous Information

Suppose a quote says: “Delivery approximately 3 weeks from order.” There is no fixed delivery date. Rather than inventing one, the A.I. can return:

{
  "delivery_date": null,
  "delivery_terms": "Approximately 3 weeks from order",
  "requires_review": true
}

This is an important difference between a controlled business application and simply asking ChatGPT to read a document.

Broader Applications

The same pattern could be used to extract:

Insurance

Claim number, policyholder, event date, incident type, claimed amount.

Property

Address, tenant, rent, lease expiry, review dates and clauses.

Construction

Tender requirements, quantities, dates, exclusions and specifications.

Finance

Invoice number, supplier, GST, line items and payment terms.

Logistics

Shipment numbers, container details, ETAs and delivery locations.

Human Resources

Applicant skills, qualifications and employment history.

A.I. becomes a translation layer between the documents the business receives and the structured Excel system it already uses.

Use Case 4

A.I.-Assisted Data Quality, Anomaly Investigation and Exception Management

Go beyond finding bad data and help users understand it

Excel and Power Query are very good at finding deterministic problems — blank customer IDs, invalid dates, duplicate invoice numbers, negative quantities, amounts outside a specified range.

But many business data problems are contextual. Consider these examples:

  • A customer normally orders $4,000 per month but suddenly orders $70,000.
  • A freight charge is technically valid but unusually high relative to the order.
  • A product description does not match its assigned product category.
  • An expense appears to have been coded incorrectly based on its narrative.
  • A maintenance job looks suspiciously similar to a recently completed warranty job.
  • An employee appears to have submitted several slightly different versions of the same expense.

Traditional rules may identify some of these. A.I. can add another level of review.

Example — Financial Transaction Review

Suppose an Excel reconciliation process contains 20,000 transactions. Existing Power Query logic first calculates conventional indicators such as amount versus historical average, duplicate references, missing fields, unusual supplier, weekend transaction, account code changes and GST inconsistencies.

Only potentially unusual records are sent to A.I.. This is much more efficient than asking A.I. to examine everything.

Hybrid Architecture

The strongest architecture combines conventional logic and A.I..

Layer 1 — Excel / Power Query rules

The workbook performs all obvious deterministic tests. For example:

IF Amount > AverageSupplierTransaction * 4
THEN Flag = TRUE

Layer 2 — A.I. contextual assessment

Only flagged records are packaged with relevant context. For example:

{
  "transaction": {
    "supplier": "ABC Logistics",
    "amount": 12450,
    "description": "Urgent air freight project 4482"
  },
  "supplier_history": {
    "average_transaction": 2100,
    "largest_previous_transaction": 4800
  },
  "project": {
    "project_id": "4482",
    "status": "Urgent customer delivery"
  }
}

The A.I. might respond:

{
  "risk": "Medium",
  "classification": "Unusual but potentially explainable",
  "reason": "Transaction is 5.9x normal supplier spend but description references urgent air freight against an active project.",
  "recommended_action": "Confirm project 4482 required expedited freight."
}

Layer 3 — Human review

Excel presents an exception screen with columns for Transaction, Rule Triggered, A.I. Assessment, Recommendation and User Decision. The user can then select: Accept, Investigate, Correct or Escalate.

Why This Works Better Than Pure A.I.

A.I. is not being asked to discover anomalies blindly. Conventional calculations identify the statistical or rules-based exceptions. A.I. then helps answer: “Does this exception make sense in context?”

That division of responsibility reduces:

  • API cost
  • Processing time
  • Hallucination risk
  • Unnecessary A.I. decisions

while increasing the usefulness of the review.

A.I. Can Also Identify Semantic Inconsistencies

Consider a procurement dataset where the description says “Stainless steel fasteners M12 316 grade” but the assigned category is “Electrical Components.” There may be nothing numerically wrong with the record — A.I. can recognise that the description and classification are inconsistent.

Similarly, an invoice description of “Annual Microsoft Azure subscription” coded to “Vehicle Repairs” may have a perfectly reasonable amount while the semantic classification is not.

Possible Applications

  • Financial reconciliations
  • Expense reviews
  • Accounts payable
  • Inventory records
  • Customer master data
  • Procurement analysis
  • Payroll exception workflows
  • Warranty claims
  • Insurance claims
  • Compliance reporting
  • Operational audit processes

A.I.-Generated Investigation Notes

The system can also automatically create audit-friendly commentary:

Transaction 884392 was flagged because its value was 5.9 times the supplier's 12-month average. The description references urgent air freight for Project 4482. Human confirmation is recommended before approval.

These notes can be retained alongside the user's decision. This turns a traditional exception report into an assisted investigation workflow.

Use Case 5

Natural-Language A.I. Assistant Inside an Existing Excel Application

Let users ask questions about the workbook instead of navigating every report

Some Excel applications become substantial business systems. They can contain numerous worksheets, thousands of records, PivotTables, reports, VBA interfaces, configuration tables, pricing calculations, project information and historical transactions.

Experienced users may understand them well. Occasional users often do not. A.I. can provide a conversational layer over the application without replacing the underlying workbook.

Example

Consider an Excel-based project costing application. Instead of navigating several worksheets, a project manager could type:

Which projects are currently forecast to exceed their approved labour budget?

The application gathers the relevant structured data and sends it to the A.I. service. The response might be:

Three active projects are currently forecast above approved labour budget:

• Project 4482 — forecast 18% over budget
• Project 4511 — forecast 11% over budget
• Project 4467 — forecast 7% over budget

Project 4482 represents the largest exposure, with approximately $38,400 of forecast labour overspend.

The user could then ask “Why is 4482 running over?” and receive:

The principal driver is installation labour. Actual hours are already at 82% of budget while the project is only 61% complete. Drafting and procurement remain close to budget.

The Important Architectural Constraint

The A.I. should not receive the entire workbook and be expected to understand everything. Instead, VBA acts as the application controller.

  1. 1

    User asks a question

    A worksheet or VBA UserForm contains an “Ask the workbook” interface.

  2. 2

    VBA sends the question to the cloud API

    {
      "workbook": "Project Costing",
      "user_question": "Which projects are forecast over labour budget?"
    }
  3. 3

    A.I. determines what information is required

    The service may classify the request as:

    {
      "intent": "project_labour_variance",
      "required_dataset": "active_project_cost_summary"
    }
  4. 4

    VBA retrieves the approved dataset

    Rather than giving A.I. unrestricted access, Excel sends a predefined table containing:

    • Project number
    • Project name
    • Labour budget
    • Labour actual
    • Forecast labour
    • Project completion percentage
  5. 5

    A.I. analyses only that data

    The model generates the answer from the controlled dataset.

  6. 6

    Excel displays the response

    The response can appear:

    • In a worksheet panel
    • In a VBA UserForm
    • In a task-oriented report
    • As generated commentary
    • As a new worksheet containing supporting records

A.I. Can Trigger Existing VBA Functions

The assistant could eventually become more than a reporting interface. A user might ask: “Prepare the monthly project variance report for Auckland.” The A.I. interprets the instruction:

{
  "action": "generate_variance_report",
  "region": "Auckland",
  "period": "current_month"
}

VBA then executes the existing approved procedure. The model does not write arbitrary VBA and execute it. Instead, it selects from controlled actions such as generate report, refresh data, filter project, create PDF, draft commentary, find customer or display exceptions. This is substantially safer.

Natural Language Search

The same mechanism is extremely useful for locating information. A user could ask: “Find the order where the customer complained about damaged packaging sometime around March.” Traditional Excel search requires knowing precisely what to search for. A.I. can interpret approximate language and identify likely records.

Explain Existing Results

Users might also ask “Why is this price $18,420?” The VBA application can collect the calculation components:

Materials      $8,420
Labour         $4,800
Subcontractors $1,600
Freight          $540
Markup          $3,060

A.I. then translates the calculation into an explanation. The calculation still comes from the Excel pricing engine — A.I. simply explains it.

Potential Applications

  • Estimating workbooks
  • Financial models
  • Operational applications
  • Inventory systems
  • Project management workbooks
  • Engineering calculations
  • Property development models
  • Sales reporting
  • Management reporting
  • Resource planning tools

Security and Governance

Enterprise implementations can control:

  • Which workbook functions A.I. may invoke
  • Which datasets each user may access
  • How much information is sent externally
  • Which A.I. provider is used
  • Prompt versions
  • API request history
  • User identity
  • Response logging
  • Retention rules

Sensitive identifiers can also be replaced with internal IDs before data leaves the organisation.

The Result

Users continue working inside Excel. Existing formulas, VBA, Power Query and business rules remain intact. A.I. provides a new interface for interpreting information and interacting with the application.

Instead of replacing a mature Excel system, it makes that system considerably easier to use.

A Common Architecture Across All Five Use Cases

Although the business applications differ, the underlying technical pattern can be highly reusable.

1

Excel Layer

User interface, calculations, existing VBA workflows, Power Query transformations, local business logic, tables and reports.

2

Integration Layer

VBA or Power Query selects approved data, converts it to JSON, calls an HTTPS endpoint, receives JSON, validates the basic response and places results back into Excel.

3

XLS Experts Cloud API

A Google Cloud service providing authentication, OpenAI connectivity, prompt management, model selection, request validation, response schemas, logging, rate limiting, error handling, data masking and usage monitoring.

4

A.I. Layer

Interpretation, classification, extraction, summarisation, explanation, contextual assessment and natural-language interaction.

5

Structured Response

Wherever possible, the model returns defined JSON rather than uncontrolled text.

6

Excel Application

Results become additional table columns, commentary, exceptions, classifications, extracted records, user-facing answers or inputs into the next stage of the existing workflow.

The important point is that A.I. becomes another controlled service available to Excel — not a replacement for Excel. That gives businesses a practical way to introduce A.I. into established operational workflows without rebuilding mature systems from scratch.

Which of these patterns fits your workbook?

Tell us about the Excel process you already rely on — we will identify where a secure A.I. layer can add the most value without replacing what works.

Book a free consultation
Start a conversation

Let's talk about what you need

Big or small, we are happy to discuss it. Send us a message or book a free discovery call — we typically respond same business day.

What happens next

  1. 1

    We review your enquiry carefully and reach out personally — usually same business day. No obligation, no hard sell.

  2. 2

    We clarify scope, then provide a clear fixed-price quote and realistic delivery timeframe so you know exactly where you stand.

  3. 3

    Once agreed, we build in stages, keep you updated, and hand over a solution your team can rely on — with support if you need it.

Contact directly

+64 21 783 967WhatsApp us
NZAuckland, New Zealand — serving clients nationwide
What does your task concern? (select all that apply)

How would you like to proceed?

Fields marked * are required. A phone number is required to book a discovery call.