Learn Excel
EN
Sets how numbers, dates and formulas look, so everything works just like your own Excel.

Home › Excel basics › Copy and clear formatting

Copy, Clear and Stop Formatting in Excel

Formatting is everything about how a cell looks: font, colour, borders and number format. Here's how to copy it to other cells in a few clicks, remove it without losing your data, and stop Excel from formatting things you didn't ask for.

In this guide
  1. Format Painter
  2. Clear formatting
  3. Stop automatic dates
  4. Keep learning
  5. FAQ

Copy formatting with the Format Painter

  1. Click a cell that already looks the way you want.
  2. On the Home tab, click Format Painter (the brush).
  3. Click or drag over the cells that should get the same look.

Only the formatting moves; the values in the target cells stay as they are. Double-click the brush to paint several places in a row, and press Esc when you're done.

With the keyboard: copy the cell with Ctrl+C, select the target and use Paste Special › Formats. More in Paste Special. A whole column at once: click the column letter of the example, then the Format Painter, then the column letter of the target.

Clear formatting without losing data

Select the cells, go to Home › Clear (the eraser) and choose Clear Formats. Colours, borders, fonts and number formats disappear; your values and formulas stay. For a whole sheet, press Ctrl+A first.

  • Clear All also deletes the contents: only use it on cells you want empty.
  • Colours from conditional formatting are rules, not formats: remove them with Conditional Formatting › Clear Rules.
  • The banded colours of a table come from the table style: choose Table Design › Convert to Range, then clear the formats.

Stop Excel from turning numbers into dates

Type 1-2 or 3/4 and Excel turns it into a date. Product codes, scores and fractions are the usual victims. Three ways to prevent it:

  • Type an apostrophe first: '1-2. The apostrophe isn't shown, and the cell stays text.
  • Format the cells as Text before you type: select them and choose Text in the number format box on the Home tab.
  • Fractions: type a zero and a space first, 0 3/4, and Excel stores 0.75.

Did Excel change it already? Press Ctrl+Z straight away. Later the original is gone: the cell now holds a date number, so retype it with one of the methods above. Importing a CSV file? Use Data › From Text/CSV, choose Transform Data and set the column type to Text before loading.

In Microsoft 365 you can switch off some other automatic changes, such as removing leading zeros, under File › Options › Data › Automatic Data Conversion.

Frequently asked questions

What is the shortcut for the Format Painter?

There's no single key combination, but you can press Alt, H, F, P one after the other. Or copy with Ctrl+C and paste only the formats with Paste Special.

How do I remove all formatting from a sheet?

Press Ctrl+A to select the whole sheet, then choose Home › Clear › Clear Formats. Clear conditional formatting rules separately.

Why does Excel keep changing my numbers to dates?

Excel reads anything that looks like a date as a date, such as 1-2 or 3/4. Type an apostrophe first, or format the cells as Text before typing.