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!

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

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools

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

SublimeText3 Linux new version
SublimeText3 Linux latest version

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.