How to create cell border in Excel
This tutorial demonstrates how to add borders to Excel cells using built-in options and custom styles. Excel worksheets can be difficult to read without clear visual organization. Borders enhance readability by separating sections and highlighting key data like headings and totals, improving presentation.
- Adding borders in Excel
- Using the Format Cells dialog
- Excel border shortcuts
- Drawing borders in Excel
- Creating custom border styles
- Modifying border color and style
- Border examples
- Helpful border tips
Understanding Excel Cell Borders
Cell borders are lines surrounding individual cells or cell ranges. They visually distinguish spreadsheet sections, drawing attention to important data like totals. Don't confuse borders with gridlines; borders are thicker and more prominent, applied manually and always printed, unlike gridlines.
Excel offers multiple methods for adding borders.
Adding Borders in Excel
The quickest method uses the ribbon's built-in options:
- Select the target cells.
- On the Home tab, in the Font group, click the Borders dropdown arrow.
- Choose a border style; it's instantly applied.
For example, this adds an outside border:
More examples are available here.
Tips:
- For custom colors and styles, select Line Color and Line Style under Draw Borders before choosing a border.
- The ribbon's Border button only offers outside borders. For complete control (including inside borders), use More Borders… at the bottom of the dropdown. This opens the Format Cells dialog.
Using the Format Cells Dialog
The Format Cells dialog provides comprehensive border control:
-
Select cells.
-
Access the Format Cells dialog:
- Click the Borders dropdown arrow and select More Borders.
- Right-click and choose Format Cells….
- Use the Ctrl 1 shortcut.
-
On the Border tab, choose line style and color. Use Presets for outside/inside borders or select individual border elements (top, bottom, etc.). The preview updates instantly.
-
Click OK.
Excel Border Shortcuts
Excel offers keyboard shortcuts for quick border addition and removal:
Add Outside Border
Windows: Ctrl Shift & Mac: Command Option 0
Remove All Borders
Windows: Ctrl Shift _ Mac: Command Option _
Note: Shortcuts don't control line color or thickness. The Format Cells dialog offers superior control.
Format Cells Dialog Shortcuts
Within the Format Cells dialog's Borders tab:
- Left border: Alt L
- Right border: Alt R
- Top border: Alt T
- Bottom border: Alt B
- Upward diagonal: Alt D
- Horizontal interior: Alt H
- Vertical interior: Alt V
Tip: For multiple borders, press Alt once, then the letter keys (e.g., Alt T B for top and bottom).
Drawing Borders in Excel
Draw borders directly onto the worksheet:
- On the Home tab, click the Borders dropdown arrow. Select Draw Borders.
- Choose Line Color and Line Style. The cursor becomes a pencil.
- Draw lines using Draw Border (any gridline) or Draw Border Grid (outside and inside borders simultaneously).
- Click the Border button to stop drawing.
Tip: Use Erase Border to delete borders.
Creating Custom Border Styles
Create custom styles if predefined options are insufficient:
-
Home tab, Styles group, click Cell Styles, then New Cell Style.
- Name the style, click Format, and use the Format Cells dialog to define the border.
- Clear unwanted formatting, click OK.
Apply the custom style by selecting cells and choosing it from the Styles group.
Modifying Border Color and Width
Change border color and width:
- Select cells.
- Open Format Cells (Ctrl 1 or right-click).
- On the Border tab, choose line style and color. Select the border type and check the preview. Click OK.
Border Examples
Here are some border examples:
Outside Border:
Top and Bottom Border:
Top and Thick Bottom Border:
Bottom Double Border:
Inside and Outside Borders:
Custom Inside/Outside Borders:
Helpful Border Tips
- Border settings (style, thickness) apply to subsequent additions.
- Borders always print, unlike gridlines.
- Format data as an Excel table for automatic border application.
Removing Cell Borders
Remove All Borders
Select cells and choose No Border from the Borders dropdown. Alternatively, use the shortcut: Ctrl Shift _.
Erase Individual Borders
Use Erase Border to remove individual borders. Click the border to remove it or drag to remove multiple borders. Click the Border button to exit erase mode.
This concludes the tutorial on creating and managing borders in Excel.
The above is the detailed content of How to create cell border in Excel. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

This tutorial demonstrates how to efficiently locate the top N values within a dataset and retrieve associated data using Excel formulas. Whether you need the highest, lowest, or those meeting specific criteria, this guide provides solutions. Findi

This tutorial shows you how to add dropdown lists to your Outlook email templates, including multiple selections and database population. While Outlook doesn't directly support dropdowns, this guide provides creative workarounds. Email templates sav

This tutorial provides a comprehensive guide to Excel's Flash Fill feature, a powerful tool for automating data entry tasks. It covers various aspects, from its definition and location to advanced usage and troubleshooting. Understanding Excel's Fla

In this tutorial, you'll learn how to use regular expressions in Excel to find and extract substrings matching a given pattern. Microsoft Excel provides a number of functions to extract text from cells. Those functions can cope with most

This article explains how to access and utilize shared calendars within the Outlook desktop application, including importing iCalendar files. Previously, we covered sharing your Outlook calendar. Now, let's explore how to view calendars shared with

This tutorial explains how to use Excel's FV function to determine the future value of investments, encompassing both regular payments and lump-sum deposits. Effective financial planning hinges on understanding investment growth, and this guide prov

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

This tutorial demonstrates several methods for separating text and numbers within Excel cells, utilizing both built-in functions and custom VBA functions. You'll learn how to extract numbers while removing text, isolate text while discarding numbers
