Fix: Excel Cannot Shift Nonblank Cells (4 Methods)

Get FREE Advanced Excel Exercises with Solutions!

While working in Excel, sometimes we need to add or Shift a Row or Column in our Worksheet. When we insert a new Cell, it pushes the next cell up to the end of the worksheet. If there is data in the Last Row or Last Column, it won’t get a Cell to push the next. That’s why it pops up with Excel cannot Shift Nonblank Cells error. Excel provides us with many ways to fix that problem. Today, In this tutorial, you will get to learn 4 effective ways to fix Excel that cannot shift nonblank cells.


Reasons Behind You Cannot Shift Nonblank Cells in Excel

Let’s say, we have a data set where Sales Representative, Products, Quantity of Sales, and  Revenue Earned are given in Column B, Column C, Column D, and  Column E respectively.

Reasons Behind You Cannot Shift Nonblank Cells in Excel

And also, this dataset has data in the last column named Column XFD.

Reasons Behind You Cannot Shift Nonblank Cells in Excel

And another data is in the last Row10,48,576.

Reasons Behind You Cannot Shift Nonblank Cells in Excel

Now when we want to shift a nonblank cell we will notice that Excel is showing us a warning message. There are many reasons why we cannot shift our nonblank cells. The two major reasons are discussed below.


1. Nonblank Last Cell in Last Column of Entire Worksheet

In our Worksheet, Now we will insert a cell in Column C6. To do this first you need to select Cell C6.

Nonblank Last Cell in Last Column of Entire Worksheet

After that press Right-Click on your Mouse. Now, a window pops up. In that window, you select the Insert.

Nonblank Last Cell in Last Column of Entire Worksheet

After selecting the insert menu, a cell wouldn’t be added but an alarm like Microsoft Excel shows in front of us.

Nonblank Last Cell in Last Column of Entire Worksheet

That’s happened because there is data in the Last Column XFD.

Nonblank Last Cell in Last Column of Entire Worksheet


2. Nonblank Last Cell in Last Row of Entire Worksheet

After performing the column operation, now we will insert a Row just below Row 5. To do that first select Row 5 of our dataset.

Nonblank Last Cell in Last Row of Entire Worksheet

Then follow the directions

Home → Cells Bar → Insert → Insert Sheet Rows Nonblank Last Cell in Last Row of Entire WorksheetAfter doing these an alarm appears in front of us named Microsoft Excel.

Nonblank Last Cell in Last Row of Entire Worksheet


How to Solve Excel Cannot Shift Nonblank Cells: 4 Suitable Methods

1. Delete The Last Column Data to Shift Nonblank Cells in Excel

To delete the last column data, you would follow the following steps:

Step 1:

First, select a Cell and go to the last Column in our Worksheet. To do that press Ctrl + Shift + Right Array simultaneously on the Keyboard.

Delete The Last Column Data to Shift Nonblank Cells in Excel

Step 2:

Then we can reach the last Column XFD.

Delete The Last Column Data to Shift Nonblank Cells in Excel

Step 3:

After that, select Column XFD. For doing this, press the column header. Now press the Delete button on your Keyboard.

Delete The Last Column Data to Shift Nonblank Cells in Excel

Step 4:

After deleting the last Column Data, at last, you will now insert Cell (Column) on your worksheet.

Delete The Last Column Data to Shift Nonblank Cells in Excel


2. Remove The Last Row Data to Shift Nonblank Data in Excel

After deleting the Last Column, now we will remove the Last Row in our worksheet. For removing the Last Row, follow the steps:

Step 1:

  • Select the Row 5. To do that, place your Cursor on Row 5 and click on Row 5.

Remove The Last Row Data to Shift Nonblank Data in Excel

Step 2:

  • Now press Ctrl + Shift + Down Array simultaneously on the Keyboard

Remove The Last Row Data to Shift Nonblank Data in Excel

  • After doing these, select Row 1048576.

Remove The Last Row Data to Shift Nonblank Data in Excel

Step 3:

  • Now press Right-Click button on your Mouse and a window pops up.

Remove The Last Row Data to Shift Nonblank Data in Excel

  • Then press After clicking the Delete menu, our selected Row would be deleted.

Remove The Last Row Data to Shift Nonblank Data in Excel

Finally, we would insert Row in our desired dataset.


3. Expunge The Blank Cell to Shift Nonblank Cells in Excel

After deleting the Last Column and Last Row data, now we can expunge blank Cells. For doing this, we will follow the followings steps:

Step 1:

  • First, select our worksheet.

Expunge The Blank Cell to Shift Nonblank Cells in Excel

Step 2:

  • Then go to Home Menu Bar and select Editing BarFind & Select Go To Special option.

Expunge The Blank Cell to Shift Nonblank Cells in ExcelStep 3:

  • After that, click on the Blank box and press the OK button.

Expunge The Blank Cell to Shift Nonblank Cells in Excel

  • Then blank Cells would be selected and press Right-Click on the Mouse then a window will pop up at this time click on the Delete button.

Expunge The Blank Cell to Shift Nonblank Cells in Excel

Step 4:

  • After that click on the dialog box named Shift Cell Left and then press the OK button.

Expunge The Blank Cell to Shift Nonblank Cells in Excel

  • Finally, we will get our desired output like our screenshot. Now we are able to insert Row or Columns in Excel.

Expunge The Blank Cell to Shift Nonblank Cells in Excel

Read More: How to Shift Cells Up in Excel


4. Run a VBA Code to Shift Nonblank Cells in Excel

When you are not able to Insert Columns or Rows in Excel then you can apply Visual Basic for Applications to fix this issue. In the VBA, you have to enter only a single line of code which will reset the used area of your Excel Worksheet.

Step1:

  • First, select a Cell C8 and press Alt + F11 on your
  • Now press Ctrl + G to open the Immediate window as in our Screenshot.
  • After that, type UsedRange in the Immediate window and press Enter button from Keyboard.
  • Now go to File → Close and Return to Microsoft Excel and finally you will back to your Excel.

Run a VBA Code to Shift Nonblank Cells in Excel

Now you can insert Columns or Row in your Worksheet.


Things to Remember

  • If you want to delete the last Column data, you will follow the instructions:

             Ctrl + Shift + Right Array → Delete

  • If you want to delete the last Column data, you will follow the instructions:

             Ctrl + Shift + Down Array → Delete

  • Another way is, Home → Editing → Find & Select → Go to Special → Blank → Delete → Shift Cells Left

Download Practice Workbook

Download this practice workbook to exercise while you are reading this article.[/wpsm_box]


Conclusion

In this article, we discuss the four suitable Methods to solve shifting nonblank cells in Excel. You are most welcome to comment if you have any questions or queries.


Related Articles

What is ExcelDemy?

ExcelDemy Learn Excel & Excel Solutions Center provides free Excel tutorials, free support , online Excel training and Excel consultancy services for Excel professionals and businesses. Feel free to contact us with your Excel problems.
Md. Abdur Rahim Rasel
Md. Abdur Rahim Rasel

Hi! I'm Md. Abdur Rahim Rasel. Welcome to my Profile. Currently, I am working and doing research on Microsoft Excel and here I will be posting articles related to this. I have completed my graduation in Naval Architecture and Marine Engineering(NAME) from Bangladesh University of Engineering and Technology(BUET). I have a passion for learning new things with my knowledge through perseverance and hard work.

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo