Formatting a cell in Excel means changing its appearance—font, color, borders, number format, alignment, and more—without altering the underlying value. The fastest way is to select the cell(s), then use the buttons on the Home tab (like Bold or Fill Color), or press Ctrl+1 (Windows) or Cmd+1 (Mac) to open the full Format Cells dialog box. This guide covers every method, the options available, and how to avoid common mistakes.
Why Formatting Matters (and What It Does to Your Data)
Formatting is about communication. A well-formatted sheet lets readers instantly see totals, flags, and categories. But formatting never changes the actual value in a cell. For example, if cell A1 contains 0.5, applying a percentage format shows 50%, but the underlying value remains 0.5. This distinction is critical when you use the cell in formulas—Excel always uses the underlying value, not the displayed text.
Formatting also affects how Excel interprets input. If you type 1/2 into a cell formatted as Date, Excel treats it as January 2 (or February 1, depending on your regional settings). To avoid surprises, always set the number format before entering data, or use an apostrophe to force text.
The Many Ways to Open Formatting Options
You have several paths to the same formatting tools. Choose whichever feels fastest:
- Home tab ribbon: The Font, Alignment, and Number groups contain the most common options—bold, italic, fill color, borders, text wrap, and number formats like currency or percent.
- Format Cells dialog (Ctrl+1 / Cmd+1): This gives you everything in one place: Number, Alignment, Font, Border, Fill, and Protection tabs.
- Right-click menu: Right-click a cell and choose Format Cells… to open the same dialog.
- Keyboard shortcuts: Ctrl+B (bold), Ctrl+I (italic), Ctrl+U (underline), Ctrl+Shift+$ (currency format), Ctrl+Shift+% (percent format), Ctrl+Shift+# (date format). On Mac, replace Ctrl with Cmd.
- Mini toolbar: After you right-click, a small floating toolbar appears above the menu with font, size, fill, and border buttons.
For Excel for the web, the same Home tab options exist, but the Format Cells dialog is more limited—you cannot access custom number formats or protection settings. Use the desktop app for full control.
Number Formats: The Most Powerful Formatting Feature
Number formats control how values are displayed. They are stored as codes that you can customize. The built-in categories are:
- General: Default; shows numbers as typed.
- Number: Adds decimal places and optional thousand separators (e.g., 1,234.56).
- Currency: Adds a symbol (like $) and aligns decimals.
- Accounting: Aligns currency symbols and decimal points in a column.
- Date/Time: Displays serial numbers as dates/times (e.g., 1/1/2025).
- Percentage: Multiplies by 100 and adds a % sign.
- Fraction: Shows numbers as fractions (e.g., 1/2).
- Scientific: Uses exponential notation (e.g., 1.23E+05).
- Text: Treats the cell as text, even if it looks like a number.
- Custom: Allows you to write your own format codes.
Custom formats use placeholders: 0 (always show a digit), # (show only if significant), ? (space for alignment), and @ (text). For example, the custom format 0.00 forces two decimal places. You can also add text with quotes, like 0" units" to display “12 units”.
To apply a custom format: select cells, press Ctrl+1, go to the Number tab, choose Custom, and type the code in the Type box.
Alignment, Fonts, Borders, and Fill: Making It Look Right
Beyond numbers, you can control every visual aspect:
- Alignment: Horizontal (left, center, right, fill), vertical (top, middle, bottom), text wrapping (Wrap Text), and orientation (rotate text). Use Merge & Center to combine cells for a title—but be aware that merging can cause sorting/filtering issues; consider Center Across Selection instead (in the Alignment dialog, under Horizontal).
- Font: Change typeface, size, style (bold/italic), underline, color, and effects like strikethrough or superscript.
- Borders: Add lines around cells. You can choose line style and color. Use the Border tab in Format Cells for precise control (e.g., only top and bottom).
- Fill: Solid color, gradient, or pattern. For conditional color based on value, use Conditional Formatting instead.
For a quick border, select cells and click the Borders dropdown in the Font group. For a fill, use the Fill Color paint bucket icon.
Conditional Formatting: Formatting That Changes Automatically
Conditional formatting applies formatting only when a condition is true. This is essential for highlighting outliers, duplicates, or deadlines. To use it:
- Select the range (e.g., B2:B20).
- Go to Home > Conditional Formatting.
- Choose a rule type: Highlight Cells Rules (greater than, less than, equal to, text contains, date occurring, duplicate values), Top/Bottom Rules, Data Bars, Color Scales, or Icon Sets.
- For custom rules, choose New Rule and enter a formula. For example, to highlight cells in A2:A20 that are greater than 100, use the formula
=A2>100applied to the range.
Conditional formatting is dynamic—if the value changes, the formatting updates. To remove it, select the range, go to Conditional Formatting > Clear Rules.
Common Problems and How to Fix Them
Even experienced users hit these issues:
- Cell shows #####: The column is too narrow to display the number. Widen the column or change the format to fewer decimals.
- Number stored as text: Cells with green triangles or that won’t calculate. Select the range, click the warning icon, and choose Convert to Number.
- Formatting not applying to new data: When you type over a formatted cell, the new input inherits the cell’s format, but if you copy data from elsewhere, it may bring its own formatting. Use Paste Special > Values to paste only values, or Paste Special > Formatting to paste only formatting.
- Merged cells causing issues: Merged cells can break sorting, filtering, and copying. Use Center Across Selection instead when possible.
- Conditional formatting rule not working: Check that the formula uses relative references correctly. For a range starting at A2, the formula should reference the first cell (e.g.,
=A2>100), not the whole range.
To copy formatting from one cell to another, use Format Painter (Home tab, paintbrush icon). Click the cell with the desired format, click Format Painter, then click the target cell. Double-click Format Painter to apply to multiple areas.
Frequently Asked Questions
How do I clear all formatting from a cell?
Select the cell(s), go to Home > Clear > Clear Formats (or press Alt+H+E+F). This removes all formatting but keeps the value. To clear everything including the value, use Clear All.
Why does Excel change my number to a date when I type 1-2?
Excel automatically interprets entries that look like dates. To prevent this, format the cell as Text before typing, or type an apostrophe first (e.g., '1-2). The apostrophe won’t display.
Can I format only part of the text inside a cell?
Yes. Double-click the cell (or press F2) to enter edit mode, select the characters you want to format, then apply formatting (e.g., bold or color). This works for text cells, not numbers.
What is the difference between formatting and conditional formatting?
Regular formatting is static—it stays the same regardless of the value. Conditional formatting changes based on rules you define. For example, you can make a cell red when its value exceeds 100.
How do I apply the same formatting to an entire column?
Select the entire column by clicking its letter, then apply formatting. But be careful—formatting entire columns can bloat your file size. Instead, format only the used range (e.g., A1:A1000) to keep the workbook lean.
Why does my custom number format show in scientific notation?
If a number is extremely large or small, Excel may switch to scientific notation. To force a different display, use a custom format like 0 for integers or 0.00E+00 for scientific. For very large numbers, you may need to widen the column.
Keyboard Shortcuts and Power Tips
Speed up your workflow with these shortcuts (Windows / Mac):
- Ctrl+1 / Cmd+1 – Open Format Cells dialog
- Ctrl+B / Cmd+B – Bold
- Ctrl+I / Cmd+I – Italic
- Ctrl+U / Cmd+U – Underline
- Ctrl+Shift+$ / Cmd+Shift+$ – Currency format
- Ctrl+Shift+% / Cmd+Shift+% – Percentage format
- Ctrl+Shift+# / Cmd+Shift+# – Date format (day-month-year)
- Ctrl+Shift+@ / Cmd+Shift+@ – Time format
- Ctrl+Shift+! / Cmd+Shift+! – Number with 2 decimals and thousands separator
For a quick way to copy formatting without the Format Painter, select the source cell, press Ctrl+C, then go to the target cell and press Ctrl+Alt+V (or Cmd+Ctrl+V on Mac) to open Paste Special, then press T for Formats and Enter.
Remember: formatting is cosmetic—it never changes the underlying data. If you need to actually transform values (like converting text to numbers), use functions or Paste Special.
Related
- How Much Coding for Data Entry? A Practical Guide
- Google Sheets VLOOKUP: How to Use It Correctly
- Google Finance Dividend Yield: How to Find It
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Slicer Best Practices for Clear, Reliable ReportsFor reliable Excel slicers, start with a clean Excel Table or PivotTable, insert slicers only for fields people…
- How to Create Mailing Labels in WordTo create mailing labels in Word, open the Mailings tab, choose Start Mail Merge > Labels, select the…
- Track Changes in Microsoft Word: A Step-by-Step GuideTo track changes in Microsoft Word, open the document, select Review > Track Changes, and then edit as…
- How to Hide Columns in Excel With a + SignTo hide columns and keep a plus sign you can click to show them again, group the columns:…
- Hide Columns in Excel: How to Hide and Unhide ThemTo hide a column in Excel for Microsoft 365 on Windows, select its lettered heading, right-click it, and…
- Bi-Monthly Budget Template in Google Sheets: Setup GuideA bi-monthly budget template in Google Sheets can track income, planned spending, and actual expenses for each pay…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.