Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Reformat an Excel Spreadsheet Step by Step

· 8 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Reformatting an Excel spreadsheet means standardising its structure and appearance so the data is consistent, readable and usable for sorting, filtering, formulas or export. The quickest reliable approach is: make a copy of the file, unmerge any merged cells, convert the data into a proper Excel Table, then fix dates and numbers, trim stray spaces, apply consistent column widths and formatting, and finally check for blank rows, duplicate headers and broken formulas before you save. Doing it in that order prevents formulas from breaking halfway through and keeps your original data recoverable if something goes wrong.

A few menu labels differ slightly between Excel for Windows, Excel for Mac, Excel on the web and the mobile apps. Where that happens, this guide mentions the variation or describes the step generically.

What You'll Need

  • Excel for Windows, macOS or Excel on the web (Microsoft 365, Excel 2021 or 2019). The mobile apps can view and lightly edit files but are not practical for a full reformat.
  • The spreadsheet you want to change, ideally with a backup copy or a version already saved in OneDrive or SharePoint so you can use version history.
  • A clear idea of what the finished sheet is for: reading on screen, printing, importing into another system, or feeding a pivot table. The purpose decides how much formatting you actually need.
  • Optionally, the Paste Special options (paste as values) and the Text to Columns wizard, both built into Excel and used in the steps below.

Step-by-Step

  1. Save a copy first. Use File > Save As and give the file a new name such as Data-clean. Alternatively, if the file is stored in OneDrive or SharePoint, go to File > Info > Version history so you can roll back. Reformatting touches real data, and an accidental find-and-replace or column overwrite is much easier to undo when the original is untouched.
  2. Inspect the raw structure. Press Ctrl+End (Cmd+End on Mac) to jump to the last used cell. If it lands far below or to the right of your visible data, you have stray formatting or stray values creating phantom rows and columns. Select the empty rows and columns beyond your data, right-click and choose Delete, then save. This alone fixes many files that feel bloated or refuse to sort correctly.
  3. Unmerge cells. Select the whole sheet with Ctrl+A (Cmd+A), then look for the Merge & Center button on the Home tab. If it is active, click its dropdown and choose Unmerge Cells. Merged cells break sorting, filtering and pivot tables, and they cause errors when you paste data in. After unmerging you may need to fill the gaps: select the column, press F5 or Ctrl+G, choose Special > Blanks, type an equals sign and press the up arrow, then Ctrl+Enter to copy the value above into every blank. Copy that column and paste as values so the formulas become plain text.
  4. Delete blank rows and repeated headers. Use the Data tab > Filter, then filter each column for (Blanks) to see whether empty rows hide inside your data. Remove repeated header rows that appear mid-sheet. Excel tables and sorting treat a second header row as data, which produces nonsense results.
  5. Convert the range to a Table. Select any cell in your data and press Ctrl+T (Cmd+T on Mac). Confirm that My table has headers is ticked, then click OK. A Table gives you banded rows, automatic header filters, structured references in formulas and automatic expansion when you add rows. It also makes formatting consistent by default rather than cell by cell. If you dislike the style, change it with Table Design > Table Styles.
  6. Clean up text with TRIM and fix case. In an empty helper column type =TRIM(A2) and fill down. TRIM removes leading, trailing and doubled spaces that make lookups fail. Wrap it with UPPER, LOWER or PROPER if you need consistent capitalisation, for example =PROPER(TRIM(A2)). Copy the helper column and paste it over the original using Home > Paste > Paste Values, then delete the helper column. Watch out: TRIM also collapses intentional double spaces inside text, so skip it on free-text notes where spacing matters.
  7. Fix numbers stored as text. Text-formatted numbers show a small green triangle in the corner and align left. Select the column, then use Data > Text to Columns, click Next twice and choose General as the column format, then Finish. For currency symbols or thousands separators, use Find and Replace to remove the characters first, then convert. Do not simply switch the cell format to Number, because that changes appearance without changing the underlying text.
  8. Standardise dates. If dates sit as text, select the column and run Data > Text to Columns with the correct date order (for example DMY), then set the column format to the date style you want. Check that Excel has not interpreted day and month the wrong way round, which is common with dates like 03/04/2025.
  9. Format consistently. Select the whole table, set a single font and font size, then adjust column widths by selecting the columns and using Home > Format > AutoFit Column Width. Apply number formats per column rather than per cell. Use Format Painter or the Table style instead of applying bold and borders row by row.
  10. Freeze the header row. Click a cell in the first data row and use View > Freeze Panes > Freeze Panes. With a Table, you can also select the header and use View > Freeze Top Row. This keeps labels visible while scrolling.
  11. Check formulas and references. Look for #REF!, #VALUE! and #N/A errors. Use Formulas > Show Formulas to view every formula at once, and Ctrl+` toggles the same view. Review that relative and absolute references still point where you expect after any column moves, and replace broken references rather than deleting the cells and hoping.
  12. Remove duplicate records. With the table selected, go to Data > Remove Duplicates, tick the columns that identify a unique row, and confirm. Note that Excel keeps the first occurrence and deletes the rest, so make sure you want that before clicking OK. The status bar tells you how many were removed.
  13. Set print layout if the sheet will be printed. On the Page Layout tab, set orientation, margins and Print Titles so the header row repeats on every page. Use File > Print to preview before committing. Scaling is usually better than shrinking text.
  14. Save and recheck. Save the file, close it and reopen it to confirm formatting survived, then test sorting on one column and filtering on another. If both work cleanly, the reformat is done.

