Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to circle around a cell in Excel?

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


arrow blue right bubble 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:

doc-circle-around-cell-1

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

doc-circle-around-cell-2

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

doc-circle-around-cell-3

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:

doc-circle-around-cell-4

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

doc-circle-around-cell-6

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

doc-circle-around-cell-7


arrow blue right bubble 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.

doc-circle-around-cell-8


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Zach · 2 years ago
    Thank you so much for this tip! I used the macro and it worked fantastically. I added macro multiple times for different colored ovals.

    One question - how do I shift the oval over to right on the cell slightly. I think this would better center the oval for the size of my cells.

    Thanks,
    Zach