The "That command cannot be used on multiple selections" error occurs because Excel cannot perform certain actions—such as sorting, deleting, or inserting cells—when the selected range consists of non-contiguous cells (cells that are not touching or forming a single rectangular block). To fix this, you must either select a single continuous range or perform the action on one block of cells at a time. If you are seeing this error while only selecting one block, it is usually caused by merged cells or a glitch in the selection memory.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • The specific workbook where the error is occurring.
  • Administrative privileges if you need to disable third-party add-ins.

Step-by-Step

Depending on why the error is appearing, follow these methods to resolve the issue. Note that menu labels may differ slightly depending on your version of Excel, your operating system, or your regional settings.

Method 1: Converting Non-Contiguous Selections to a Single Range

  1. Identify the cells you need to modify. If you have been holding the Ctrl key (Windows) or Command key (Mac) to click individual cells across the sheet, you have created a non-contiguous selection.
  2. Release the Ctrl/Command key and click a single cell to clear the current selection.
  3. Select the entire area that encompasses all the cells you want to change. For example, if you need to edit cell A1 and cell A10, select the range A1:A10.
  4. Perform your desired action (such as formatting or deleting).
  5. If you only wanted to affect specific cells within that larger range, use the Filter tool. Go to the Data tab and select Filter. Use the dropdown arrows in the column headers to select only the specific criteria you need, then apply the change to the visible cells.

Method 2: Removing Merged Cells

Merged cells are a frequent cause of this error because they confuse Excel's understanding of the grid boundaries, making a seemingly single selection appear as multiple selections to the software.

  1. Press Ctrl + A (Windows) or Command + A (Mac) to select the entire worksheet.
  2. Go to the Home tab on the top ribbon.
  3. Locate the Alignment group and find the Merge & Center button.
  4. Click the dropdown arrow next to Merge & Center and select Unmerge Cells.
  5. Once all cells are unmerged, try your selection and command again.
  6. If you need the visual appearance of merged cells without the technical errors, select the cells, right-click and choose Format Cells > Alignment tab, and select Center Across Selection in the Horizontal dropdown menu.

Method 3: Clearing Selection Glitches via Restart

  1. Save your current workbook to ensure no data is lost.
  2. Close all open Excel windows and instances of the application.
  3. Open the Task Manager (Ctrl + Shift + Esc on Windows) or Activity Monitor (Mac).
  4. Look for any remaining "Microsoft Excel" processes. If they are still running in the background, select them and click End Task or Force Quit.
  5. Relaunch Excel and open your file. This clears the temporary memory cache that may have stored a "ghost" selection from a previous action.

Method 4: Disabling Conflicting Add-ins

  1. Open Excel and go to the File menu.
  2. Select Options at the bottom of the left-hand sidebar.
  3. In the Excel Options window, click on the Add-ins category.
  4. At the bottom of the window, ensure the Manage dropdown says COM Add-ins and click Go.
  5. Uncheck all active add-ins to see if a third-party tool is interfering with the selection process.
  6. Click OK and restart Excel. If the error is gone, re-enable add-ins one by one to identify the culprit.

Common Mistakes

Many users mistakenly believe that this error is a bug in the software, but it is usually a built-in limitation of the Excel engine. A common mistake is attempting to use the "Sort" feature while holding Ctrl to select random columns. Excel cannot sort non-adjacent columns because it doesn't know which row associations to maintain for the gaps between your selections.

Another frequent error is attempting to delete rows while having a non-contiguous selection of cells. If you select cell A2 and cell A5 and then try to delete the rows, Excel may trigger the error if the selection isn't perfectly aligned across the entire row width. To fix this, select the entire row headers (the numbers on the left) rather than individual cells within the rows.

Users also often overlook the presence of hidden rows or columns. If you select a range that includes hidden cells, and those hidden cells contain merged areas, Excel may perceive the selection as multiple disjointed blocks, triggering the error even though the selection looks continuous on your screen.

Tips

To avoid this error in the future, lean heavily on the Table feature. By selecting your data and pressing Ctrl + T, you turn your range into an official Excel Table. Tables handle sorting, filtering, and formatting much more intelligently than standard ranges, and they rarely trigger selection errors when you are manipulating columns.

If you frequently need to perform actions on non-adjacent cells, consider using a helper column. Add a column to the right of your data and mark the rows you want to affect with an "X" or a "1". You can then filter for those marks, which creates a contiguous view of the data, allowing you to perform bulk actions without the multiple selection error.

When working with large datasets, use the Name Box (the small input field to the left of the formula bar). Instead of clicking and dragging, you can type the range you want (e.g., A1:A500, C1:C500) and press Enter. While this still creates a multiple selection, it is more precise and helps you identify if the error is being caused by an accidental click in a distant part of the spreadsheet.

Troubleshooting

If the steps above do not resolve the issue, check for the following scenarios:

Check for Protected Sheets: If the worksheet is protected, certain selection behaviors are disabled. Go to the Review tab and check if the button says "Unprotect Sheet." If it does, the sheet is protected, and you may be unable to select certain ranges for editing, which can sometimes manifest as a selection error.

Verify Data Validation: Sometimes, complex data validation rules applied to a range can interfere with how Excel handles bulk selections. Try copying the data to a fresh, blank workbook. If the error disappears in the new workbook, the original file likely has corruption or conflicting validation rules.

Update Office: Ensure your software is up to date. Go to File > Account > Update Options > Update Now. Microsoft frequently releases patches that fix stability issues related to the user interface and selection memory.

Repair Office Installation: If the error persists across all workbooks and files, the installation may be corrupted. In Windows, go to Control Panel > Programs and Features, right-click Microsoft Office, and select Change. Choose the "Quick Repair" option first. If that fails, try the "Online Repair" option, which performs a more thorough reinstallation of the system files.

Frequently Asked Questions

Why can't I sort multiple non-adjacent columns?

Excel requires a contiguous block of data to sort because it must move the entire row together to maintain data integrity. If you select non-adjacent columns, Excel cannot guarantee that the data in the skipped columns will remain aligned with the sorted columns.

Does this error happen in Excel Online?

Yes, the same logic applies to the web version of Excel. Non-contiguous selections are limited in the actions they can perform, particularly regarding structural changes like inserting or deleting rows.

Can I use a macro to bypass this error?

Yes, VBA (Visual Basic for Applications) can often manipulate non-contiguous ranges that the standard user interface cannot. A script can loop through each area of a multiple selection and perform the action one by one.

Will unmerging cells delete my data?

No, unmerging cells will not delete your data. The value that was in the merged cell will simply remain in the upper-leftmost cell of the previously merged range, while the other cells will become empty.

Is there a keyboard shortcut to select non-adjacent cells?

Yes, hold the Ctrl key (Windows) or Command key (Mac) while clicking the cells you wish to select. Just be aware that this creates the "multiple selection" state that triggers the error for certain commands.

Does this happen if I have a filtered list?

Usually, no. When you filter a list, the visible cells are treated as a set. However, if you manually select cells across a filtered range while holding Ctrl, you may still encounter the error if you try to perform a command that requires a solid block of data.