Question posted 2013 · +8 upvotes
So in excel I’m trying to get rid of the blank cells between my cells which have info in them by using F5 to find the blank cells, then Ctrl + – to delete them, and shift the cells up. But when I try to do that, it tells me that there are ‘No cells found’.
I’ve noticed that if I select my ‘blank’ cells, Excel still counts them:
which is weird. But if I press Delete on those selected cells, the count goes away, and then I can go F5, blanks, Ctrl + – and Shift cells up, and it works…
So my question is how can I still do that, but with these blank cells which Excel thinks aren’t blank? I’ve tried to go through and just press delete over the blank cells, but I have a lot of data and realized that it would take me WAY too long. I need to find a way to select these ‘blank’ cells within a selection of data.
Thanks in advance for your help! 🙂
Accepted answer +13 upvotes
a simple way to select and clear these blank cells to make them blank:
- Press ctrl + a or pre-select your range
- Press ctrl + f
- Leave find what empty and select match entire cell contents.
- Hit find all
- Press ctrl + a to select all the empty cells found
- Close the find dialog
- Press backspace or delete
Top excel-vba Q&A (6)
- How to clear the entire array? +58 (2010)
- How to change Format of a Cell to Text using VBA +55 (2011)
- Download attachment from Outlook and Open in Excel +43 (2012)
- Can a VBA function in Excel return a range? +36 (2009)
- 2 Dimensional array from range +34 (2013)
- Hiding an Excel worksheet with VBA +33 (2009)
excel-vba solutions on this site
.