How to Fix Excel Online Workbook File Size Increasing Unexpectedly
Question details
The user needs to troubleshoot an Excel Online workbook that experiences a massive file size increase after inserting a row, causing it to exceed Microsoft 365 file size limits.

- Product
- Excel Online
- Device & OS
- not provided
- Scenario
- Modifying data or inserting a new row in an Excel Online workbook.
- Observed behavior
- The file size grows significantly and unexpectedly, exceeding the maximum file-size limit for Excel for the web and preventing further editing.
Verify the current file size of your workbook in OneDrive for Business or SharePoint Online and confirm you have Full Control or Editing permissions to make structural changes to the document.
Clear Unused Cells and Hidden Formatting
Removing unintended formatting from empty cells is the most effective way to eliminate unexpected file bloat and restore normal file sizes.
When you insert rows in Excel Online, the application may inadvertently copy conditional formatting, data validation, or cell styles across millions of unused cells. Because Excel for the web has limited optimization tools, you will need to perform these steps in the desktop version of Excel.
While viewing the file in Excel Online, click the 'Viewing' or 'Editing' button on the ribbon and select 'Open in Desktop App' to access full optimization features.
Press Ctrl + End on your keyboard. If the selection jumps far below or to the right of your actual data, your workbook contains excessive formatted empty cells.
Select the first empty row below your actual data. Press Ctrl + Shift + Down Arrow to highlight all rows to the bottom of the sheet. Right-click the row numbers and select 'Delete'.
Select the first empty column to the right of your data. Press Ctrl + Shift + Right Arrow to highlight all columns to the edge. Right-click the column letters and select 'Delete'.
With the unused columns or rows still selected, go to the Home tab, locate the Editing group, click the 'Clear' (eraser icon) dropdown, and choose 'Clear All'.
Press Ctrl + S to save the workbook. Saving forces Excel to recalculate the active range. Upload it back to OneDrive or SharePoint and confirm it opens correctly in Excel for the web.

Inspect Workbook and Remove Hidden Metadata
Use the Document Inspector tool to find and remove hidden properties, custom XML data, or invisible worksheets that take up space.
Reduce Excel File Size Quickly with WPS Spreadsheet
If Excel Online is struggling with large files, you can easily fix bloated workbooks by using WPS Spreadsheet to clear unused ranges and save the file efficiently. WPS Office provides robust tools to handle large datasets without unexpected size increases.
- 1. Open the bloated file in WPS Office: Launch WPS Office and open your .xlsx workbook that is experiencing the file size issue.
- 2. Identify the excess data: Press Ctrl + End to locate the end of your worksheet. This will highlight how many blank rows and columns are carrying hidden formatting.
- 3. Delete the unused ranges: Select the blank rows below your data and columns to the right, right-click the headers, and select 'Delete'.
- 4. Clear formatting: Navigate to the Home tab, click the 'Clear' tool (eraser icon), and choose 'Clear All' on the outer ranges to ensure no residual styling remains.
- 5. Save the optimized file: Click Save. WPS Spreadsheet will automatically optimize the underlying XML structure, yielding a much smaller file ready for cloud upload.

Frequently Asked Questions
What is the file size limit for Excel Online?
For Microsoft 365 subscriptions, Excel for the web typically limits workbooks to 100 MB when stored in OneDrive or SharePoint. However, depending on your specific plan and the file's complexity, editing features might be restricted on files larger than 50 MB.
Why does inserting a single row increase the file size so much?
Inserting a row can sometimes duplicate hidden formatting, conditional formatting rules, or complex data validation across millions of unused cells in the worksheet, causing an instant and massive increase in the file's background XML data.
How can I tell if hidden formatting is inflating my workbook?
Open your workbook and press Ctrl + End on your keyboard. If the cursor jumps to an empty cell far below or to the right of your actual data table, the spreadsheet is storing formatting for those empty cells, which causes file bloat.
Will saving the file in a different format reduce its size?
Yes. Saving the workbook as an Excel Binary Workbook (.xlsb) using the desktop application can significantly compress the file size and improve loading speeds, though you should verify if this format meets your sharing requirements in SharePoint or OneDrive.




