Data doesn’t always import or paste into Excel as nicely as you want. Sometimes, all the information is there, but extra blanks and spaces are carried along with the data cells. At first glance, this looks like it could be a very tedious problem to solve… It could take ages to manually take them out, and sometimes the data order is sensitive, so it can’t be sorted (to bring all the blanks together). Fortunately, there is a way to select all the blanks in a selection simultaneously for deletion. Let’s walk through an example of how…
Examine the Data
Here is a typical import… We have Employee Names, their Roles, and their Hire Dates, but they are not in the proper columns…
Select the Blank Cells
Let’s get them sorted out. Select the data range where there are blanks to remove.
Press F5 and click Special in the Go To dialog that appears.
In the Go To Special dialog box, choose Blanks and click OK.
The spreadsheet should now look like this, with only the blank cells selected.
Right-click within one of the selected cells, and choose Delete in the drop-down menu that appears.
Excel will now ask which direction you want it to shift the cells that remain. In this example, choose Shift Cells Left and click OK.
The result should be the beautifully organized data that you wanted all along!
Get the latest Excel tips and tricks by joining the newsletter!
Andrew Roberts has been solving business problems with Microsoft Excel for over a decade. Excel Tactics is dedicated to helping you master it. You can read more of his writing on his personal blog at NapkinMath.io.
Join the newsletter to stay on top of the latest articles. Sign up and you'll get a free guide with 10 time-saving keyboard shortcuts!