Others

How to Move Non-Blank Excel Cells Left While Preserving Order

Kushani NimanthikaKushani Nimanthika Oct 28, 2026 869 views

Question details

The user needs to remove blank cells within specific rows and shift the remaining non-blank data points to the left towards column A without altering their original chronological sequence.

How to Move Non-Blank Excel Cells Left While Preserving Order
Product
Microsoft Excel
Device & OS
not provided
Scenario
Cleaning up a dataset where rows contain scattered chronological data points separated by empty cells, which causes the values to be aligned too far to the right.
Observed behavior
Values are pushed to the right by preceding blank cells, leaving unwanted gaps and making the chronological data structure inconsistent and difficult to read.
Before you start

Before deleting cells and shifting data in bulk, ensure that removing these blanks will not misalign your selected rows with other critical data columns outside your selection.

Solution 1Recommended

Use Go To Special to Delete Blanks and Shift Left

This is the most efficient built-in method to quickly select all empty cells within your dataset and remove them, pulling the remaining data to the left.

The 'Go To Special' feature allows you to isolate only the blank cells in a selected range. Once isolated, deleting them and choosing to shift the remaining cells left will compress your data perfectly without changing the left-to-right order.

1
Select the target range

Highlight the entire dataset or specific rows containing the data points and the blank cells you want to remove.

2
Open Go To Special

Press the F5 key on your keyboard to open the 'Go To' dialog box. Click on the 'Special...' button at the bottom left. Select the 'Blanks' radio button and click 'OK'.

3
Delete and shift cells

With all the blank cells now highlighted, right-click on any one of them and select 'Delete...'. In the dialog box that appears, choose 'Shift cells left' and click 'OK'.

Use Go To Special to Delete Blanks and Shift Left
Chronological Order Preserved: Because the deletion only targets empty spaces, the remaining data points retain their exact left-to-right sequence seamlessly.
Seamless Data Cleanup

Easily Manage Blank Cells with WPS Spreadsheet

WPS Spreadsheet provides powerful, intuitive tools to clean up messy datasets. You can effortlessly locate blank cells, delete them, and shift your data left to keep everything perfectly organized.

  1. 1. Select Your Data: Open your spreadsheet in WPS Office and highlight the range containing the gaps you wish to remove.
  2. 2. Find the Blank Cells: Navigate to the 'Home' tab, click on 'Find and Replace', and select 'Go To...'. Check 'Blanks' and click 'Go To'.
  3. 3. Delete and Shift: Right-click any of the selected blank cells, click 'Delete', choose 'Shift cells left', and confirm.
100% format compatibility with Microsoft Excel (.xlsx files)Familiar user interface requiring zero learning curveAdvanced Find and Replace tools available for freeLightweight software that runs smoothly on almost any device
microsoft office alternative - wps office

Frequently Asked Questions

Will shifting cells left misalign my data?

Yes, if you only select partial rows, shifting cells left might misalign your data relative to other columns outside your selection. Always ensure you only apply this to the specific block of data you intend to compress.

Can I use a formula to extract non-blank cells instead of deleting them?

Yes, if you are using newer spreadsheet versions, you can use the FILTER function. For example, entering =FILTER(A1:Z1, A1:Z1<>"") in a new cell will dynamically pull all non-empty values from row 1 into a clean, left-aligned sequence.

Why is 'Go To Special' not highlighting my blank cells?

Sometimes cells appear blank but actually contain hidden spaces, apostrophes, or empty strings generated by formulas (""). You may need to use the Find and Replace tool to clear out space characters before the 'Go To Special' tool recognizes them as truly blank.