How to Format an Excel Box (Cell)

How-to basics · Updated November 20, 2026

To format an Excel box, usually called a cell, select it or a group of cells, then use the options on the Home tab to change the font, fill color, alignment, number style, or borders. For more settings, press Ctrl+1 on Windows to open Format Cells. The steps below apply to Excel for Microsoft 365 on Windows; formatting choices can help important information stand out and make a worksheet easier to read.

What You’ll Need

  • An Excel workbook open in Microsoft Excel for Microsoft 365. If the information matters, save a copy before making broad changes.
  • The cell or range you want to format. A range means two or more selected cells.
  • A rough idea of how you want the result to look, such as a shaded heading, a currency value, or a bordered input area.

Step-by-Step

  1. Select the box or boxes. Click a cell to format one box. To format several adjacent cells, click the first, hold the mouse button, and drag across the range. You can also click the first cell, hold Shift, and click the last cell. To select nonadjacent cells, hold Ctrl while clicking each one. On Mac, use Command instead of Ctrl for nonadjacent selections. Check the highlighted outline before applying changes; formatting applies to every selected cell.
  2. Open the Home tab and choose a font style. In the Font group, choose a typeface from the font list and a size from the size list. Use Bold, Italic, or Underline for emphasis. The Font Color button changes the text color. Keep body text readable and use emphasis consistently; several typefaces and decorative styles in the same table can make it harder to scan.
  3. Apply a fill color if it helps identify the cell. In the Home tab’s Font group, open the arrow beside Fill Color (the paint-bucket icon) and select a color. The main part of the button applies its current color immediately. A pale fill is often useful for headings or input areas. If you choose a dark fill, set a contrasting font color so the text remains legible. To remove the fill, open the palette and choose No Fill.
  4. Set alignment and text behavior. Use the Alignment group on Home to align content left, center, or right, and to align it vertically within the cell. Choose Wrap Text to display long text on multiple lines inside the same cell. If you need content across several selected cells, Merge & Center combines them into one cell; use it cautiously because merging can complicate sorting, filtering, and copying. For a heading across columns, consider centering across the selection without merging if that layout option is available in your workflow.
  5. Choose an appropriate number format. Select a cell containing a number, date, or time, then use the Number Format list in the Home tab’s Number group. Choose options such as Currency, Percentage, Date, or Number. Use the increase or decrease decimal buttons to control displayed decimal places. Formatting changes how a value appears, not necessarily the value stored in the cell. For example, displaying 0.25 as 25% does not turn it into a different underlying number.
  6. Add borders to define the box. In the Home tab’s Font group, open the arrow beside Borders and select a border style, such as Outside Borders or All Borders. For a selected range, Outside Borders outlines the whole range; All Borders adds lines between its cells as well. Choose More Borders to open the Format Cells dialog and select line styles, colors, and specific edges in the Border tab. Worksheet gridlines are not the same as borders: gridlines are view guides and generally do not print, while cell borders are formatting that can print.
  7. Use Format Cells for detailed control. Press Ctrl+1 on Windows, or Command+1 on Mac, to open the Format Cells dialog. Its tabs include Number, Alignment, Font, Border, and Fill. Select the setting you need, review the preview where shown, and choose OK. This is useful for exact number formats, text rotation, custom borders, and other adjustments that are not obvious from the ribbon. In Excel for the web, use the Home tab controls; some desktop dialog options may not be available.
  8. Review the result and save. Click another cell to see the formatting without the selection outline. Check that the text is readable, the value is displayed as intended, and borders do not create unnecessary visual clutter. If you are working in a shared or existing workbook, confirm that the change has not made headings, totals, or input cells inconsistent. Save with Ctrl+S on Windows or Command+S on Mac.

To format several cells consistently, select the full range before applying the settings rather than formatting each cell separately. For a table with a heading row, for instance, select the heading cells together, apply bold text and a restrained fill, then add a bottom border. Format data cells separately according to what they contain; dates and percentages should not be given the same number format simply because they sit in one column.

Common Mistakes

Confusing a cell with a text box: In everyday language, a cell may be called a box, but Excel also has floating text box objects. The Home-tab steps here format worksheet cells. A text box is inserted from Insert > Text > Text Box; select its edge to format the object, or select text inside it to change the text. The distinction matters because cell borders and number formats do not apply to a floating text box.

Using spaces or repeated characters to line things up: Adding spaces to make text appear centered or columns appear aligned is fragile. Column width, font changes, and screen size can break the layout. Use alignment settings, adjust column width, or use Wrap Text instead.

