ChatGPT

How to Use ChatGPT with Excel and Google Sheets for Data Analysis

November 25, 2026
AcceleratorX Team

Learn how to use ChatGPT with Excel and Google Sheets to write complex formulas, clean messy CSVs, build pivot tables, and automate reports without coding.

How to Use ChatGPT with Excel and Google Sheets for Data Analysis
Table of Contents

Introduction

Spreadsheets take up a lot of time for analysts, marketers, and operations managers each week. Rather than searching forums for complex formulas or fixing date formats by hand, you can use ChatGPT to help with your spreadsheets. Learning to manage data-handling workflows is a key part of ChatGPT training for business professionals, as it helps non-technical staff become faster, more independent analysts.

4 Ways Working Professionals Use ChatGPT with Spreadsheets

Formula generation and debugging

Describe the logic in plain English and get exact Excel or Google Sheets formulas.

Data cleaning

Upload a messy CSV export, remove duplicates, split combined columns, and download a clean .xlsx file.

Automated VBA and Apps Script

Generate macros that format weekly reports in one click.

Visual analysis

Upload sales or marketing data and ask ChatGPT to plot cohort trends, variance charts, and anomaly flags.

Writing Complex Excel and Google Sheets Formulas

When you ask ChatGPT for a formula, specify three things: the software you are using (Excel 365 or Google Sheets), the exact column letters, and the row range.

Example Formula Prompt
"I am using Excel 365. Column A contains Order Dates (A2:A500), Column B contains Region (B2:B500), and Column C contains Revenue (C2:C500). Write a formula to calculate total revenue for the 'South' region in Q3 2026 only. Wrap it in IFERROR, so blanks return 0."

ChatGPT will give you a clear SUMIFS formula that you can copy and paste into your cell. If you get a #N/A or #VALUE! error, copy the formula and a few sample rows, then ask ChatGPT to help find the data-type issue.

Cleaning Messy Data and Standardising CSV Exports

Raw CRM and ERP exports often have mixed date formats (like 11/25/2026 and 25-Nov-26), extra spaces, and different currency symbols. With ChatGPT's data analysis mode, upload your file and give one prompt to clean it up:

Example Cleaning Prompt
"Inspect this uploaded CSV. 1) Standardise all dates in Column D to YYYY-MM-DD. 2) Trim leading and trailing spaces in Column B. 3) Remove exact duplicate rows based on Order_ID. 4) Provide a downloadable cleaned Excel file and list how many rows were modified.

ChatGPT uses Python code in the background to clean your data and gives you a ready-to-use file.

Generating Instant Charts and Executive Summaries

After your sheet is clean, ask ChatGPT to highlight trends and create visuals that are ready for presentations.

Example Charting Prompt
"Using the cleaned sales file, calculate month-over-month revenue growth by product category. Identify the top 2 underperforming categories and generate a high-resolution bar chart comparing Q2 versus Q3 revenue."

Always spot-check the totals with a quick SUM() in your own spreadsheet before putting the numbers into a client deck.

Data Privacy Rules Before Uploading Spreadsheets

Never upload personally identifiable information (PII) such as customer phone numbers, Aadhaar/PAN numbers, employee salaries, or confidential M&A numbers to a personal ChatGPT Free account. If you use a ChatGPT Business account, your files and prompts are excluded from model training by default, providing an extra layer of privacy protection for sensitive business data. However, while business accounts help keep your uploads private from OpenAI's training procedures, no cloud platform can guarantee total privacy. To keep sensitive information secure, always take these steps: replace real client names with generic labels, remove or hide columns with emails and phone numbers, and use a secure, company-approved network when uploading files. Check with your IT or compliance team before sharing confidential data to ensure you follow best practices. Always review your organisation's data policies before sharing any confidential files.

1. Anonymise first

Replace client names with Client_01, Client_02 and delete email/phone columns before uploading.

2. Use a Business workspace

ChatGPT Business excludes your uploaded files from model training by default. Files uploaded to Business accounts are securely stored and can only be accessed by authorised users within your organisation. According to OpenAI, uploaded files are typically retained for up to 30 days to support the completion of your request, after which they are deleted unless otherwise required by law or for security investigations. Use these security controls to reduce the risk of unauthorised access. For full details on data retention, access, and privacy, refer to your organisation's compliance policy and check the official ChatGPT Business documentation, as specific retention periods may change over time.

If you want to practice building automated reporting pipelines with live mentor feedback, you can try the AcceleratorX Generative AI Business Track. (Full disclosure: I am not affiliated with AcceleratorX.) Other good options for learning AI and data automation are Coursera's Data Analysis with Python and Excel or LinkedIn Learning's Excel Automation courses.

Frequently Asked Questions

Author

AcceleratorX Team

AI & Automation Curriculum Mentors