How to quickly deselect cells from selected ranges in Excel?
Supposing you need to deselect some cells or ranges from current selections, you have to unselect the whole selection, and reselect again, because Excel does not offer a way to deselect cells once they have been selected. And this article will list some tricky guidance to deselect part of cells or ranges from the current selection.
Classic Menu for Office: Bring Back Old Look to Office 2010 and 2013 (includes Office 365).
Office Tab: Bring Tabbed Editing and Browsing Features to Office, Just Like Chrome, Firefox, Internet Explorer 8/9/10.
For example, you have selected lots of cells, but now you find there are some cells that you don’t want. So you need to deselect them, and leave other selected cells, see following screenshots:
VBA is a fantastic way to deal with some operations in Excel that is not easy with Excel's commands. So does deselecting cells or ranges.
Step 1: Select the range that you will work with;
Step 2: Click a cell in the selection that you want to deselect with holding down the Ctrl key.
Step 3: Hold down the Alt + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window.
Step 4: Click Insert > Module, and paste the following macro in the Module Window.
VBA for deselecting active cell from selection
Dim R As Range
Dim RR As Range
For Each R In Selection.Cells
If StrComp(R.Address, ActiveCell.Address, vbBinaryCompare) <> 0 Then
If RR Is Nothing Then
Set RR = R
Set RR = Application.Union(RR, R)
If Not RR Is Nothing Then
Step 5: Press the F5 key to run this macro. Then the active cell is deselected from the selection. See screenshots:
Note: This VBA is only able to deselect one cell from selection at a time. It can't deselect a range cells from selection. If there are some cells need deselecting, you need to repeat step 2 and step 5.
If you need to deselect many cells or ranges from selection, the VBA above is not a good way. So we introduce the following trick, the Select Range Helper tools of Kutools for Excel. It can help you deselect any cell or range from selection easily and quickly.
Step 1: Click Kutools > Select Tool >> Select Range Helper….
Step 2: In Select Range Helper dialog box, check the Deselect Cells option, and then click or drag mouse to deselect cells or ranges from the selection. See screenshot:
Step 3: And the cells you unwanted have been deselected from the selection. At the end, close the Select Range Helper dialog box.
For more detailed information about Select Range Helper, please visit Select Range Helper feature description.
- Select non-adjacent cells or ranges
- Reverse selections of selected ranges
- Select all cells with data in selections