Excel for Data Analysts: A Practical Working Guide
In this article
Excel is the most common first tool for data analysts, and it is fully capable of cleaning, joining, summarising and visualising real datasets before you ever need SQL or Python. To do it well, treat the workbook as a small database rather than a page of scribbles: one header row, one row per record, real dates and numbers, and a table that grows. This guide walks through the workflow a working analyst follows on a fresh file, from first import to a summary you can defend in a meeting. The specific menu labels below can differ slightly by Excel version, platform and region, so if you cannot see a command, look for the nearest equivalent on the same tab.
<What You'll Need
- Microsoft Excel on Windows, Mac or the web version - Excel 365 gets you the dynamic array functions (FILTER, SORT, UNIQUE, XLOOKUP) that make modern analysis much faster.
- A dataset to work on: a CSV export, a database dump, or a folder of monthly files you want to combine.
- Power Query, which is built into Excel from 2016 onward under the Data tab - no add-in needed.
- Enough free memory and disk for your file size; very large CSVs are better held in Power Pivot or handled in chunks.
- A naming convention for files and sheets decided in advance, so a colleague can follow your work.
Step-by-Step
- Import through Power Query, not copy-paste. Go to Data > Get Data and choose From Text/CSV (or From File > From Folder if you have one file per month). Use the preview window to set the delimiter, confirm the encoding, and let Excel detect data types. Press Transform Data rather than Load, so you can clean before anything lands on a sheet. This single habit makes your analysis repeatable: next month you refresh instead of rebuilding.
- Fix types and clean columns in the Power Query editor. Right-click each column header and set the correct type - dates should be dates, codes like ZIP or employee ID should be Text so leading zeros survive. Trim whitespace, split columns that hold two values in one field, and remove blank top rows. Every transformation is recorded as a step you can reorder, rename or delete later.
- Name your query before loading. In the Query Settings pane, rename the query to something descriptive like Sales_2026. Load it to a table on a new sheet, or to the Data Model via Close & Load > Close & Load To if you plan to join several tables.
- Turn the output into an Excel Table. If it is not already one, select the data and press Ctrl+T (Cmd+T on Mac), tick My table has headers, and name the table in Table Design. Tables auto-expand with new rows and make structured formulas like
Sum of Revenueread clearly. - Build a clean key before joining. Analysts lose most of their time to mismatched keys: trailing spaces, inconsistent case, mixed number and text types. In Power Query, create a normalised key column (trimmed, uppercased, zero-padded), then merge queries with Home > Merge Queries using that key. Choose the join kind deliberately - Left Outer keeps all rows from your main table, Inner drops unmatched rows - and expand only the columns you need.
- Check row counts at every join. Before the merge note the row count of each table; after it, confirm the result is what you expect. A join that suddenly multiplies rows usually means duplicate keys on one side. This two-minute check catches the single most common analysis error.
- Do the arithmetic in the Data Model or with pivot formulas, not hand-typed cells. Use PivotTables (Insert > PivotTable) for grouped summaries, or dynamic formulas such as
SUMIFS,COUNTIFSandUNIQUEfor live answers. Prefer SUMIFS over manual summing of ranges: it survives sorting and new data. Hand-typed subtotal rows are the first thing to break when someone inserts a row. - Validate against a known number. Pick one slice - one month, one region - and reconcile your total against the source system or a previously trusted report. If it does not match, diff the two datasets by key to find missing or duplicated records. Do this before building charts, not after.
- Add sanity checks next to the data. A small block of checks - total rows, count of nulls in required fields, min and max date, sum of a currency column - that you glance at after each refresh will catch truncated imports and type flipping.
- Present with a summary sheet, not the raw data. Put the one or two charts and a short table of headline figures on a clean first sheet. Choose the chart type by question: bar for comparison, line for trend over time, scatter for relationship. Label axes and units, and avoid 3-D effects and pie charts with many slices.
- Document and protect the workbook. Add a Read Me sheet listing data source, refresh date, definitions and any assumptions. Freeze panes on wide tables, hide or group helper columns, and lock formula cells (Review > Protect Sheet) so the file survives being passed around. Save the workbook, then test a full refresh from a fresh copy to confirm none of your steps depended on a manual edit.
Common Mistakes
Mixing data types in a column is the classic error: numbers stored as text will not sum, and dates stored as text will not sort or filter by period. Watch for a small green triangle in the corner of cells - it usually signals exactly this. Merged cells break sorting, filtering and PivotTables, so use Center Across Selection for headings instead of merging. Summary rows inside the data range are another frequent problem, because they get counted as records when you sort, filter or pivot; keep totals outside the table or in a separate summary area. Re-typing a cleaned dataset instead of refreshing the query quietly creates two versions of the truth. Finally, trusting a VLOOKUP guess: approximate match is the default and returns wrong answers silently, so always specify exact match or use XLOOKUP, which defaults to exact.
Tips
Keep raw data on its own sheet and never edit it in place; all cleaning happens in the query or downstream sheets, so you can always re-run from source. Learn the dynamic array functions if you have them - FILTER, SORT, UNIQUE, SEQUENCE and XLOOKUP replace many helper-column tricks. Use Ctrl+Shift+L for filters and Ctrl+Shift+Down to select to the end of a block; keyboard speed adds up over a long analysis. Name important cells and ranges so formulas read like sentences. When a PivotTable is slow, switch the source to the Data Model and let it compress the data. And always keep a copy of the file before a big restructure - Save As with a dated name costs nothing.
Troubleshooting
If a refresh fails with a data source or credentials error, check the file path has not changed, confirm any database login is still valid, and re-enter credentials in Data > Queries & Connections rather than rebuilding the query. If numbers come in as text after import, set the column type in Power Query and watch for thousands separators or currency symbols in the source. If a join returns far more rows than expected, inspect both key columns for duplicates with a quick PivotTable count. If formulas return #REF! after deleting rows, an absolute reference pointed at removed cells - undo, then rewrite using table structured references that adjust automatically. If a PivotTable will not update, click anywhere in it and use Refresh, and check that the source range did not shrink. If the file becomes sluggish, look for whole-column references like A:A, volatile formulas, or thousands of formatted blank rows; trim the used range and rebuild.
Frequently Asked Questions
Do I need Power Query or can I just clean data by hand?
For a one-off tiny dataset, hand cleaning is fine. For anything you will refresh or share, use Power Query - the steps are saved, so next month is one click.
Should I use VLOOKUP or XLOOKUP?
Use XLOOKUP if your version has it: it defaults to exact match and can look left as well as right. If not available, VLOOKUP with FALSE as the last argument is safe.
Is Excel enough for large datasets?
Excel handles hundreds of thousands of rows if you load to the Data Model and avoid whole-column formulas. Beyond that, a database or a tool like Power BI is more appropriate.
How do I stop colleagues breaking my formulas?
Put inputs and formulas on separate sheets, lock formula cells with Review > Protect Sheet, and add a Read Me sheet explaining what to edit.
Why do my totals not match the source report?
Usually duplicated keys in a join, text stored as numbers, hidden filtered rows, or a date range cutoff. Reconcile one slice and diff the keys to find the gap.
Can I automate a recurring report?
Yes - build the report on Power Query and PivotTables, then refresh and save. For scheduled delivery without manual work, that typically needs Power BI or a script, since Excel itself does not send reports on a timer.