Common Mistakes

Applying formatting before cleaning the data is the most common error: bold and borders then get carried along with rows you later delete. Overwriting the original file instead of working on a copy removes your safety net. Leaving merged cells in place ruins sorting and gives pivot table errors that are hard to trace. Typing over numbers with new values rather than converting the type leaves text that looks like a number but sums to zero. Reformatting with cell-by-cell colouring instead of a Table or conditional formatting makes the sheet slow and impossible to maintain. Finally, running Remove Duplicates without checking which columns define a duplicate can quietly delete genuinely different records.

Tips

Use conditional formatting (Home > Conditional Formatting) for highlighting rather than manual colour fills, so the rule follows the data. Keep one header row only, in row one, with no title banner above it; that single change makes tables, filters and pivot tables cooperate. Store raw data on a separate sheet from any summary or dashboard sheet, so reformatting the source does not disturb your reporting. Where you have a repeatable cleanup job, record the steps with Data > Get Data or a short macro rather than redoing them every time. Leave a notes cell or a column with the source and date of the data.

Troubleshooting

If Ctrl+End jumps to an enormous cell reference, delete the empty rows and columns past your data and save. If dates convert to numbers like 45000, apply a date format to the column; that is correct behaviour, not corruption. If lookup formulas return #N/A after cleanup, check for trailing spaces and text-versus-number mismatches in both tables. If Number format does nothing, the values are still text, so use Text to Columns. If filters show only some values, confirm there are no blank rows splitting your data. If Excel warns the file is not responding during large operations, close other workbooks and retry. If the sheet looks fine but prints across dozens of pages, check Page Layout > Print Area and set it to the used range.

Frequently Asked Questions

Will reformatting break my formulas?

Not if you delete rather than shift data unexpectedly. Moving or inserting columns can break references; use cut and insert instead of paste, and check with Formulas > Show Formulas. Paste Values is the safe way to replace text in place.

Should I use a Table or plain formatting?

Use a Table whenever you will sort, filter, add rows or build pivot tables. Use plain formatting for small one-off printable layouts. Tables are generally easier to maintain.

How do I remove all formatting but keep the data?

Select the data, then use Home > Clear > Clear Formats. Values remain. Colour fills, fonts and borders are removed, so you can start a consistent style from scratch.

Can I reformat several sheets at once?

Yes for appearance only: select multiple sheet tabs, then apply font, width or colour changes. Data cleanup and structural changes still have to be done sheet by sheet.

Does reformatting change the underlying data?

Formatting alone does not. But steps that rewrite values, such as TRIM, Text to Columns or Remove Duplicates, do change data permanently, which is why you should work on a copy.