search
HomeTopicsexcelHow 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.

How to create cell border in Excel

Adding Borders in Excel

The quickest method uses the ribbon's built-in options:

  1. Select the target cells.
  2. On the Home tab, in the Font group, click the Borders dropdown arrow.
  3. Choose a border style; it's instantly applied.

For example, this adds an outside border:

How to create cell border in Excel

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:

  1. Select cells.

  2. 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.

    How to create cell border in Excel

  3. 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.

  4. Click OK. How to create cell border in Excel

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:

  1. On the Home tab, click the Borders dropdown arrow. Select Draw Borders.
  2. Choose Line Color and Line Style. The cursor becomes a pencil.
  3. Draw lines using Draw Border (any gridline) or Draw Border Grid (outside and inside borders simultaneously).
  4. Click the Border button to stop drawing.

How to create cell border in Excel

Tip: Use Erase Border to delete borders.

Creating Custom Border Styles

Create custom styles if predefined options are insufficient:

  1. Home tab, Styles group, click Cell Styles, then New Cell Style. How to create cell border in Excel How to create cell border in Excel
  2. Name the style, click Format, and use the Format Cells dialog to define the border. How to create cell border in Excel How to create cell border in Excel
  3. Clear unwanted formatting, click OK. How to create cell border in Excel

Apply the custom style by selecting cells and choosing it from the Styles group.

How to create cell border in Excel

Modifying Border Color and Width

Change border color and width:

  1. Select cells.
  2. Open Format Cells (Ctrl 1 or right-click).
  3. On the Border tab, choose line style and color. Select the border type and check the preview. Click OK.

How to create cell border in Excel

Border Examples

Here are some border examples:

Outside Border: How to create cell border in Excel Top and Bottom Border: How to create cell border in Excel Top and Thick Bottom Border: How to create cell border in Excel Bottom Double Border: How to create cell border in Excel Inside and Outside Borders: How to create cell border in Excel Custom Inside/Outside Borders: How to create cell border in Excel

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 _.

How to create cell border in Excel

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.

How to create cell border in Excel

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!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

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

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

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

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

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

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

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

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

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

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

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

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

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

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

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

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.