Reduce file size and load/save time with .xlsb files

Excel Tip #004

Reduce file size and load/save time with .xlsb files

Using .xlsb files can improve performance if your spreadsheet does a lot of number-crunching.

Excel has different options to save a file as an excel file - .xls, .xlsx, .xlsm and .xlsb.

The .xls file format used by Excel 2003 and earlier is, internally, a "binary interchange file format"(called BIFF with various suffixes, e.g. BIFF11). Among its limitations, it can store up to 256 columns and 65536 rows.

The .xlsx file format, default in Excel 2007, is really just a ZIP file with a bunch of XML files inside. It supports things like a million rows and multithreading optimizations for cell calculation order. This file type is typically smaller than an .xls file with the same contents and is probably faster to open in Excel 2007.

The .xlsm file format is an Excel Macro-Enabled Workbook file. Just like with .xlsx files, Microsoft's .xlsm file format uses XML architecture and ZIP compression to store things like text and formulas into cells that are organized into rows and columns.

What surprisingly few people know: Excel 2007+ has another, native format called Excel Binary Workbook (stored as .xlsb). This format can contain macros just like .xlsm files. This format is a proprietary, binary format that fully support all Excel features the same way as .xlsm does. But as everything is stored in the less “bloated” binary format.

Even though we’ve done a lot of work to make sure that our XML formats open quickly and efficiently, this binary format is still more efficient for Excel to open and save, and can lead to some performance improvements for workbooks that contain a lot of data

To make this the default format, use Options→ Save → Save file in this format and change the dropdown to "Excel Binary Format".
Default Settings to save files in .xlsb format
Suggestions based on my experience - Advantages of xlsb:
  1. File size gets reduced
  2. Processing speed faster (when loading the file or performing some actions)
  3. Macros do work

Comments

Popular posts from this blog

VLOOKUP - Exact Match & Approximate Match

Row 1 Is Missing. How to unhide?

Search Backwards in Excel