Skip to main content
 

How to circle around a cell in Excel?

Author: Sun Last Modified: 2024-08-05

When you edit a worksheet, you may want to draw a circle around a cell to show it obviously just as below screenshot shown. Now I will introduce some tricks for you to circle around a cell in Excel.

Circle around a cell with Oval shape

Circle around a cell with VBA


Circle around a cell with Oval shape

To circle around a cell, you need to insert an oval shape.

1. Click Insert > Shapes, and select Oval shape from the Basic Shapes section in the list. See screenshot:

a screenshot of seleting a Oval shape

2. Draw the oval to circle around the cell you need. See screenshot:

a screenshot of drawing a Oval shape

3. Right click at the shape and select Format Shape from context menu.

a screenshot of getting into the Format Shape dialog box

4. In the Format Shape dialog (or Format Shape pane), click Fill tab, and drag the arrow of Transparency to the right to make sure 100% displaying in the textbox. See screenshot:

a screenshot of formatting the Oval shape

5. Close the dialog. Now you can see there is a circle around the cell.

a screenshot of the final Oval shape

Tip: By default, the shape will move and resize with the cell.

a screenshot showing the Oval shape is moved and resized with the cell


Circle around a cell with VBA

If you want to quickly circle around a cell, you can use the VBA code.

1. Select the cell you want to circle and press Alt + F11 keys together to open the Microsoft Visual Basic for Applications window.

2. Click Insert > Module and copy the follow VBA code to the popped out window.

VBA: Circle around a cell.

Sub DrawCircle()
	'Updateby20141105
	Dim Arng As Range
	Dim WorkRng As Range
	Set WorkRng = Application.Selection
	For Each Arng In WorkRng.Areas
		With Arng
			x = Arng.Height * 0.1
			y = Arng.Width * 0.1
			Application.ActiveSheet.Ovals.Add Top: = .Top - x, Left: = .Left - y, _
			Height: = .Height + 2 * x, Width: = .Width + 1.5 * y
			With Application.ActiveSheet.Ovals(ActiveSheet.Ovals.Count)
				.Interior.ColorIndex = xlNone
				.ShapeRange.Line.Weight = 1.25
			End With
		End With
	Next
	WorkRng.Select
End Sub

3. Press F5 key or click Run button to run the VBA code, now the selected cell is circled.

Tips:

(1) If you select multiple adjacent cells in the first step, this VBA macro will circle around these cells together.

(2) If you select multiple non-adjacent cells in the first step, this VBA macro will circle around each cell individually.

a screenshot showing the final Oval shapes created by VBA code


Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!