Applying the wrong number format: A date can look like a serial number if it is formatted as General, and a fraction can appear as a decimal. Conversely, adding a currency style to an identifier can make a code look like an amount. Check the meaning of the data before choosing a number style.

Over-formatting: Many bright fills, heavy borders, and font styles compete for attention. Use a small set of consistent styles, and reserve stronger contrast for information that truly needs emphasis. Also remember that a fill color does not change the cell’s value or make it an input field by itself.

Tips

For a clean worksheet, decide what visual role each type of cell has before formatting: headings, ordinary data, totals, and user-entered values can each have a consistent treatment. A heading might use bold text and a light fill; totals might use a top border; input cells might use a subtle fill that is explained with a nearby note. This makes the sheet easier to understand without relying on color alone.

Use the small arrow beside a ribbon button when you want to choose a different border, fill, or font color. Clicking the main button often repeats the last-used choice, which is handy for consistent formatting but can apply an unexpected color if you have forgotten what is selected. Hover over a color or command to see its tooltip before clicking.

If you want to reuse the same appearance elsewhere, select a formatted cell and choose Home > Format Painter, then click or drag over the destination cell or range. Double-click Format Painter if you need to apply the style to several separate areas; press Esc when finished. Format Painter copies formatting, not the cell’s value or formula. You can also copy a cell, select the destination, and use Home > Paste > Paste Special > Formats when you want to copy only formatting.

For readability, use borders to group related information rather than putting a thick box around every cell. If you need a worksheet to look consistent when printed, use Print Preview to check page breaks and scale as well as the borders: a border may be present but difficult to see at a small print size. Text color and fill should also have enough contrast for readers with different display settings.

Troubleshooting

The color or style did not change: Confirm that the intended cell or range is selected and that the click was on the palette arrow if you meant to choose a new color. If the sheet is protected, some formatting changes may be blocked. Check Review > Protect Sheet; if protection is enabled, you may need permission or the password to change the sheet’s formatting.

The text seems cut off: The column may be too narrow, the row may be too short, or Wrap Text may be off. Widen the column by dragging the boundary between its letter headings, or double-click that boundary to AutoFit the column width. For wrapped text, AutoFit the row by double-clicking the boundary below its row number. Merged cells can prevent automatic sizing from behaving as expected, so consider unmerging them or adjusting the row height manually.

The number still looks wrong: Select the cell and inspect the Number Format list. If Excel is treating a value as text, changing the number format alone may not convert it. Look for a green error indicator or a leading apostrophe, and use the warning options where appropriate. If the entry is an account number or code with leading zeros, keeping it as text may be intentional; do not convert it without checking the data requirements.

Borders are missing on screen or on paper: A cell may show gridlines even though it has no applied border. Add a real border from Home > Borders if it must print. If a border is present but hard to see, select the range, open More Borders, and choose a clearer line color or weight. Check Print Preview to confirm the printed result.

Formatting appeared in the wrong places: Undo immediately with Ctrl+Z on Windows or Command+Z on Mac, then select the correct cells and try again. If only the appearance should be removed, select the affected cells and choose Home > Clear > Clear Formats. This removes formatting while leaving cell contents in place; avoid Clear All unless you also intend to remove contents.

Frequently Asked Questions

How do I format one Excel box without changing the others?

Click only the target cell before using a font, fill, alignment, number, or border command. If more cells are highlighted, click the target cell once to clear the larger selection. Formatting normally affects the selected cells, not every cell on the sheet.

How do I put a line around a cell?

Select the cell, then choose Home > Borders > Outside Borders. To choose a different line style or color, open Home > Borders > More Borders and set the edges in the Format Cells dialog.

How do I remove formatting but keep the information?

Select the cells and choose Home > Clear > Clear Formats. The text, numbers, and formulas remain, but font styling, fill, borders, and number formatting are removed. Check the result afterward, since dates and percentages may display differently when their number formats are cleared.

Can I format an Excel box on a Mac?

Yes. The Home-tab formatting groups work similarly in Excel for Mac. Use Command+1 to open Format Cells and Command+Z to undo; use Command rather than Ctrl when selecting separate nonadjacent cells. Ribbon wording and layout can vary slightly by update.

Can I format a box in Excel for the web?

Yes. Select the cell and use the Home tab for common font, fill, alignment, number, and border options. Some advanced Format Cells settings differ from desktop Excel; if an option is not available in the browser, open the workbook in the desktop app and make the change there.

Does formatting change the value in a cell?

Usually, formatting changes only how a value appears. Currency, percentage, date, and decimal settings affect display, while editing the cell’s contents changes the stored value. For example, adding a border or fill never changes the underlying value.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.