My Excel file is huge and slow

Short answerAn oversized used range and formatting on unused cells make a workbook large and slow. Press Ctrl+End to find an oversized used range and delete the empty rows and columns, replace volatile functions such as INDIRECT and OFFSET, turn finished formulas into values and save as .xlsb. If that is not enough, clean excess formatting, move raw data into Power Query and ask IT for 64-bit Excel.

01

Delete the empty rows and columns past your data

Press Ctrl+End on each sheet: Excel jumps to the last cell of its used range. If that is far below or to the right of your real data, delete all rows and columns between your last real cell and that point, then save the workbook. Make a backup copy first, because formulas that refer to the deleted area change with it.

Good if Ctrl+End lands far beyond your data

Microsoft Learn

Do it yourself
CostFree
EffortLow
HelpsToday
02

Replace volatile formulas such as INDIRECT, OFFSET and TODAY

Excel recalculates every cell with a volatile function, and everything that depends on it, at every recalculation. The volatile functions include NOW, TODAY, RANDBETWEEN, OFFSET and INDIRECT. Where you use OFFSET or INDIRECT to look something up, INDEX is a fast function that is not volatile.

Good if the file gets slow every time you type something

Excel Recalculation · Excel performance, Tips for optimizing performance obstructions

Do it yourself
CostFree
EffortMedium
HelpsThis week
03

Turn formulas into values where they no longer change

Many workbooks carry blocks of formulas that only shape the input data or that change rarely. Copy them and use Paste Special, Values to replace the formulas with their results. Because forgetting that a formula became a value causes errors later, you can instead move such blocks into a separate workbook that you open only when needed.

Good if large blocks of formulas hold results that never change

Skip if the numbers still update from new data every day

Microsoft Learn

Do it yourself
CostFree
EffortLow
HelpsToday
04

Save the workbook as .xlsb

Save the file as an Excel Binary Workbook (.xlsb) under File, Save As. Microsoft's docs say .xlsx files are typically about 1.5 times larger on average than .xlsb, and opening and saving .xlsx takes slightly longer. Keep .xlsx if other tools need to read the file.

Good if the file is large and slow to open and save

Skip if another system needs to read the file as .xlsx

Microsoft Learn · Microsoft Support

Do it yourself
CostFree
EffortLow
HelpsToday
05

Set calculation to manual while you edit

Under Formulas, Calculation Options, choose Manual, and Excel only recalculates when you press F9. Shift+F9 recalculates the active sheet only. Switch back to Automatic before you share or print the file, so nobody reads old numbers.

Good if each change freezes Excel for seconds

Skip if you or others forget to recalculate before reading results

Microsoft Support

Do it yourself
CostFree
EffortLow
HelpsToday
06

Run Clean Excess Cell Formatting

Formatting on cells you do not use, especially whole rows and columns, makes a workbook grow fast and slows Excel down. On the Inquire tab in Excel for Windows, Clean Excess Cell Formatting removes it; if you do not see the tab, turn on the Inquire COM add-in under File, Options, Add-Ins. It is in Microsoft 365 Apps for enterprise and equivalent editions. Make a backup first, because you cannot undo it.

Good if whole rows or columns are formatted

Skip if you use Excel on Mac or a plan without Inquire

Microsoft Support

Tool
CostFree
EffortLow
HelpsToday
07

Move the raw data into Power Query and the Data Model

With Power Query (Get & Transform in Excel) you import or connect to the data, from files, databases or other workbooks, and shape it there instead of with formulas. You load the result into a worksheet or into the Data Model and refresh it when the source changes. A worksheet holds at most 1,048,576 rows, so data that grows past that belongs in a database.

Good if the file mainly holds imported data that formulas clean up

About Power Query in Excel · Excel specifications and limits

Tool
CostFree
EffortMedium
HelpsThis week
08

Ask IT for 64-bit Excel and more memory

32-bit Excel can use up to 2 GB of memory, or up to 4 GB in Large Address Aware versions, and the computer needs memory for other programs too. 64-bit Excel does not have that limit, and Microsoft names working with large data sets as a reason to choose 64-bit. Ask your IT team which version you run and whether they can switch it or add RAM.

Good if Excel runs out of memory or stops responding on big files

Skip if you already run 64-bit Excel with plenty of RAM

Microsoft Learn · Microsoft Support

Service
CostFree
EffortLow
HelpsThis week

When it's bigger than a quick fix

Talk to your IT or data team when the data keeps growing towards the worksheet limit of 1,048,576 rows, when several people need to work on the same data at once, or when the file is slow even after the fixes above. At that point the data belongs in a database, with Excel only for reports.

If the workbook no longer opens or says it is damaged, use Open and Repair in Excel's Open dialog before you save anything over it, and turn on Always create backup so you have a copy next time.

Excel specifications and limits · Repair a corrupted workbook

Questions people ask

Why is my Excel file so big?

Often because the used range reaches far beyond your data, or because whole rows and columns carry formatting. Ctrl+End shows where Excel thinks your data ends.

Is .xlsb smaller than .xlsx?

Usually. Microsoft's docs say .xlsx files are typically about 1.5 times larger on average than .xlsb files.

Which Excel functions slow a workbook down?

Volatile functions such as NOW, TODAY, RANDBETWEEN, OFFSET and INDIRECT recalculate at every recalculation, together with everything that depends on them.

How do I stop Excel recalculating after every change?

Set Calculation Options to Manual and press F9 when you want results. Switch back to Automatic before you share the file.

Does 64-bit Excel help with large files?

Yes, when memory is the limit. 32-bit Excel can use up to 2 GB or 4 GB of memory, 64-bit Excel does not have that limit.

Sources

  1. Microsoft Learn: Excel performance, Tips for optimizing performance obstructions
  2. Microsoft Learn: Excel Recalculation
  3. Microsoft Support: File formats that are supported in Excel
  4. Microsoft Support: Change formula recalculation, iteration, or precision in Excel
  5. Microsoft Support: Clean excess cell formatting on a worksheet in Excel for Windows
  6. Microsoft Support: About Power Query in Excel
  7. Microsoft Support: Excel specifications and limits
  8. Microsoft Support: Choose between the 64-bit or 32-bit version of Office
  9. Microsoft Support: Repair a corrupted workbook