Guide · Work and careers

How to Use AI for Excel Formulas and Data Analysis: A Step-by-Step Guide

A guide to using AI assistants in Excel and Google Sheets to write formulas, find errors, clean data, and get pivot table and chart suggestions.

Writing a formula in Excel, fixing a broken one, or analyzing a messy table can take a lot of time. AI assistants cut these tasks down to minutes when you describe what you want in plain language.

1. Describe your table’s structure

If the assistant can’t see your file, describe the columns: “Column A has the order date, B the customer name, C the product, D the quantity, and E the unit price. The data starts in row 2.” Giving a few sample rows is even better; use made-up names instead of real customer names.

2. State clearly what you want to calculate

Give a clear goal, such as “a formula that calculates each customer’s total purchase amount in 2026.” Also specify Excel’s language: if you say “I use Turkish Excel,” the assistant will use Turkish function names such as ETOPLA (SUMIF), ÇOKETOPLA (SUMIFS) and DÜŞEYARA (VLOOKUP), along with the semicolon separator.

3. Ask for an explanation of the formula

Before copying the formula, say “Explain this formula piece by piece.” That way you both make sure it works correctly and can write it yourself next time.

4. Have broken formulas fixed

For errors such as #YOK (#N/A), #DEĞER! (#VALUE!) or #BAŞV! (#REF!), paste the formula and the error message and ask, “Why am I getting this error and how do I fix it?” The assistant can usually spot causes such as a missing range, a wrong data type, or a value that can’t be found.

5. Get your data cleaned

Problems such as mixed date formats, extra spaces in names, and different spellings of the same customer should be fixed before analysis. You can ask the assistant for formulas that fix them (such as KIRP (TRIM), BÜYÜKHARF (UPPER) and METNEÇEVİR (TEXT)) or for a step-by-step cleaning plan.

6. Get pivot table and chart suggestions

Build an analysis plan with questions like: “I want to see the monthly sales trend and the top 5 best-selling products from this data. Which pivot table should I build, and which chart fits?” Assistants that let you upload files can also run this analysis directly.

7. Check the results

On large tables, AI can skip rows or use the wrong column. Check totals by hand on a few rows, make sure the total row count is correct, and for critical reports verify the result by running the formulas in your own file.

Ready-made prompt templates

  • “Write a Turkish Excel formula that extracts the month name from the dates in column B.”
  • “Write a formula that pulls the price into Sheet1 based on the product code in Sheet2; if the code isn’t found, it should return ‘None’.”
  • “A formula that returns ‘Large’ if the sales amount is above 10,000, ‘Medium’ if it is between 5,000 and 10,000, and ‘Small’ otherwise.”
  • “How do I find and delete duplicate records in this table?”

FAQ

Can AI analyze my Excel file directly?

Assistants with a file upload feature can read and analyze Excel and CSV files, and some run code to do the calculations. It is still important to check the results against a few examples.

Are formula names different in Turkish Excel?

Yes. Turkish Excel uses Turkish function names such as DÜŞEYARA (VLOOKUP), EĞER (IF) and ETOPLA (SUMIF), and a semicolon as the argument separator. If you tell the assistant which language your Excel uses, it will write the formula correctly.

More guides

Related news

Control room with monitors and chairs
Security

UK’s AI Security Institute questions how AI agent monitors are tested

The UK’s AI Security Institute argues that simulated sabotage tests of systems that monitor AI agents may not be as reassuring as they appear. The rate of missed harmful actions rose to 22.7% under optimized attacks.

Regulation

Oregon and Virginia sue SpaceX over Grok’s sexualized deepfake images

The Oregon and Virginia attorneys general accuse X and Grok operator SpaceX of violating consumer protection laws. The company points to bad actors who it says deliberately tried to bypass safeguards.

Computer screen displaying HTML code for a web development project
Models

Tencent unveils low-cost Hy4 flash model for everyday work tasks

Tencent has announced Hy4 flash, a model designed for tasks such as research, slide preparation and spreadsheet editing. The company says the cost per task is one-twentieth that of the full Hy4 model.

A female teacher smiling at the desk with a laptop
Research

Wharton releases Primer, which lets teachers build classroom simulations without coding

Wharton Generative AI Labs has released Primer, an open-source system that lets educators build simulations for students by conversing with AI, without writing code. The team says the system is an experimental prototype.