Fix Excel Converting Empty Cells to Nonbreaking Spaces When Pasting to Web
Question details
Copying data from desktop Excel to Excel for the web causes apparently empty cells to be populated with nonbreaking spaces or other hidden characters, interfering with formulas.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Pasting tabular data from the desktop version of Excel into Excel for the web.
- Observed behavior
- Empty cells contain nonbreaking spaces or hidden characters after pasting, which causes the ISBLANK function to incorrectly return FALSE and breaks dependent formulas.
Ensure both your desktop Excel application and web browser are updated to their latest versions, and test the copy-paste action in a completely new, blank workbook to rule out file-specific corruption.
Clean Data Using the SUBSTITUTE Formula
Use a formula to target and replace hidden nonbreaking spaces (CHAR 160) with truly empty strings so your formulas can process the data correctly.
The standard TRIM function often fails to remove nonbreaking spaces because it is designed for regular spaces (CHAR 32). Instead, the SUBSTITUTE function can precisely target the character code generated during the web paste.
Insert a new blank column directly next to the column containing the problematic pasted data.
In the first cell of your new column, enter `=SUBSTITUTE(A1, CHAR(160), "")` (assuming A1 is the target cell) and press Enter.
Click the bottom-right corner of the cell containing the formula and drag it down to apply it to all affected rows.
Copy the newly generated helper column, right-click the original data column, and choose 'Paste as Values' to overwrite the corrupted cells permanently. You can then delete the helper column.

Identify Hidden Characters Using CODE and LEN Functions
If the SUBSTITUTE formula does not fix the issue, the hidden character might not be a standard nonbreaking space. You can use diagnostic formulas to find the exact character code.
Edit and Sync Spreadsheets Seamlessly with WPS Office
Skip the frustration of copy-paste glitches between desktop and web versions. WPS Office provides a free, highly compatible alternative to Microsoft Office that syncs your spreadsheets flawlessly across all devices.
- 1. Download WPS Office: Get the free installation package from the official WPS website and install it on your device.
- 2. Open your spreadsheet: Launch WPS Spreadsheet and open your existing .xlsx workbook directly.
- 3. Work seamlessly across devices: Save your work to WPS Cloud to securely access and edit your data from any browser or device, bypassing the need for manual copy-pasting.

Frequently Asked Questions
Why does ISBLANK return FALSE when the cell looks completely empty?
Visibly empty cells might contain hidden formatting characters, such as nonbreaking spaces or zero-length strings generated during a web paste. Excel evaluates these hidden characters as data, causing ISBLANK to return FALSE.
Can I use the standard TRIM function to remove nonbreaking spaces?
No, the standard TRIM function is designed to remove regular spaces (ASCII character 32). It generally ignores nonbreaking spaces (ASCII character 160). You must use the SUBSTITUTE function to target and remove them.
How can I prevent hidden characters when pasting data into Excel for the web?
Instead of using standard copy and paste shortcuts, try right-clicking and selecting 'Paste as Values' to strip out formatting artifacts. Alternatively, upload your desktop workbook directly to OneDrive and open it in the web browser.




