How to Fix Excel for Mac Text Selection Bug in the Formula Bar
Question details
Users experience a text-selection issue in the Excel for Mac formula bar after resizing the Defined Names box.

- Product
- Microsoft Excel for Mac
- Device & OS
- macOS
- Scenario
- Editing formulas in the formula bar after adjusting the Defined Names box interface.
- Observed behavior
- The cursor selects text from the incorrect position in the formula bar, causing misalignment and making it difficult to edit formulas accurately.
Ensure you save your current workbook and quit all running Office applications before modifying system library files.
Reset the Excel Application Container
Clearing the Excel container resolves application interface defects and resets cached layout settings.
This method clears temporary interface data and preferences that may be causing the visual cursor misalignment in the formula bar.
Save your work and fully quit Microsoft Excel and all other Microsoft Office applications.
Open Finder, press Command + Shift + G to open the 'Go to Folder' window, type ~/Library/Containers, and press Enter.
Locate the folder named 'Microsoft Excel' (or 'com.microsoft.Excel' on newer macOS versions) and move it to the Trash.
Restart your Mac, reopen Excel, and test editing text in the formula bar of a blank workbook.

Apply macOS and Office Updates
Since this is a known interface bug, installing the latest software patches can permanently resolve the issue.
Use Interface Workarounds
If you cannot reset or update immediately, use these quick actions to temporarily restore normal cursor behavior.
Try WPS Office for a Flawless Spreadsheet Experience on Mac
Tired of dealing with Excel interface bugs on your Mac? WPS Office offers a free, lightweight, and highly compatible alternative with a smooth user interface for managing your spreadsheets, formulas, and data seamlessly without cursor glitches.

Frequently Asked Questions
Why does the formula bar cursor select the wrong text in Excel for Mac?
This is a known interface defect triggered when resizing the Defined Names box, which causes a misalignment between the visual cursor position and the actual text position in the formula bar.
Will deleting the Microsoft Excel container delete my spreadsheets?
No, deleting the container folder only resets the application's preferences and cached interface files. Your personal workbooks and data will remain completely unaffected.
Does this text selection bug only happen on older macOS versions?
No, users have reported this text selection bug across multiple macOS versions, including Mojave, Catalina, and Big Sur. Updating to the latest patched release of both macOS and Office is recommended to fix it.




