This site is privately owned and the information provided is free of charge. Learn more here.
Cell borders in Excel are lines that you can draw around or between cells to organize and separate data visually. These borders help make spreadsheets easier to read, especially when you're working with large amounts of information or sharing your work with others. Unlike the light gray gridlines that appear on every spreadsheet by default, borders are formatting choices you control—you can add them only where you need them, customize their style and color, and remove them whenever you want.
Free Guide to Current Disneyland Ticket Pricing →
The gridlines you see in Excel are just visual guides that help you identify cell locations. They don't print on paper unless you specifically turn that setting on. Borders, on the other hand, are actual formatting that you apply to cells. When you add a border to a cell, it becomes part of that cell's formatting and will appear both on screen and in printed documents.
People use borders for many practical reasons. A business might add borders to separate different sections of a budget spreadsheet, making it clear where one department's expenses end and another's begin. A student tracking grades might use borders to group assignments by subject. An inventory manager might border cells to highlight critical information that needs immediate attention. Sales teams often use borders to separate monthly data or to distinguish between actual results and projected figures.
Understanding borders gives you control over how your data looks and feels. Rather than relying on Excel's default appearance, you can design a spreadsheet that communicates your information clearly. This is especially important when multiple people will view or work with your spreadsheet, as clear visual organization reduces confusion and errors.
Practical takeaway: Before you start adding borders, think about what information you want to separate and what story your spreadsheet should tell. This planning makes the process faster and results in a clearer final product.
Excel provides several ways to access border formatting options, and the method you choose often depends on how many cells you're working with and how specific your border needs are. The most common approach is through the Home tab on the ribbon, where you'll find a borders dropdown button that contains preset options and a way to customize borders further.
Free Guide to Data Center Builders and Operators →
To start, first select the cell or range of cells where you want to add borders. You can click on a single cell, or you can click and drag to select multiple cells at once. You can also click on a cell, hold Shift, and click on another cell to select the range between them. If you want to select multiple non-adjacent cells, hold Ctrl while clicking on each cell you want to include.
Once you've selected your cells, look at the top of your Excel window for the Home tab. Click it if it's not already selected. In the Font group on the left side of the ribbon, you'll see several buttons for formatting. Look for the button that shows a grid or box pattern—this is the borders button. It typically shows a small dropdown arrow next to it. Click that arrow to reveal border options.
When you click the borders dropdown, you'll see a menu with preset border styles. These presets include options like "All Borders" which adds borders around and between all selected cells, "Outside Borders" which adds borders only around the outer edge of your selection, and "No Border" which removes all borders. You'll also see individual options for top borders, bottom borders, left borders, and right borders.
For more detailed control, the dropdown menu includes an option called "More Borders" at the bottom. This opens the Format Cells dialog box, which is where you can choose specific border styles, colors, and positions. This dialog gives you the most flexibility and is worth learning if you plan to do more complex border work.
Practical takeaway: The preset options in the borders dropdown handle most common needs. Use "All Borders" for a grid effect, "Outside Borders" to frame a section, and the preset options for simple, quick formatting.
Excel's preset border options are designed to handle the most common formatting needs without requiring you to make many choices. These presets are your fastest path to professional-looking borders, and they work well for typical spreadsheet situations like creating tables, highlighting totals, or separating sections of data.
Learn About PayPal Credit Card Coverage Options →
The "All Borders" option is one of the most frequently used presets. When you select a range of cells and choose All Borders, Excel adds borders around every cell in your selection—around the outer edges and between each cell. This creates a grid pattern that's useful when you want to clearly delineate each cell. For example, if you have a 5-row, 3-column table of monthly sales data, All Borders will make it obvious where each data point sits and make the table easier to scan.
The "Outside Borders" option adds borders only to the perimeter of your selected range. This is ideal when you want to frame a section of your spreadsheet without creating a grid pattern inside. Imagine you have a box of summary statistics—company totals, averages, or year-end figures. Outside Borders creates a clean frame around this information without cluttering the interior with lines, giving it a finished appearance that draws attention.
The "Top Border," "Bottom Border," "Left Border," and "Right Border" options let you add individual borders to just one side of your selected cells. These are useful for highlighting specific information. For instance, you might add a bottom border under a row of headers to separate them from the data below. Or you might add a top border above a total row to visually distinguish it from detail rows above it.
Another useful preset is "Inside Borders," which adds borders between cells but not around the outer edge. This works when you want a grid pattern for internal organization but want the data to blend into the surrounding spreadsheet without a defining frame.
The "No Border" option removes all borders from your selected cells, returning them to the gridline-only appearance. This is helpful if you've applied borders but later decide they're not needed, or if you want to remove borders from part of your formatting.
Practical takeaway: Start with presets for 80% of your border needs. All Borders creates a data table, Outside Borders frames important sections, and single-side borders highlight row or column breaks. These three options handle most spreadsheet formatting situations.
While preset borders work well for standard needs, sometimes you want more control over how your borders look. Excel allows you to customize the line style—whether it's thin, thick, dotted, or dashed—and choose colors that match your spreadsheet design or company branding. Accessing these custom options requires going deeper into the Format Cells dialog.
Learn About Foods to Avoid With Osteoporosis →
To open the Format Cells dialog with full border customization, select your cells and click the borders dropdown, then choose "More Borders" at the bottom of the preset menu. Alternatively, you can right-click your selected cells and choose "Format Cells," then click the "Border" tab. Both methods open the same dialog box.
In the Format Cells dialog, you'll see several sections. The "Line" section on the left shows different line style options. These might include solid lines of various thicknesses, dotted lines, dashed lines, double lines, and other patterns. You can scroll through this list to find the style you want. Select a style by clicking on it, and the preview area in the center of the dialog will show you what your border will look like.
Next to the line styles, you'll find a color picker labeled "Color" or similar. Click on the color button to reveal a color palette. You can choose from Excel's standard color set, or click "More Colors" to access a broader range. This is useful if you want borders that match your company colors or create visual emphasis. For example, a red border around cells containing budget warnings, or a green border around cells with positive performance metrics.
The "Width" or "Line Thickness" option lets you make borders thicker or thinner. A thick border naturally draws more attention and works well for separating major sections. A thin border is less visually heavy and works for standard gridlines between data points.
Once you've chosen your line style, color, and thickness, you need to specify where these borders should appear. In the center of the dialog, you'll see a preview box showing your selected cell or range. Around this preview, you can click buttons or areas to add your border to the top, bottom, left, right, or inside of your selection. The preview updates as you click, showing exactly where your border will appear.
pThis guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.